The .NET Core project compiled fine new. Once you update your NUGET packages it fails with messages listed below.
This was happening before and after the install of the new tools. Updated today: DotNetCore.1.0.1-VS2015Tools.Preview2.0.3
Errors: Severity Code Description Project File Line Suppression State
Error 3. You may be trying to publish a library, which is not supported. Use dotnet pack
to distribute libraries.
Error 2. The project does not list one of 'win10-x64, win81-x64, win8-x64, win7-x64' in the 'runtimes' section.
Error 1. The project has not been restored or restore failed - run dotnet restore
Error Can not find runtime target for framework '.NETCoreApp,Version=v1.0' compatible with one of the target runtimes: 'win10-x64, win81-x64, win8-x64, win7-x64'. I also removed the global.json version specification as I was told it just uses the latest which saves me some time, should I not be doing that?
I can not understand how this was not tested. I created a brand new clean web application using .NET Core template in VS2015. I updated NUGET, even tried including pre-releases. Now the whole thing fails.
Thoughts and questions:
Can anyone tell us how to create a simple .NET CORE WEB project config without all the bloat that will be hosted simply on a Windows Server? This is what most people will be doing. It would be nice to have a simple project.config and not as many dependencies when publishing to IIS. Every update you have to dig in and tweak your project config, this needs to stop right?
Why is the 'runtimes' section in the project config not included in the default template?
Seems strange to me that your project blows up every update.
.net core sdk
version? Also, update your question with yourproject.json
. I've created a simple tutorial that may help you. It's for 1.0.0, but the process is the same for this new version. – Fabricio KochC:\Program Files\dotnet\shared\Microsoft.NETCore.App
andC:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App
respectively folder? – Tseng