question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet build dumps a single error across 3 lines which causes 3 error list items to be created

See original GitHub issue

Steps to reproduce

  1. Install dotnet 1.0.0-rc2-002543
  2. From VS create a console application
  3. 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:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dkent600commented, Jun 30, 2016

in any case, “dotnet restore” doesn’t get rid of the error, for me. 😦

0reactions
TheRealPiotrPcommented, Jan 20, 2017

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Segmentation fault (core dumped) while using dotnet #67465
NET 6 installed via SNAP, I can execute the neo express create command (which uses only managed code) but the if I execute...
Read more >
c# - How to fix "Segmentation fault (core dumped)" when ...
I had the same problem in VS Code, it runs the dotnet commands without sudo and I recived the "Segmentation fault (core dumped)"...
Read more >
Cannot debug net6.0-macos Apps - Developer Community
When I hit debug, the following error is shown in the Terminal: Possible reasons for this include: * You misspelled a built-in dotnet...
Read more >
NETSDK1045: The current .NET SDK does not support ...
This error occurs when the build tools can't find the version of the .NET SDK that's needed to build a project. This is...
Read more >
dotnet build command - .NET CLI
The dotnet build command builds a project and all of its dependencies.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found