-
Notifications
You must be signed in to change notification settings - Fork 391
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
Dependencies node fails to handle custom target frameworks #2618
Comments
This scenario is kind of limited. If you specify custom TFMX - how does project system/nuget know if TFMX can support a net46 etc? Dependencies logic needs this info in several places to decide if a warning icon should be displayed for project to project references for example... |
The project system should just use the full target framework moniker for such comparisons. The simplest thing to do here might be to just show the TF as-is without mapping it to anything. That way if the user has a |
Yes, this should work and how this was designed. In particular:
|
Another test case for this: <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>foo1.0;bar2.0</TargetFrameworks>
<OutputType>Exe</OutputType>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'foo1.0'">
<TargetFrameworkIdentifier>.NETCoreApp</TargetFrameworkIdentifier>
<TargetFrameworkVersion>7.0</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'bar2.0'">
<TargetFrameworkIdentifier>.NETStandard</TargetFrameworkIdentifier>
<TargetFrameworkVersion>2.0</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
</Project> Screenshot from the dependencies tree rewrite: |
Steps to reproduce
Xyz1.0
TargetFrameworkIdentifier
,TargetFrameworkVersion
, andTargetFrameworkProfile
propertiesExpected results
Solution Explorer shows a dependencies node based on the explicitly set framework identifier, version, and profile. In the above case, this would be
.NETCustom 42.42
.Actual results
Solution Explorer shows
Unsupported 0.0
.The text was updated successfully, but these errors were encountered: