dnx

The navigation on entity type has not been added to the model, or ignored, or entityType ignored

旧城冷巷雨未停 提交于 2019-11-29 10:50:32
The navigation 'Tags' on entity type 'Notepad.Models.Note' has not been added to the model, or ignored, or entityType ignored. public class Note { public Note() { CreationDate = DateTime.Now; Tags = new HashSet<Tag>(); Parts = new HashSet<Part>(); } public int ID { get; set; } public virtual ICollection<Tag> Tags { get; set; } public virtual ICollection<Part> Parts { get; set; } public DateTime? CreationDate { get; set; } } public class Tag { public Tag() { Notes = new HashSet<Note>(); } public int ID { get; set; } public string Name { get; set; } public virtual ICollection<Note> Notes { get;

Self-Registering Libraries with Autofac 4 and vNext

丶灬走出姿态 提交于 2019-11-29 07:52:30
i'd like to create a Plugin Enviroment for my ASP.Net 5.0 / MVC 6 Application. I'm using Autofac as IOC Container and i like to load the Plugins (Class Libraries) from the build in DNX LibraryManager. The goal of using the Library Manager is, that i don't have to care about NuGet Packages and Frameworks. The Problem i have is the LifeCycle, i have to build the IOC Container before the instance of the LibraryManager is available. Because the Autofac Container provides his own IServiceProvider Instance which i have to inject within the ConfigureService() Method call (AddAutofac). Does anyone

ASP.NET 5 An error occurred while starting the application

烈酒焚心 提交于 2019-11-29 03:05:43
After publishing an ASP.NET Web App, I'm trying to host the website on my local server. However, when I start it up, it gives me this error in my browser: Oops. 500 Internal Server Error An error occurred while starting the application. How can I debug what this error is? The website works (both Debug and Release configurations) when starting using IISExpress and "web" in Visual Studio. I am using the Development environment, and I have already specified app.UseDeveloperExceptionPage(); . I have followed the instructions here to deploy to IIS. I've also tried the suggestion offered here (re

Building a .NET Core app via command line, so that it works on a machine without .NET Core installed

爷,独闯天下 提交于 2019-11-29 02:53:34
My end goal is to create a cross-platform (non-web) console application, so I'm exploring .NET Core right now. In my previous .NET projects, I did all the development inside Visual Studio, but I also created a batch/MSBuild file so I could build the whole project (including setups, NuGet packages, zip files with binaries etc.) with one single click. Here's an example from a previous project . In the end, I want to do something similar with my .NET Core test project. But right now I'm failing at the first step: I'm unable to build it outside Visual Studio, so that the result works on another

How to watch for file changes “dotnet watch” with Visual Studio ASP.NET Core

三世轮回 提交于 2019-11-29 01:23:24
I am using Visual Studio with ASP.NET Core and run the web site using just F5 or Ctrl+F5 (not using command line directly). I would like to use the "dotnet watch" functionality to make sure all changes are picked up on the fly to avoid starting the server again. It seems that with command line you would use "dotnet watch run" for this, but Visual Studio uses launchSettings.json and does it behind the scenes if I understand it correctly. How can I wire up "dotnet watch" there? Open launchSettings.json and add this to profiles . "Watch": { "executablePath": "C:\\Program Files\\dotnet\\dotnet.exe

Is it possible to run ASP.NET 5 site directly on Kestrel in Azure WebApps?

柔情痞子 提交于 2019-11-28 23:59:05
I have checked that in the web response the server is IIS when I deploy ASP.NET5 to azure web app, so I guess the IIS platform handler is used to redirect it to Kestrel. So I am wondering if it is possible to run directly on Kestrel, and what benefits/drawbacks will that have (probably regardless if it's in Azure or not). I suppose it will be a bit faster since IIS will be excluded from the pipline, but it should not be too much overhead I suppose... Maxime Rouiller On Azure Web App, you cannot bypass IIS. But in the general case, you can definitely run Kestrel directly. It is after all just

Unable to resolve assembly reference issue without frameworkAssemblies

我的未来我决定 提交于 2019-11-28 23:34:38
问题 I'm trying to validate that Protocol Buffers is going to work with the new portable runtimes from the ASP.NET team and ideally most other modern environments. The 3.0.0-alpha4 build was created a while ago using profile259, so I would expect some changes to be required in some cases, but I thought I'd give it a try. I'm aware of Oren Novotny's post about targeting .NET Core, and expected to have to make some changes to the Google.Protobuf nuspec file, but the error I'm running into has me

Show ASP.NET 5 error page in Azure web app

依然范特西╮ 提交于 2019-11-28 21:13:22
I am getting a 500 Internal Server Error when deploying our ASP.NET 5 web application to an Azure Web App. How do I get the details and stacktrace for this exception? I have done the following but with no luck: Using the diagnostics error page on startup: app.UseErrorPage(); Setting ASPNET_ENV in Azure portal: Using DNX beta 6. In case this helps someone, I've found out that if you're using ASP.NET RC1 and you're using Azure WebApps and add an App setting called Hosting:Environment with a value of development a stack trace for server 500 errors will display. For this to work the Configure

RealProxy in dotnet core?

邮差的信 提交于 2019-11-28 21:08:00
I'm working with the namespaces System.Runtime.Remoting.Proxies and System.Runtime.Remoting.Messaging for AOP in C#. I'm trying to port my application from .Net Framework 4.6 to dnxcore/dotnet core. Intellisense says, that these two namespaces are not available with my framework-vesion (netcoreapp1.0 / dnxcore50). Any idea if these two namespaces will appear? or any idea how to get the AOP like with the RealProxy -class? I don't want to use 3rd-party-libraries - I only want to use what .Net offers me. It looks like RealProxy won't come to .NET Core/Standard . In the issue, a Microsoft

How to setup a TeamCity build for a ASP.NET 5 project

三世轮回 提交于 2019-11-28 20:35:20
问题 I'm trying to setup a CI server for a website that I'm developing, but I can't find any info regarding how to do it with the new ASP.NET 5. 回答1: We (the ASP.NET team) use TeamCity as the build server. Each repo has a build.cmd file, similar to this one. TeamCity simply invokes that file. For Mac/Linux builds, there is a build.sh file. 回答2: I got you brother. This took me a few days to figure out. This configuration is on TeamCity v10 for a ASP.NET Core 1.0 RC2/preview2 project. As a bonus, I