Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-Target Framework project get the reference based on the first in the list. #3618

Closed
lucasgl opened this issue Jun 5, 2018 · 1 comment
Labels
Resolution-Duplicate The bug is a duplicate of another bug in this or another repo.

Comments

@lucasgl
Copy link

lucasgl commented Jun 5, 2018

I had a multi-target project set up like this:
<TargetFrameworks>net45;netstandard2.0;portable-net45+win8;</TargetFrameworks>

and when I add into a solution in the latest VS 2017 (15.7.3) it thinks is a .net framework project and don't show the files under the solution explorer.

Took me a lot of time to find a workaround:
Fixed as switching the order in the .csproj file putting the netstandard2.0 in front:
<TargetFrameworks>netstandard2.0;net45;portable-net45+win8;</TargetFrameworks>

@Pilchie
Copy link
Member

Pilchie commented Jun 5, 2018

The fist part of this is basically #1162, but any project with a <TargetFrameworks> section should be opened by the new project system. See https://github.com/dotnet/project-system/blob/master/docs/opening-with-new-project-system.md for more details.

@Pilchie Pilchie closed this as completed Jun 5, 2018
@Pilchie Pilchie added the Resolution-Duplicate The bug is a duplicate of another bug in this or another repo. label Jun 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate The bug is a duplicate of another bug in this or another repo.
Projects
None yet
Development

No branches or pull requests

2 participants