Skip to content

Commit 2f1011e

Browse files
ShashankNayShashank Nayak
andauthored
Class Library $DotNetVersion$ fix (#4408)
adding back the $DotNetVersion$ customparam that is needed to resolve the TargetFramework --------- Co-authored-by: Shashank Nayak <[email protected]>
1 parent aa18878 commit 2f1011e

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<TargetFramework>$DotNetVersion$-windows10.0.19041.0</TargetFramework>
44
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
@@ -7,9 +7,5 @@
77
<RuntimeIdentifiers Condition="$([MSBuild]::GetTargetFrameworkVersion('$(TargetFramework)')) &lt; 8">win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
88
<UseWinUI>true</UseWinUI>
99
</PropertyGroup>
10-
11-
<ItemGroup>
12-
<PackageReference Include="Microsoft.WindowsAppSDK" Version="$WindowsAppSDKNupkgVersion$" />
13-
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="$WindowsSDKBuildToolsNupkgVersion$" />
14-
</ItemGroup>
10+
1511
</Project>

dev/VSIX/ProjectTemplates/Desktop/CSharp/ClassLibrary/WinUI.Desktop.Cs.ClassLibrary.vstemplate

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
</Project>
3030
<CustomParameters>
3131
<CustomParameter Name="$NuGetPackages$" Value="Microsoft.WindowsAppSDK;Microsoft.Windows.SDK.BuildTools"/>
32+
<CustomParameter Name="$DotNetVersion$" Value="FIXME-Verify-Directory.Build.Targets-XmlPoke-Queries"/>
3233
</CustomParameters>
3334
</TemplateContent>
3435
<WizardExtension>

0 commit comments

Comments
 (0)