-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
48 additions
and
65 deletions.
There are no files selected for viewing
113 changes: 48 additions & 65 deletions
113
...mplate/Resizetizer.Extensions.Sample.Windows/Resizetizer.Extensions.Sample.Windows.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,60 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<OutputType>WinExe</OutputType> | ||
<TargetFramework>net7.0-windows10.0.19041.0</TargetFramework> | ||
<RootNamespace>Resizetizer.Extensions.Sample.Windows</RootNamespace> | ||
<ApplicationManifest>app.manifest</ApplicationManifest> | ||
<Platforms>x86;x64;arm64</Platforms> | ||
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers> | ||
<PublishProfile>win-$(Platform).pubxml</PublishProfile> | ||
<UseWinUI>true</UseWinUI> | ||
<EnableMsixTooling>true</EnableMsixTooling> | ||
|
||
<!-- Bundles the WinAppSDK binaries --> | ||
<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained> | ||
|
||
<!-- <SelfContained>true</SelfContained> --> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Content Include="Images\**" /> | ||
<Manifest Include="$(ApplicationManifest)" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Uno.WinUI" /> | ||
<PackageReference Include="Microsoft.WindowsAppSDK" /> | ||
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" /> | ||
<PackageReference Include="Microsoft.Extensions.Logging.Console" /> | ||
<PackageReference Include="Uno.Core.Extensions.Logging.Singleton" /> | ||
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<!-- | ||
If you encounter this error message: | ||
error NETSDK1148: A referenced assembly was compiled using a newer version of Microsoft.Windows.SDK.NET.dll. | ||
Please update to a newer .NET SDK in order to reference this assembly. | ||
This means that the two packages below must be aligned with the "build" version number of | ||
the "Microsoft.Windows.SDK.BuildTools" package above, and the "revision" version number | ||
must be the highest found in https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref. | ||
--> | ||
<!-- <FrameworkReference Update="Microsoft.Windows.SDK.NET.Ref" RuntimeFrameworkVersion="10.0.22621.28" /> | ||
<FrameworkReference Update="Microsoft.Windows.SDK.NET.Ref" TargetingPackVersion="10.0.22621.28" /> --> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Resizetizer.Extensions.Sample\Resizetizer.Extensions.Sample.csproj" /> | ||
</ItemGroup> | ||
|
||
<!-- | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<OutputType>WinExe</OutputType> | ||
<TargetFramework>net7.0-windows10.0.19041.0</TargetFramework> | ||
<RootNamespace>Resizetizer.Extensions.Sample.Windows</RootNamespace> | ||
<ApplicationManifest>app.manifest</ApplicationManifest> | ||
<Platforms>x86;x64;arm64</Platforms> | ||
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers> | ||
<PublishProfile>win-$(Platform).pubxml</PublishProfile> | ||
<UseWinUI>true</UseWinUI> | ||
<EnableMsixTooling>true</EnableMsixTooling> | ||
|
||
<!-- Bundles the WinAppSDK binaries --> | ||
<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained> | ||
|
||
<!-- <SelfContained>true</SelfContained> --> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Content Include="Images\**" /> | ||
<Manifest Include="$(ApplicationManifest)" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Uno.WinUI" /> | ||
<PackageReference Include="Microsoft.WindowsAppSDK" /> | ||
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" /> | ||
<PackageReference Include="Microsoft.Extensions.Logging.Console" /> | ||
<PackageReference Include="Uno.Core.Extensions.Logging.Singleton" /> | ||
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Resizetizer.Extensions.Sample\Resizetizer.Extensions.Sample.csproj" /> | ||
</ItemGroup> | ||
|
||
<!-- | ||
Defining the "Msix" ProjectCapability here allows the Single-project MSIX Packaging | ||
Tools extension to be activated for this project even if the Windows App SDK Nuget | ||
package has not yet been restored. | ||
--> | ||
<ItemGroup Condition="'$(DisableMsixProjectCapabilityAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'"> | ||
<ProjectCapability Include="Msix"/> | ||
</ItemGroup> | ||
<ItemGroup Condition="'$(DisableMsixProjectCapabilityAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'"> | ||
<ProjectCapability Include="Msix" /> | ||
</ItemGroup> | ||
|
||
<!-- | ||
<!-- | ||
Defining the "HasPackageAndPublishMenuAddedByProject" property here allows the Solution | ||
Explorer "Package and Publish" context menu entry to be enabled for this project even if | ||
the Windows App SDK Nuget package has not yet been restored. | ||
--> | ||
<PropertyGroup Condition="'$(DisableHasPackageAndPublishMenuAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'"> | ||
<HasPackageAndPublishMenu>true</HasPackageAndPublishMenu> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(DisableHasPackageAndPublishMenuAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'"> | ||
<HasPackageAndPublishMenu>true</HasPackageAndPublishMenu> | ||
</PropertyGroup> | ||
|
||
<Import Project="..\Resizetizer.Extensions.Sample.Base\base.props" /> | ||
<Import Project="..\Resizetizer.Extensions.Sample.Base\base.props" /> | ||
|
||
<Target Name="ValidateOverrides" BeforeTargets="Restore;_CheckForUnsupportedTargetFramework" Condition="'$(OverrideTargetFramework)' != ''"> | ||
<Error | ||
Text="OverrideTargetFramework set to '$(OverrideTargetFramework)' is missing Windows target. Set OverrideTargetFramework to $([MSBuild]::Escape('$'))(DotNetVersion)-windows10.0.19041.0 or skip building this project (eg unload the project in Visual Studio)" | ||
Condition="!$(OverrideTargetFramework.Contains('windows10'))" /> | ||
</Target> | ||
<Target Name="ValidateOverrides" BeforeTargets="Restore;_CheckForUnsupportedTargetFramework" Condition="'$(OverrideTargetFramework)' != ''"> | ||
<Error Text="OverrideTargetFramework set to '$(OverrideTargetFramework)' is missing Windows target. Set OverrideTargetFramework to $([MSBuild]::Escape('$'))(DotNetVersion)-windows10.0.19041.0 or skip building this project (eg unload the project in Visual Studio)" Condition="!$(OverrideTargetFramework.Contains('windows10'))" /> | ||
</Target> | ||
</Project> |