dotnet build dumps a single error across 3 lines which causes 3 error list items to be created
See original GitHub issueSteps to reproduce
- Install dotnet 1.0.0-rc2-002543
- From VS create a console application
- Remove type:platform from dependency 4 Add a win7-x64 runtime build
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets(241,5): 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’. Possible causes:
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets(241,5): error : 1. The project has not been restored or restore failed - run dotnet restore
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets(241,5): error : 2. The project does not list one of ‘win10-x64, win81-x64, win8-x64, win7-x64’ in the ‘runtimes’ section.
Expected behavior
Expect a single error with this information.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
in any case, “dotnet restore” doesn’t get rid of the error, for me. 😦
This doesn’t seem to repro any longer in CLI [rc3]. Furthermore, VS now interacts with these commands through direct MSBuild invocations, making the multi-line output far less important for providing a great UX.