Skip to content

Commit 1561c58

Browse files
committed
Use "MSBuild.NET.Extras.Sdk"
This replacement for "MSBuild.Sdk.Extras" contains fixes around UWP project setup and build!
1 parent 4f6c2a3 commit 1561c58

File tree

65 files changed

+171
-176
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+171
-176
lines changed

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
<PropertyGroup>
3232
<!-- Code CS8002 is a warning for strong named -> non-strong-named reference. This is valid for platforms other than .NET Framework (and is needed for the UWP targets. -->
3333
<NoWarn>$(NoWarn);CS8002</NoWarn>
34-
<!-- For including default @(Page) and @(Resource) items via 'MSBuild.Sdk.Extras' Sdk package. Also provides up to date check and file nesting -->
35-
<ExtrasEnableDefaultXamlItems>true</ExtrasEnableDefaultXamlItems>
34+
<!-- For including default @(Page) and @(Resource) items via 'MSBuild.NET.Extras.Sdk' Sdk package. Also provides up to date check and file nesting -->
35+
<EnableDefaultXamlItems>true</EnableDefaultXamlItems>
3636
</PropertyGroup>
3737
</When>
3838
</Choose>

Directory.Packages.props

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
<PropertyGroup Label="Core">
44
<NETStandardImplicitPackageVersion>2.0.3</NETStandardImplicitPackageVersion>
5-
<ExtrasUwpMetaPackageVersion>6.2.13</ExtrasUwpMetaPackageVersion>
65
</PropertyGroup>
76

87
<ItemGroup Label="Core">
@@ -12,8 +11,8 @@
1211
<PackageVersion Include="Microsoft.UI.Xaml" Version="2.7.0" />
1312
<PackageVersion Include="Microsoft.Xaml.Behaviors.Uwp.Managed" Version="2.0.1" />
1413
<PackageVersion Include="Microsoft.Windows.SDK.Contracts" Version="10.0.19041.1" />
15-
<!-- MSBuild SDK Extras refernces the following package implicitly -->
16-
<PackageVersion Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.2.13" Condition="'$(_SdkShortFrameworkIdentifier)' != 'uap'" />
14+
<!-- MSBuild .NET Extras SDK refernces the following package implicitly -->
15+
<PackageVersion Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.2.13" Condition="'$(UsingMSBuildNETExtrasSdk)' != 'true'" />
1716
<!-- C# Compiler SDK -->
1817
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.0.1" />
1918
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.0.1" />

GazeInputTest/GazeInputTest.csproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
2323
<DebugSymbols>true</DebugSymbols>
2424
<OutputPath>bin\x86\Debug\</OutputPath>
25-
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
25+
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UAP</DefineConstants>
2626
<DebugType>full</DebugType>
2727
<PlatformTarget>x86</PlatformTarget>
2828
<UseVSHostingProcess>false</UseVSHostingProcess>
@@ -31,7 +31,7 @@
3131
</PropertyGroup>
3232
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
3333
<OutputPath>bin\x86\Release\</OutputPath>
34-
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
34+
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UAP</DefineConstants>
3535
<Optimize>true</Optimize>
3636
<DebugType>pdbonly</DebugType>
3737
<PlatformTarget>x86</PlatformTarget>
@@ -43,7 +43,7 @@
4343
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
4444
<DebugSymbols>true</DebugSymbols>
4545
<OutputPath>bin\ARM\Debug\</OutputPath>
46-
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
46+
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UAP</DefineConstants>
4747
<DebugType>full</DebugType>
4848
<PlatformTarget>ARM</PlatformTarget>
4949
<UseVSHostingProcess>false</UseVSHostingProcess>
@@ -52,7 +52,7 @@
5252
</PropertyGroup>
5353
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
5454
<OutputPath>bin\ARM\Release\</OutputPath>
55-
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
55+
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UAP</DefineConstants>
5656
<Optimize>true</Optimize>
5757
<DebugType>pdbonly</DebugType>
5858
<PlatformTarget>ARM</PlatformTarget>
@@ -64,7 +64,7 @@
6464
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM64'">
6565
<DebugSymbols>true</DebugSymbols>
6666
<OutputPath>bin\ARM64\Debug\</OutputPath>
67-
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
67+
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UAP</DefineConstants>
6868
<DebugType>full</DebugType>
6969
<PlatformTarget>ARM64</PlatformTarget>
7070
<UseVSHostingProcess>false</UseVSHostingProcess>
@@ -73,7 +73,7 @@
7373
</PropertyGroup>
7474
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM64'">
7575
<OutputPath>bin\ARM64\Release\</OutputPath>
76-
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
76+
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UAP</DefineConstants>
7777
<Optimize>true</Optimize>
7878
<DebugType>pdbonly</DebugType>
7979
<PlatformTarget>ARM64</PlatformTarget>
@@ -85,7 +85,7 @@
8585
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
8686
<DebugSymbols>true</DebugSymbols>
8787
<OutputPath>bin\x64\Debug\</OutputPath>
88-
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
88+
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UAP</DefineConstants>
8989
<DebugType>full</DebugType>
9090
<PlatformTarget>x64</PlatformTarget>
9191
<UseVSHostingProcess>false</UseVSHostingProcess>
@@ -94,7 +94,7 @@
9494
</PropertyGroup>
9595
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
9696
<OutputPath>bin\x64\Release\</OutputPath>
97-
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
97+
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UAP</DefineConstants>
9898
<Optimize>true</Optimize>
9999
<DebugType>pdbonly</DebugType>
100100
<PlatformTarget>x64</PlatformTarget>

Microsoft.Toolkit.Uwp.Connectivity/Microsoft.Toolkit.Uwp.Connectivity.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="MSBuild.Sdk.Extras">
1+
<Project Sdk="MSBuild.NET.Extras.Sdk">
22

33
<PropertyGroup>
44
<TargetFrameworks>uap10.0.17763</TargetFrameworks>

Microsoft.Toolkit.Uwp.DeveloperTools/Microsoft.Toolkit.Uwp.DeveloperTools.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="MSBuild.Sdk.Extras">
1+
<Project Sdk="MSBuild.NET.Extras.Sdk">
22

33
<PropertyGroup>
44
<TargetFrameworks>uap10.0.17763</TargetFrameworks>

Microsoft.Toolkit.Uwp.Input.GazeInteraction/Microsoft.Toolkit.Uwp.Input.GazeInteraction.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="MSBuild.Sdk.Extras">
1+
<Project Sdk="MSBuild.NET.Extras.Sdk">
22

33
<PropertyGroup>
44
<TargetFrameworks>uap10.0.17134</TargetFrameworks>

Microsoft.Toolkit.Uwp.Notifications/Badges/BadgeGlyphContent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// See the LICENSE file in the project root for more information.
44

55
using System;
6-
#if WINDOWS_UWP
6+
#if WINDOWS_UAP
77
using Windows.Data.Xml.Dom;
88
#endif
99

@@ -80,7 +80,7 @@ public override string ToString()
8080
return GetContent();
8181
}
8282

83-
#if WINDOWS_UWP
83+
#if WINDOWS_UAP
8484
/// <summary>
8585
/// Retrieves the notification XML content as a WinRT Xml document.
8686
/// </summary>

Microsoft.Toolkit.Uwp.Notifications/Badges/BadgeNumericContent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
#if WINDOWS_UWP
5+
#if WINDOWS_UAP
66
using Windows.Data.Xml.Dom;
77
#endif
88

@@ -62,7 +62,7 @@ public override string ToString()
6262
return GetContent();
6363
}
6464

65-
#if WINDOWS_UWP
65+
#if WINDOWS_UAP
6666
/// <summary>
6767
/// Retrieves the notification Xml content as a WinRT Xml document.
6868
/// </summary>

Microsoft.Toolkit.Uwp.Notifications/Common/BaseElement.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.IO;
66
using System.Text;
77

8-
#if WINDOWS_UWP
8+
#if WINDOWS_UAP
99
using Windows.Data.Xml.Dom;
1010
#endif
1111

@@ -40,7 +40,7 @@ public string GetContent()
4040
}
4141
}
4242

43-
#if WINDOWS_UWP
43+
#if WINDOWS_UAP
4444
/// <summary>
4545
/// Retrieves the notification XML content as a WinRT XML document.
4646
/// </summary>

Microsoft.Toolkit.Uwp.Notifications/Common/INotificationContent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
#if WINDOWS_UWP
5+
#if WINDOWS_UAP
66
using Windows.Data.Xml.Dom;
77
#endif
88

@@ -19,7 +19,7 @@ public interface INotificationContent
1919
/// <returns>The notification Xml content as a string.</returns>
2020
string GetContent();
2121

22-
#if WINDOWS_UWP
22+
#if WINDOWS_UAP
2323
/// <summary>
2424
/// Retrieves the notification Xml content as a WinRT Xml document.
2525
/// </summary>

0 commit comments

Comments
 (0)