Skip to content

Put project path in P2P target framework incompatibility error - #273

Merged
nguerrera merged 1 commit into
dotnet:masterfrom
nguerrera:p2p-error
Oct 13, 2016
Merged

nguerrera merged 1 commit into
dotnet:masterfrom
nguerrera:p2p-error

Conversation

@nguerrera

Copy link
Copy Markdown
Contributor

Also remove duplicate 'no' and add a period.

Fix #265

I am not 100% sure if this is the right fix. MSBuild already puts the project file path in square brackets, but VS seems to drop this even if it is not the same as what will show in the project column of error list (since there's a nested MSBuild invocation).

On the command-line, we now have:

D:\Z\TestApp>msbuild /nologo /v:minimal
d:\src\sdk\packages\microsoft.net.sdk\1.0.0-alpha-00000001-01\buildCrossTargeting\Microsoft.NET.Sdk.targets(47,5): error : Project 'D:\Z\TestLibrary\TestLibrary.csproj'
has  no target framework compatible with '.NETFramework,Version=v4.6'. [D:\Z\TestLibrary\TestLibrary.csproj]

Notice how D:\Z\TestLibrary\TestLibrary.csproj is shown twice...

@davkean @dotnet/project-system

Also: remove duplicate 'no' and add period to error message
@davkean

davkean commented Oct 13, 2016

Copy link
Copy Markdown
Member

👍

For design-time builds it's not going to have the nested invocation - I'm wondering if that's going to be a problem...

@nguerrera
nguerrera merged commit 5ff9025 into dotnet:master Oct 13, 2016
@nguerrera
nguerrera deleted the p2p-error branch October 13, 2016 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warning that occurs for an incompatible project gives no indication of the project that causing the issue

3 participants