|
12 | 12 | </PropertyGroup> |
13 | 13 |
|
14 | 14 | <PropertyGroup Condition="'$(TargetFramework)' == 'net461' or '$(TargetFramework)' == 'netcoreapp3.1' or '$(TargetFramework)' == 'net5.0-windows10.0.17763.0'"> |
15 | | - <!-- Define the WINDOWS_UWP conditional symbol, since the Windows.Data.Xml and the Windows.UI.Notification namespaces are available --> |
| 15 | + <!-- Define the WINDOWS_UWP conditional symbol, since the 'Windows.Data.Xml' and the 'Windows.UI.Notification' namespaces are available --> |
16 | 16 | <DefineConstants>$(DefineConstants);WINDOWS_UWP;WIN32</DefineConstants> |
17 | 17 | </PropertyGroup> |
18 | 18 |
|
|
42 | 42 | <None Include="Microsoft.Toolkit.Uwp.Notifications.targets" Pack="true" PackagePath="build\native" /> |
43 | 43 | </ItemGroup> |
44 | 44 |
|
45 | | - <!-- Desktop Win32 apps --> |
| 45 | + <!-- For Desktop Win32 apps' WinRT APIs support --> |
46 | 46 | <ItemGroup Condition="'$(TargetFramework)' == 'net461' or '$(TargetFramework)' == 'netcoreapp3.1'"> |
47 | | - <!-- Reference Windows SDK NuGet of correct target platform version --> |
48 | 47 | <PackageReference Include="Microsoft.Windows.SDK.Contracts" Version="10.0.19041.1" /> |
49 | 48 | </ItemGroup> |
50 | 49 |
|
51 | | - <!-- The .NET Core desktop apps also need the Registry NuGet package and System.Reflection.Emit for generating COM class dynamically --> |
| 50 | + <!-- The .NET Core desktop apps also need the Registry NuGet package and 'System.Reflection.Emit' for generating COM class dynamically --> |
52 | 51 | <ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1' or '$(TargetFramework)' == 'net5.0-windows10.0.17763.0'"> |
53 | 52 | <PackageReference Include="Microsoft.Win32.Registry" Version="4.7.0" /> |
54 | 53 | <PackageReference Include="System.Reflection.Emit" Version="4.7.0" /> |
|
59 | 58 | <PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="$(ExtrasUwpMetaPackageVersion)" PrivateAssets="All" IsImplicitlyDefined="true" /> |
60 | 59 | </ItemGroup> |
61 | 60 |
|
62 | | - <!-- Native (C++) doesn't need 'System.ValueTuple' (plus it's incompatible with this package) --> |
| 61 | + <!-- Native (C++) does not need 'System.ValueTuple' (plus it is incompatible with this package) --> |
63 | 62 | <ItemGroup Condition="'$(TargetFramework)' != 'native'"> |
64 | 63 | <PackageReference Include="System.ValueTuple" Version="4.5.0" /> |
65 | 64 | </ItemGroup> |
66 | 65 |
|
67 | | - <!-- Set the nuspec properties. Dependent on version which isn't updated till after 'GetBuildVersion'. Condition ensures we only set once since this runs multiple times for each target. --> |
| 66 | + <!-- |
| 67 | + Set the nuspec properties. Dependent on version which is not updated till after 'GetBuildVersion'. |
| 68 | + Condition ensures we only set once since this runs multiple times for each target. |
| 69 | + --> |
68 | 70 | <Target Name="SetNuspecProperties" AfterTargets="GetBuildVersion"> |
69 | 71 | <PropertyGroup Condition="'$(NuspecProperties)' == ''"> |
70 | 72 | <NuspecProperties>buildOutput=bin\$(Configuration);version=$(Version)</NuspecProperties> |
|
0 commit comments