sdk: Cannot build web desktop web application without specifying RuntimeIdentifier.
You can repro this by doing the following:
dotnet new -t web- Convert the project to net451
dotnet restoredotnet build
Here’s a project with 1 & 2 already done: Repro.zip
Once doing that you get:
Build FAILED.
"C:\Users\nimullen\Documents\temp\web\src\web\web.csproj" (Build target) (1) ->
"C:\Users\nimullen\Documents\temp\web\src\web\web.csproj" (Build target) (1:2) ->
(CheckRuntimeIdentifier target) ->
C:\Users\nimullen\.nuget\packages\microsoft.net.sdk\1.0.0-alpha-20161029-1\build\Microsoft.NET.RuntimeIdentifierInference.targets(45,5): error : RuntimeIdentifier must be set for .NETFramework executables. Consider RuntimeIdentifier=win7-x86 or RuntimeIdentifier=win7-x64. [C:\Users\nimullen\Documents\temp\web\src\web\web.csproj]
0 Warning(s)
1 Error(s)
This used to be possible in project.json land so I’d think it would be the same in msbuild land. If this issue happens to be “by design” then we’ll need to fix the CLI migration to specify a RuntimeIdentifier when migrating an executable desktop application.
/cc @livarcocc mostly for the last sentence.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 15 (9 by maintainers)
Commits related to this issue
- Merge pull request #357 from dotnet/error-codes — committed to GangWang01/sdk by baronfel a year ago
That requirement was removed after RC4.
This is awful. I have no working environment now for over 24 hours. VS2017 gives me dozens of errors and I can’t get VS2015 to work any more. There must be a utility that allows us to see what versions are compatible. I have tried to use Core.EF and when I add that to my project it complains about incompatibility. And now nothing works. This is just awful.