c# - DotNetCore.1.0.1-VS2015Tools.Preview2.0.3 Not Compiling after NUGET Updates -
the .net core project compiled fine new. once update nuget packages fails messages listed below.
this happening before , after install of new tools. updated today: dotnetcore.1.0.1-vs2015tools.preview2.0.3
errors: severity code description project file line suppression state
error 3. may trying publish library, not supported. use dotnet pack
distribute libraries.
error 2. project not list 1 of 'win10-x64, win81-x64, win8-x64, win7-x64' in 'runtimes' section.
error 1. project has not been restored or restore failed - run dotnet restore
error can not find runtime target framework '.netcoreapp,version=v1.0' compatible 1 of target runtimes: 'win10-x64, win81-x64, win8-x64, win7-x64'. removed global.json version specification told uses latest saves me time, should not doing that?
i can not understand how not tested. created brand new clean web application using .net core template in vs2015. updated nuget, tried including pre-releases. whole thing fails.
thoughts , questions:
can tell how create simple .net core web project config without bloat hosted on windows server? people doing. nice have simple project.config , not many dependencies when publishing iis. every update have dig in , tweak project config, needs stop right?
why 'runtimes' section in project config not included in default template?
seems strange me project blows every update.
i same error when upgrade microsoft.netcore.app version 1.0.1 version 1.1.0. please add "type":"platform" option in dependencies node in project.json.
"dependencies": { "microsoft.netcore.app": { "version": "1.1.0", "type": "platform" } },
and use web.config file configure handler information when deploy iis. project.json file used manage project dependencies. if there has dependencies changed in project, need upgrade project.json file. web.config file need not changed.
about why "runtimes" section not include in default project template issue, because different users need different runtimes. every users add sections project.json file based on project's requirement.
Comments
Post a Comment