-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up .NET 5 references and update to WinAppSDK projection for tes…
…ting (#1261) * Remove .NET 5 TFM now that we don't support it. * Update sample to .NET 6 * Fix WinUIDesktopSample * Move object lifetime tests to WinAppSDK projection * Fix build * Move embedded tests off NET5 and remove unused projection. * Remove project from sln. * Move couple more packages * Move to Variable for WinAppSDK version. * Add comment * Dropping signing as it doesn't seem to be needed anymore with the new MSTest packages. * Cleanup a couple more .NET 5 references. * Fix launching WinUIDesktopSample
- Loading branch information
1 parent
18ab8b8
commit 2a4876a
Showing
53 changed files
with
219 additions
and
611 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
....DispatcherQueueSynchronizationContext.cs → ....DispatcherQueueSynchronizationContext.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>$(LibBuildTFMs)</TargetFrameworks> | ||
<Platforms>x64;x86</Platforms> | ||
<AssemblyName>Microsoft.WinUI</AssemblyName> | ||
<EnableTrimAnalyzer>true</EnableTrimAnalyzer> | ||
<IsTrimmable>true</IsTrimmable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="System.Numerics.Vectors" Version="4.5.0" /> | ||
<ProjectReference Include="..\..\WinRT.Runtime\WinRT.Runtime.csproj" /> | ||
<ProjectReference Include="..\..\cswinrt\cswinrt.vcxproj" /> | ||
<ProjectReference Include="..\Windows\Windows.csproj" /> | ||
<PackageReference Include="Microsoft.WindowsAppSDK" Version="$(MicrosoftWinAppSDKVersion)" GeneratePathProperty="true"> | ||
<ExcludeAssets>build; buildtransitive; compile; runtime</ExcludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<CsWinRTFilters> | ||
-exclude Windows | ||
-include Microsoft | ||
# The current WinUI nuget incorrectly references several Windows.* types that should be | ||
# Microsoft.* types instead. Temporarily include these to enable the build | ||
-include Windows.UI.Xaml.Interop.Type | ||
-include Windows.UI.Xaml.Interop.NotifyCollectionChangedAction | ||
-include Windows.UI.Xaml.Markup.ContentPropertyAttribute | ||
-include Windows.UI.Xaml.StyleTypedPropertyAttribute | ||
-include Windows.UI.Xaml.TemplatePartAttribute | ||
-include Windows.UI.Xaml.TemplateVisualStateAttribute | ||
-include Windows.UI.Xaml.Data.BindableAttribute | ||
-include Windows.UI.Xaml.Markup.ContentPropertyAttribute | ||
-include Windows.UI.Xaml.Markup.FullXamlMetadataProviderAttribute | ||
-include Windows.UI.Xaml.Markup.MarkupExtensionReturnTypeAttribute | ||
-include Windows.UI.Xaml.Media.Animation.ConditionallyIndependentlyAnimatableAttribute | ||
-include Windows.UI.Xaml.Media.Animation.IndependentlyAnimatableAttribute | ||
-include Windows.UI.Xaml.Media.Animation.ConditionallyIndependentlyAnimatableAttribute | ||
</CsWinRTFilters> | ||
<!--PkgMicrosoft_WindowsAppSDK is set in in obj\*.csproj.nuget.g.props with TargetFramework condition, doesn't support multi-targeting--> | ||
<PkgMicrosoft_WindowsAppSDK>$([MSBuild]::NormalizeDirectory('$(NuGetPackageRoot)', 'microsoft.windowsappsdk', '$(MicrosoftWinAppSDKVersion)'))</PkgMicrosoft_WindowsAppSDK> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<!--Explicitly reference WinAppSDK winmds from TFM uap10.0--> | ||
<CsWinRTInputs Include="$(PkgMicrosoft_WindowsAppSDK)/**/*.winmd" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...et5App.Bootstrap/Net5App.Bootstrap.csproj → ...et6App.Bootstrap/Net6App.Bootstrap.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ed/Net5App/Properties/launchSettings.json → ...ed/Net6App/Properties/launchSettings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"profiles": { | ||
"Net5App": { | ||
"Net6App": { | ||
"commandName": "Project", | ||
"nativeDebugging": true | ||
} | ||
|
Oops, something went wrong.