I have the following warning in all my code:
Warning in Visual studio 2015 community edition
Here is my project.json:
{
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.0.0",
"type": "build"
},
"Microsoft.AspNetCore.Diagnostics": "1.0.0",
"Microsoft.AspNetCore.Mvc": "1.0.0",
"Microsoft.AspNetCore.Razor.Tools": {
"version": "1.0.0-preview2-final",
"type": "build"
},
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0",
"Microsoft.AspNetCore.StaticFiles": "1.0.0",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0",
"Microsoft.Extensions.Configuration.Json": "1.0.0",
"Microsoft.Extensions.Logging": "1.0.0",
"Microsoft.Extensions.Logging.Console": "1.0.0",
"Microsoft.Extensions.Logging.Debug": "1.0.0",
"Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0",
"Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0",
"Microsoft.EntityFrameworkCore": "1.0.1",
"System.Runtime": "4.1.0"
},
"frameworks": {
"netcoreapp1.0": {
"imports": [
"dotnet5.6",
"portable-net45+win8"
]
}
},
"scripts": {
"prepublish": [ "npm install", "bower install", "gulp clean", "gulp deploy-node-libraries", "gulp sass", "gulp min" ]
}
}
As you see I included "System.Runtime": "4.1.0" like a dependency as suggested in previous versions like a fix, but it doesn't work. My environment is: Windows 7 Pro - Service pack 1 - Core I7, Visual studio 2015 comunity edition - Asp.Net Core Project Template
The project actually compiles but all the lines where I call and class from EntityFramework core are underlined and IISExpress can't serve the page.
runtimes
setting and specifying the runtime you want to use? – Ignas