-
-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto-populate appxmanifest languages
- Loading branch information
Showing
2 changed files
with
280 additions
and
180 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,151 +1,189 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '15.0'"> | ||
<VisualStudioVersion>15.0</VisualStudioVersion> | ||
</PropertyGroup> | ||
<ItemGroup Label="ProjectConfigurations"> | ||
<ProjectConfiguration Include="Debug|x64"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|x64"> | ||
<Configuration>Release</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Debug|x86"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>x86</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|x86"> | ||
<Configuration>Release</Configuration> | ||
<Platform>x86</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Debug|ARM64"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>ARM64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|ARM64"> | ||
<Configuration>Release</Configuration> | ||
<Platform>ARM64</Platform> | ||
</ProjectConfiguration> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<WapProjPath Condition="'$(WapProjPath)'==''">$(MSBuildExtensionsPath)\Microsoft\DesktopBridge\</WapProjPath> | ||
</PropertyGroup> | ||
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.props" /> | ||
<PropertyGroup> | ||
<ProjectGuid>ea5510ed-f014-4587-a505-64c59d5b2627</ProjectGuid> | ||
<TargetPlatformVersion>10.0.22000.0</TargetPlatformVersion> | ||
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion> | ||
<DefaultLanguage>en-US</DefaultLanguage> | ||
<PackageCertificateKeyFile>EarTrumpet.Package_StoreKey.pfx</PackageCertificateKeyFile> | ||
<EntryPointProjectUniqueName>..\EarTrumpet\EarTrumpet.csproj</EntryPointProjectUniqueName> | ||
<GenerateAppInstallerFile>False</GenerateAppInstallerFile> | ||
<AppxAutoIncrementPackageRevision>False</AppxAutoIncrementPackageRevision> | ||
<AppxBundlePlatforms>x86</AppxBundlePlatforms> | ||
<AppInstallerUpdateFrequency>0</AppInstallerUpdateFrequency> | ||
<AppInstallerCheckForUpdateFrequency>OnApplicationRun</AppInstallerCheckForUpdateFrequency> | ||
<AppxPackageSigningEnabled>false</AppxPackageSigningEnabled> | ||
<MSBuildWarningsAsMessages>NU1702</MSBuildWarningsAsMessages> | ||
<AppxBundle>Always</AppxBundle> | ||
<AppxPackageSigningTimestampDigestAlgorithm>SHA256</AppxPackageSigningTimestampDigestAlgorithm> | ||
<GenerateTestArtifacts>False</GenerateTestArtifacts> | ||
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<AppxBundle>Always</AppxBundle> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'"> | ||
<AppxBundle>Always</AppxBundle> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'"> | ||
<AppxBundle>Always</AppxBundle> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'"> | ||
<AppxBundle>Always</AppxBundle> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> | ||
<AppxBundle>Always</AppxBundle> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<AppxBundle>Always</AppxBundle> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<AppxManifest Include="Package.appxmanifest"> | ||
<SubType>Designer</SubType> | ||
</AppxManifest> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\EarTrumpet\EarTrumpet.csproj"> | ||
<PublishProfile Condition="'$(Configuration)|$(Platform)'=='Release|x86'">Properties\PublishProfiles\x86.pubxml</PublishProfile> | ||
<PublishProfile Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Properties\PublishProfiles\x64.pubxml</PublishProfile> | ||
<PublishProfile Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">Properties\PublishProfiles\ARM64.pubxml</PublishProfile> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="EarTrumpet.Package_StoreKey.pfx" /> | ||
<None Include="Package.xml" /> | ||
<None Include="Package.StoreAssociation.xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Content Include="Assets\LargeTile.scale-100.png" /> | ||
<Content Include="Assets\LargeTile.scale-125.png" /> | ||
<Content Include="Assets\LargeTile.scale-150.png" /> | ||
<Content Include="Assets\LargeTile.scale-200.png" /> | ||
<Content Include="Assets\LargeTile.scale-400.png" /> | ||
<Content Include="Assets\SmallTile.scale-100.png" /> | ||
<Content Include="Assets\SmallTile.scale-125.png" /> | ||
<Content Include="Assets\SmallTile.scale-150.png" /> | ||
<Content Include="Assets\SmallTile.scale-200.png" /> | ||
<Content Include="Assets\SmallTile.scale-400.png" /> | ||
<Content Include="Assets\SplashScreen.scale-100.png" /> | ||
<Content Include="Assets\SplashScreen.scale-125.png" /> | ||
<Content Include="Assets\SplashScreen.scale-150.png" /> | ||
<Content Include="Assets\SplashScreen.scale-200.png" /> | ||
<Content Include="Assets\SplashScreen.scale-400.png" /> | ||
<Content Include="Assets\Square150x150Logo.scale-100.png" /> | ||
<Content Include="Assets\Square150x150Logo.scale-125.png" /> | ||
<Content Include="Assets\Square150x150Logo.scale-150.png" /> | ||
<Content Include="Assets\Square150x150Logo.scale-200.png" /> | ||
<Content Include="Assets\Square150x150Logo.scale-400.png" /> | ||
<Content Include="Assets\Square44x44Logo.altform-unplated_targetsize-16.png" /> | ||
<Content Include="Assets\Square44x44Logo.altform-unplated_targetsize-24.png" /> | ||
<Content Include="Assets\Square44x44Logo.altform-unplated_targetsize-256.png" /> | ||
<Content Include="Assets\Square44x44Logo.altform-unplated_targetsize-32.png" /> | ||
<Content Include="Assets\Square44x44Logo.altform-unplated_targetsize-48.png" /> | ||
<Content Include="Assets\Square44x44Logo.scale-100.png" /> | ||
<Content Include="Assets\Square44x44Logo.scale-125.png" /> | ||
<Content Include="Assets\Square44x44Logo.scale-150.png" /> | ||
<Content Include="Assets\Square44x44Logo.scale-200.png" /> | ||
<Content Include="Assets\Square44x44Logo.scale-400.png" /> | ||
<Content Include="Assets\Square44x44Logo.targetsize-16.png" /> | ||
<Content Include="Assets\Square44x44Logo.targetsize-24.png" /> | ||
<Content Include="Assets\Square44x44Logo.targetsize-256.png" /> | ||
<Content Include="Assets\Square44x44Logo.targetsize-32.png" /> | ||
<Content Include="Assets\Square44x44Logo.targetsize-48.png" /> | ||
<Content Include="Assets\StoreLogo.scale-100.png" /> | ||
<Content Include="Assets\StoreLogo.scale-125.png" /> | ||
<Content Include="Assets\StoreLogo.scale-150.png" /> | ||
<Content Include="Assets\StoreLogo.scale-200.png" /> | ||
<Content Include="Assets\StoreLogo.scale-400.png" /> | ||
<Content Include="Assets\welcome.gif" /> | ||
<Content Include="Assets\Wide310x150Logo.scale-100.png" /> | ||
<Content Include="Assets\Wide310x150Logo.scale-125.png" /> | ||
<Content Include="Assets\Wide310x150Logo.scale-150.png" /> | ||
<Content Include="Assets\Wide310x150Logo.scale-200.png" /> | ||
<Content Include="Assets\Wide310x150Logo.scale-400.png" /> | ||
<Content Include="Directory.Build.props" /> | ||
</ItemGroup> | ||
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.targets" /> | ||
<!-- | ||
<PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '15.0'"> | ||
<VisualStudioVersion>15.0</VisualStudioVersion> | ||
<NoWarn>MSB4011;$(NoWarn)</NoWarn> | ||
</PropertyGroup> | ||
<ItemGroup Label="ProjectConfigurations"> | ||
<ProjectConfiguration Include="Debug|x64"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|x64"> | ||
<Configuration>Release</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Debug|x86"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>x86</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|x86"> | ||
<Configuration>Release</Configuration> | ||
<Platform>x86</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Debug|ARM64"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>ARM64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|ARM64"> | ||
<Configuration>Release</Configuration> | ||
<Platform>ARM64</Platform> | ||
</ProjectConfiguration> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<WapProjPath Condition="'$(WapProjPath)'==''">$(MSBuildExtensionsPath)\Microsoft\DesktopBridge\</WapProjPath> | ||
</PropertyGroup> | ||
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.props" /> | ||
<PropertyGroup> | ||
<ProjectGuid>ea5510ed-f014-4587-a505-64c59d5b2627</ProjectGuid> | ||
<TargetPlatformVersion>10.0.22000.0</TargetPlatformVersion> | ||
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion> | ||
<DefaultLanguage>en-US</DefaultLanguage> | ||
<PackageCertificateKeyFile>EarTrumpet.Package_StoreKey.pfx</PackageCertificateKeyFile> | ||
<EntryPointProjectUniqueName>..\EarTrumpet\EarTrumpet.csproj</EntryPointProjectUniqueName> | ||
<GenerateAppInstallerFile>False</GenerateAppInstallerFile> | ||
<AppxAutoIncrementPackageRevision>False</AppxAutoIncrementPackageRevision> | ||
<AppxBundlePlatforms>x86</AppxBundlePlatforms> | ||
<AppInstallerUpdateFrequency>0</AppInstallerUpdateFrequency> | ||
<AppInstallerCheckForUpdateFrequency>OnApplicationRun</AppInstallerCheckForUpdateFrequency> | ||
<AppxPackageSigningEnabled>false</AppxPackageSigningEnabled> | ||
<MSBuildWarningsAsMessages>NU1702</MSBuildWarningsAsMessages> | ||
<AppxBundle>Always</AppxBundle> | ||
<AppxPackageSigningTimestampDigestAlgorithm>SHA256</AppxPackageSigningTimestampDigestAlgorithm> | ||
<GenerateTestArtifacts>False</GenerateTestArtifacts> | ||
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<AppxBundle>Always</AppxBundle> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'"> | ||
<AppxBundle>Always</AppxBundle> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'"> | ||
<AppxBundle>Always</AppxBundle> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'"> | ||
<AppxBundle>Always</AppxBundle> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> | ||
<AppxBundle>Always</AppxBundle> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<AppxBundle>Always</AppxBundle> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<AppxManifest Include="Package.appxmanifest"> | ||
<SubType>Designer</SubType> | ||
</AppxManifest> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\EarTrumpet\EarTrumpet.csproj"> | ||
<PublishProfile Condition="'$(Configuration)|$(Platform)'=='Release|x86'">Properties\PublishProfiles\x86.pubxml</PublishProfile> | ||
<PublishProfile Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Properties\PublishProfiles\x64.pubxml</PublishProfile> | ||
<PublishProfile Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">Properties\PublishProfiles\ARM64.pubxml</PublishProfile> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="EarTrumpet.Package_StoreKey.pfx" /> | ||
<None Include="Package.xml" /> | ||
<None Include="Package.StoreAssociation.xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Content Include="Assets\LargeTile.scale-100.png" /> | ||
<Content Include="Assets\LargeTile.scale-125.png" /> | ||
<Content Include="Assets\LargeTile.scale-150.png" /> | ||
<Content Include="Assets\LargeTile.scale-200.png" /> | ||
<Content Include="Assets\LargeTile.scale-400.png" /> | ||
<Content Include="Assets\SmallTile.scale-100.png" /> | ||
<Content Include="Assets\SmallTile.scale-125.png" /> | ||
<Content Include="Assets\SmallTile.scale-150.png" /> | ||
<Content Include="Assets\SmallTile.scale-200.png" /> | ||
<Content Include="Assets\SmallTile.scale-400.png" /> | ||
<Content Include="Assets\SplashScreen.scale-100.png" /> | ||
<Content Include="Assets\SplashScreen.scale-125.png" /> | ||
<Content Include="Assets\SplashScreen.scale-150.png" /> | ||
<Content Include="Assets\SplashScreen.scale-200.png" /> | ||
<Content Include="Assets\SplashScreen.scale-400.png" /> | ||
<Content Include="Assets\Square150x150Logo.scale-100.png" /> | ||
<Content Include="Assets\Square150x150Logo.scale-125.png" /> | ||
<Content Include="Assets\Square150x150Logo.scale-150.png" /> | ||
<Content Include="Assets\Square150x150Logo.scale-200.png" /> | ||
<Content Include="Assets\Square150x150Logo.scale-400.png" /> | ||
<Content Include="Assets\Square44x44Logo.altform-unplated_targetsize-16.png" /> | ||
<Content Include="Assets\Square44x44Logo.altform-unplated_targetsize-24.png" /> | ||
<Content Include="Assets\Square44x44Logo.altform-unplated_targetsize-256.png" /> | ||
<Content Include="Assets\Square44x44Logo.altform-unplated_targetsize-32.png" /> | ||
<Content Include="Assets\Square44x44Logo.altform-unplated_targetsize-48.png" /> | ||
<Content Include="Assets\Square44x44Logo.scale-100.png" /> | ||
<Content Include="Assets\Square44x44Logo.scale-125.png" /> | ||
<Content Include="Assets\Square44x44Logo.scale-150.png" /> | ||
<Content Include="Assets\Square44x44Logo.scale-200.png" /> | ||
<Content Include="Assets\Square44x44Logo.scale-400.png" /> | ||
<Content Include="Assets\Square44x44Logo.targetsize-16.png" /> | ||
<Content Include="Assets\Square44x44Logo.targetsize-24.png" /> | ||
<Content Include="Assets\Square44x44Logo.targetsize-256.png" /> | ||
<Content Include="Assets\Square44x44Logo.targetsize-32.png" /> | ||
<Content Include="Assets\Square44x44Logo.targetsize-48.png" /> | ||
<Content Include="Assets\StoreLogo.scale-100.png" /> | ||
<Content Include="Assets\StoreLogo.scale-125.png" /> | ||
<Content Include="Assets\StoreLogo.scale-150.png" /> | ||
<Content Include="Assets\StoreLogo.scale-200.png" /> | ||
<Content Include="Assets\StoreLogo.scale-400.png" /> | ||
<Content Include="Assets\welcome.gif" /> | ||
<Content Include="Assets\Wide310x150Logo.scale-100.png" /> | ||
<Content Include="Assets\Wide310x150Logo.scale-125.png" /> | ||
<Content Include="Assets\Wide310x150Logo.scale-150.png" /> | ||
<Content Include="Assets\Wide310x150Logo.scale-200.png" /> | ||
<Content Include="Assets\Wide310x150Logo.scale-400.png" /> | ||
<Content Include="Directory.Build.props" /> | ||
</ItemGroup> | ||
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.targets" /> | ||
<!-- | ||
After the base build is complete, we sign various artifacts. | ||
Wapproj will detect the changes and attempt to rebuild | ||
the base. This stops that. | ||
--> | ||
<Target Name="_BuildDependentProjects"> | ||
<ItemGroup> | ||
<TargetOutputs> | ||
</TargetOutputs> | ||
</ItemGroup> | ||
</Target> | ||
<Target Name="_BuildDependentProjects"> | ||
<ItemGroup> | ||
<TargetOutputs> | ||
</TargetOutputs> | ||
</ItemGroup> | ||
</Target> | ||
<!-- | ||
Microsoft.Build.AppxPackage.dll handles populating Resources | ||
when set to x-generate, but it doesn't support Centennial apps | ||
that don't use MRT. So we latch onto the newly generated | ||
manifest and fix it up ourselves. | ||
--> | ||
<Target Name="EarTrumpet_Hook_GenerateDesktopBridgeAppxManifest" AfterTargets="_GenerateDesktopBridgeAppxManifest"> | ||
<PropertyGroup> | ||
<AppxManifestPath>%(FinalAppxManifest.Identity)</AppxManifestPath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectPaths Include="%(ProjectReferenceWithExtraMetadata.RootDir)%(ProjectReferenceWithExtraMetadata.Directory)" /> | ||
</ItemGroup> | ||
|
||
<CreateItem Include="%(ProjectPaths.Identity)**\Resources.*.resx"> | ||
<Output TaskParameter="Include" ItemName="ReferencedResxFiles"/> | ||
</CreateItem> | ||
|
||
<ItemGroup> | ||
<ReferencedResxFiles> | ||
<LanguageTag>$([System.Text.RegularExpressions.Regex]::Match('%(Filename)', 'Resources\.(.+)').Groups[1].Value)</LanguageTag> | ||
</ReferencedResxFiles> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<ResourcesContent> | ||
<Resource Language="en-us" /> | ||
@(ReferencedResxFiles->'<Resource Language="%(LanguageTag)" />', '') | ||
</ResourcesContent> | ||
</PropertyGroup> | ||
|
||
<XmlPoke XmlInputPath="$(AppxManifestPath)" | ||
Query="//*[local-name()='Package']/*[local-name()='Resources']" | ||
Value="$(ResourcesContent)" | ||
Namespaces="<Namespace Prefix='p' Uri='http://schemas.microsoft.com/appx/manifest/foundation/windows10' />" /> | ||
</Target> | ||
</Project> |
Oops, something went wrong.