Skip to content

Set correct SharedFrameworkName property value #764

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

Merged
merged 1 commit into from
May 6, 2020

Conversation

NikolaMilosavljevic
Copy link
Member

Fixes #541

This change corrects the setup registry key name, from SOFTWARE\dotnet\Setup\InstalledVersions\x64\sharedfx\Microsoft.NETCore.App, to
SOFTWARE\dotnet\Setup\InstalledVersions\x64\sharedfx\Microsoft.WindowsDesktop.App

@NikolaMilosavljevic NikolaMilosavljevic requested a review from dagood May 6, 2020 19:39
@@ -65,7 +65,7 @@
</PropertyGroup>

<PropertyGroup>
<SharedFrameworkName>Microsoft.NETCore.App</SharedFrameworkName>
<SharedFrameworkName>Microsoft.WindowsDesktop.App</SharedFrameworkName>
<NETCoreAppFrameworkIdentifier>.NETCoreApp</NETCoreAppFrameworkIdentifier>
<NETCoreAppFrameworkMoniker>$(NETCoreAppFrameworkIdentifier),Version=v$(NETCoreAppFrameworkVersion)</NETCoreAppFrameworkMoniker>
<NETCoreAppFrameworkBrandName>.NET Core $(NETCoreAppFrameworkVersion)</NETCoreAppFrameworkBrandName>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be good to fix these too. I don't know off the top of my head all usages, but at least NETCoreAppFrameworkIdentifier is ending up in the framework list, e.g. microsoft.windowsdesktop.app.ref.5.0.0-preview.3.20214.2.nupkg\data\FrameworkList.xml first line:

<FileList Name="Windows Desktop 5.0" TargetFrameworkIdentifier=".NETCoreApp" TargetFrameworkVersion="5.0" FrameworkName="Microsoft.WindowsDesktop.App">

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<FileList Name="Windows Desktop 5.0" TargetFrameworkIdentifier=".NETCoreApp" TargetFrameworkVersion="5.0" FrameworkName="Microsoft.WindowsDesktop.App">

Does this need to change? I see the same in ASP.NET:

<FileList Name="ASP.NET Core 3.0" TargetFrameworkIdentifier=".NETCoreApp" TargetFrameworkVersion="3.0" FrameworkName="Microsoft.AspNetCore.App">

In both cases FrameworkName is correct.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, right, duh, TFM doesn't change per sharedfx. I think maybe the specific prop NETCoreAppFrameworkBrandName could be removed (since this repo doesn't depend on the brand name of the base shared framework) but it does generally seem good as is.

@NikolaMilosavljevic NikolaMilosavljevic merged commit 2f95c33 into dotnet:master May 6, 2020
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.

WindowsDesktop installer doesn't install a distinct registry key (5.0+)
2 participants