-
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
20 changed files
with
122 additions
and
194 deletions.
There are no files selected for viewing
Binary file removed
BIN
-1.4 KB
...plate/Resizetizer.Extensions.Sample.Windows/Images/LockScreenLogo.scale-200.png
Binary file not shown.
Binary file removed
BIN
-6.87 KB
samples/NewTemplate/Resizetizer.Extensions.Sample.Windows/Images/SplashScreen.png
Binary file not shown.
Binary file removed
BIN
-4.22 KB
...emplate/Resizetizer.Extensions.Sample.Windows/Images/SplashScreen.scale-100.png
Binary file not shown.
Binary file removed
BIN
-5.61 KB
...emplate/Resizetizer.Extensions.Sample.Windows/Images/SplashScreen.scale-125.png
Binary file not shown.
Binary file removed
BIN
-7.12 KB
...emplate/Resizetizer.Extensions.Sample.Windows/Images/SplashScreen.scale-150.png
Binary file not shown.
Binary file removed
BIN
-7.52 KB
...emplate/Resizetizer.Extensions.Sample.Windows/Images/SplashScreen.scale-200.png
Binary file not shown.
Binary file removed
BIN
-31.3 KB
...emplate/Resizetizer.Extensions.Sample.Windows/Images/SplashScreen.scale-400.png
Binary file not shown.
Binary file removed
BIN
-2.87 KB
...te/Resizetizer.Extensions.Sample.Windows/Images/Square150x150Logo.scale-200.png
Binary file not shown.
Binary file removed
BIN
-2.73 KB
...es/NewTemplate/Resizetizer.Extensions.Sample.Windows/Images/Square44x44Logo.png
Binary file not shown.
Binary file removed
BIN
-1.61 KB
...late/Resizetizer.Extensions.Sample.Windows/Images/Square44x44Logo.scale-200.png
Binary file not shown.
Binary file removed
BIN
-1.23 KB
...nsions.Sample.Windows/Images/Square44x44Logo.targetsize-24_altform-unplated.png
Binary file not shown.
Binary file removed
BIN
-1.42 KB
samples/NewTemplate/Resizetizer.Extensions.Sample.Windows/Images/StoreLogo.png
Binary file not shown.
Binary file removed
BIN
-3.13 KB
...late/Resizetizer.Extensions.Sample.Windows/Images/Wide310x150Logo.scale-200.png
Binary file not shown.
67 changes: 33 additions & 34 deletions
67
samples/NewTemplate/Resizetizer.Extensions.Sample.Windows/Package.appxmanifest
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,44 +1,43 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<Package | ||
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" | ||
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" | ||
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" | ||
IgnorableNamespaces="uap rescap"> | ||
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" | ||
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" | ||
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" | ||
IgnorableNamespaces="uap rescap"> | ||
|
||
<Identity | ||
Name="8284486D-9D53-48F2-B1FB-E5689C4B6F72" | ||
Publisher="O=Resizetizer.Extensions.Sample" | ||
Version="1.0.0.0" /> | ||
<Identity | ||
Name="Resizetizer.Extensions.Sample" | ||
Publisher="O=Resizetizer.Extensions.Sample" | ||
Version="1.0.0.0" /> | ||
|
||
<Properties> | ||
<DisplayName>Resizetizer.Extensions.Sample</DisplayName> | ||
<PublisherDisplayName>Resizetizer.Extensions.Sample</PublisherDisplayName> | ||
</Properties> | ||
<Properties> | ||
<DisplayName>Resizetizer.Extensions.Sample</DisplayName> | ||
<PublisherDisplayName>Resizetizer.Extensions.Sample</PublisherDisplayName> | ||
</Properties> | ||
|
||
<Dependencies> | ||
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" /> | ||
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" /> | ||
</Dependencies> | ||
<Dependencies> | ||
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" /> | ||
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" /> | ||
</Dependencies> | ||
|
||
<Resources> | ||
<Resource Language="x-generate"/> | ||
</Resources> | ||
<Resources> | ||
<Resource Language="x-generate"/> | ||
</Resources> | ||
|
||
<Applications> | ||
<Application Id="App" | ||
Executable="$targetnametoken$.exe" | ||
EntryPoint="$targetentrypoint$"> | ||
<uap:VisualElements | ||
DisplayName="Resizetizer.Extensions.Sample" | ||
Description="Resizetizer.Extensions.Sample"> | ||
<uap:SplashScreen /> | ||
<uap:DefaultTile /> | ||
</uap:VisualElements> | ||
</Application> | ||
</Applications> | ||
<Applications> | ||
<Application Id="App" | ||
Executable="$targetnametoken$.exe" | ||
EntryPoint="$targetentrypoint$"> | ||
<uap:VisualElements | ||
DisplayName="Resizetizer.Extensions.Sample" | ||
Description="Resizetizer.Extensions.Sample"> | ||
<uap:SplashScreen /> | ||
</uap:VisualElements> | ||
</Application> | ||
</Applications> | ||
|
||
<Capabilities> | ||
<rescap:Capability Name="runFullTrust" /> | ||
</Capabilities> | ||
<Capabilities> | ||
<rescap:Capability Name="runFullTrust" /> | ||
</Capabilities> | ||
</Package> |
20 changes: 0 additions & 20 deletions
20
...plate/Resizetizer.Extensions.Sample.Windows/Properties/PublishProfiles/win10-arm64.pubxml
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
...emplate/Resizetizer.Extensions.Sample.Windows/Properties/PublishProfiles/win10-x64.pubxml
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
...emplate/Resizetizer.Extensions.Sample.Windows/Properties/PublishProfiles/win10-x86.pubxml
This file was deleted.
Oops, something went wrong.
14 changes: 7 additions & 7 deletions
14
samples/NewTemplate/Resizetizer.Extensions.Sample.Windows/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,10 +1,10 @@ | ||
{ | ||
"profiles": { | ||
"Resizetizer.Extensions.Sample.Windows (Package)": { | ||
"commandName": "MsixPackage" | ||
}, | ||
"Resizetizer.Extensions.Sample.Windows (Unpackaged)": { | ||
"commandName": "Project" | ||
"profiles": { | ||
"Resizetizer.Extensions.Sample.Windows (Unpackaged)": { | ||
"commandName": "Project" | ||
}, | ||
"Resizetizer.Extensions.Sample.Windows (Package)": { | ||
"commandName": "MsixPackage" | ||
} | ||
} | ||
} | ||
} |
145 changes: 67 additions & 78 deletions
145
...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,88 +1,77 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<OutputType>WinExe</OutputType> | ||
<TargetFramework>net7.0-windows10.0.19041.0</TargetFramework> | ||
<TargetPlatformMinVersion>10.0.18362.0</TargetPlatformMinVersion> | ||
<RootNamespace>Resizetizer.Extensions.Sample.Windows</RootNamespace> | ||
<ApplicationManifest>app.manifest</ApplicationManifest> | ||
<Platforms>x86;x64;arm64</Platforms> | ||
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers> | ||
<PublishProfile>win10-$(Platform).pubxml</PublishProfile> | ||
<UseWinUI>true</UseWinUI> | ||
<EnableMsixTooling>true</EnableMsixTooling> | ||
<!-- Uncomment for Unpackaged builds --> | ||
<!-- <WindowsPackageType>None</WindowsPackageType> --> | ||
<!-- For Unpackaged builds, change version of SDK to previous stable release https://github.com/microsoft/WindowsAppSDK/issues/3591 --> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<!-- Bundles the WinAppSDK binaries (Uncomment for unpackaged builds) --> | ||
<!-- <WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained> --> | ||
<!-- <SelfContained>true</SelfContained> --> | ||
</PropertyGroup> | ||
<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> | ||
|
||
<ItemGroup> | ||
<Content Include="Images\**" /> | ||
<Manifest Include="$(ApplicationManifest)" /> | ||
</ItemGroup> | ||
<!-- Bundles the WinAppSDK binaries --> | ||
<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained> | ||
|
||
<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> | ||
<!-- <SelfContained>true</SelfContained> --> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<!-- | ||
If you encounter this error message: | ||
<ItemGroup> | ||
<Content Include="Images\**" /> | ||
<Manifest Include="$(ApplicationManifest)" /> | ||
</ItemGroup> | ||
|
||
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. | ||
<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> | ||
|
||
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> | ||
<!-- | ||
If you encounter this error message: | ||
<ItemGroup> | ||
<ProjectReference Include="..\Resizetizer.Extensions.Sample\Resizetizer.Extensions.Sample.csproj" /> | ||
</ItemGroup> | ||
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. | ||
<!-- | ||
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> | ||
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> | ||
|
||
<!-- | ||
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> | ||
<ItemGroup> | ||
<ProjectReference Include="..\Resizetizer.Extensions.Sample\Resizetizer.Extensions.Sample.csproj" /> | ||
</ItemGroup> | ||
|
||
<Import Project="..\Resizetizer.Extensions.Sample.Base\base.props" /> | ||
<Target Name="ValidateTransientLocalAssets" AfterTargets="Build" Condition="'$(TargetFramework)'!=''"> | ||
<PropertyGroup> | ||
<_ResizetizerManifestPath>$(_UnoIntermediateManifest)Package.appxmanifest</_ResizetizerManifestPath> | ||
<_ResizetizerSplashScreenPath>$(_UnoIntermediateSplashScreen)splash_screen.scale-150.png</_ResizetizerSplashScreenPath> | ||
<_ResizetizerAppIconPath>$(_UnoIntermediateImages)iconapp.ico</_ResizetizerAppIconPath> | ||
<_ResizetizerAppIconImagesPath>$(_UnoIntermediateImages)Icons\iconappLogo.scale-150.png</_ResizetizerAppIconImagesPath> | ||
</PropertyGroup> | ||
<Message Text="Validating local assets at '$(_ResizetizerIntermediateOutputRoot)'" Importance="high" /> | ||
<Error Condition="!Exists('$(_ResizetizerManifestPath)')" Text="Manifest file wasn't created." /> | ||
<Error Condition="!Exists('$(_ResizetizerSplashScreenPath)')" Text="SplashScreen file wasn't created." /> | ||
<Error Condition="!Exists('$(_ResizetizerAppIconPath)')" Text=".ico file wasn't created." /> | ||
<Error Condition="!Exists('$(_ResizetizerAppIconImagesPath)')" Text="App icon image file wasn't created." /> | ||
</Target> | ||
<!-- | ||
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> | ||
|
||
<!-- | ||
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> | ||
|
||
<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> | ||
</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