Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merges unpkg-submodule branch into main, make the repo submodule ready #1325

Merged
merged 14 commits into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" Condition="Exists($([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../')))" />
</Project>
7 changes: 2 additions & 5 deletions WinUIGallery/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@

<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" Condition="Exists($([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../')))" />

<!-- When building standalone, WinUI Gallery needs to do some extra things that are done implicitly in the WinUI repo.
Determine if building standalone by conditioning on the MuxCustomBuildTasksPackageVersion property, which only exists in the WinUI repo -->
<PropertyGroup Condition="'$(MuxCustomBuildTasksPackageVersion)' != ''">
<IsInWinUIRepo>true</IsInWinUIRepo>

<!-- When building standalone, WinUI Gallery needs to do some extra things that are done implicitly in the WinUI repo.-->
<PropertyGroup Condition="'$(IsInWinUIRepo)' == 'true'">
<!-- We want to binplace the WinUI Gallery pdb to a subdirectory of Symbols\Test so that the UWP and Desktop versions don't
overwrite each other. -->
<BinplaceSymbolsToSubdir>true</BinplaceSymbolsToSubdir>
Expand Down
51 changes: 51 additions & 0 deletions WinUIGallery/Package.MSIX.appxmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8"?>
<Package
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3"
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="uap mp uap3">
<Identity Name="Microsoft.WinUI3ControlsGallery.Desktop" Publisher="CN=WinUITest" Version="1.3.6.0" />
<mp:PhoneIdentity PhoneProductId="863667e0-667a-4bb4-ac52-c59656c7333a" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
<Properties>
<DisplayName>WinUI 3 Gallery</DisplayName>
<PublisherDisplayName>Microsoft Corporation</PublisherDisplayName>
<Logo>Assets\Tiles\StoreLogo-sdk.png</Logo>
<uap:SupportedUsers>multiple</uap:SupportedUsers>
</Properties>
<Resources>
<Resource Language="x-generate" />
</Resources>
<Applications>
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="$targetentrypoint$">
<uap:VisualElements DisplayName="WinUI 3 Gallery" Square150x150Logo="Assets\Tiles\squaretile-sdk.png" Square44x44Logo="Assets\Tiles\SmallTile-sdk.png" Description="WinUI 3 Gallery" BackgroundColor="transparent">
<uap:DefaultTile Square310x310Logo="Assets\Tiles\LargeTile.png" Wide310x150Logo="Assets\Tiles\WideTile.png" Square71x71Logo="Assets\Tiles\SmallTile.png">
<uap:ShowNameOnTiles>
<uap:ShowOn Tile="square150x150Logo" />
<uap:ShowOn Tile="wide310x150Logo" />
<uap:ShowOn Tile="square310x310Logo" />
</uap:ShowNameOnTiles>
</uap:DefaultTile>
<uap:SplashScreen Image="Assets\Tiles\splash-sdk.png" BackgroundColor="#00b2f0" />
</uap:VisualElements>
<Extensions>
<uap3:Extension Category="windows.appUriHandler">
<uap3:AppUriHandler>
<uap3:Host Name="winuigallery.com" />
<uap3:Host Name="xamlcontrolsgallery.com" />
</uap3:AppUriHandler>
</uap3:Extension>
<uap:Extension Category="windows.protocol">
<uap:Protocol Name="winui3gallery">
<uap:DisplayName>WinUI 3 Gallery</uap:DisplayName>
</uap:Protocol>
</uap:Extension>
</Extensions>
</Application>
</Applications>
<Capabilities>
<rescap:Capability Name="runFullTrust" />
<Capability Name="internetClient" />
</Capabilities>
</Package>
107 changes: 0 additions & 107 deletions WinUIGallery/WinUIGallery.DesktopWap.Package.wapproj

This file was deleted.

74 changes: 0 additions & 74 deletions WinUIGallery/WinUIGallery.DesktopWap.sln

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@
<Sdk Name="Microsoft.Build.CentralPackageVersions" Version="2.0.1" />

<PropertyGroup>
<!-- Set WindowsPackageType to 'None' to build XCG as an unpackaged application - use the "WinUIGallery Unpackaged" profile to launch it -->
<!-- Set WindowsPackageType to 'MSIX' to build XCG as an packaged application - use the "WinUIGallery Packaged" profile to launch it -->
<WindowsPackageType Condition="'$(WindowsPackageType)'==''">MSIX</WindowsPackageType>
<OutputType>WinExe</OutputType>
<TargetFramework>$(SamplesTargetFrameworkMoniker)</TargetFramework>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<DefineConstants>$(DefineConstants);MSIX</DefineConstants>
<DefineConstants Condition="'$(WindowsAppSdkSelfContained)'==''">$(DefineConstants);WindowsAppSdkRuntimeDependent</DefineConstants>
<ApplicationManifest>app.manifest</ApplicationManifest>
<Platforms>x86;x64;ARM64</Platforms>
<NoWarn>8305</NoWarn>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
<EnableMsixTooling>false</EnableMsixTooling>
<EnableMsixTooling>true</EnableMsixTooling>
<NoWarn>
0108; <!-- 'x' hides inherited member 'y'. Use the new keyword if hiding was intended. -->
8305 <!-- 'x' is for evaluation purposes only and is subject to change or removal in future updates. -->
Expand All @@ -22,20 +25,39 @@
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
</PropertyGroup>

<PropertyGroup Condition="'$(WindowsPackageType)'=='None'">
<WindowsAppSdkEnableMdd>true</WindowsAppSdkEnableMdd>
<WindowsAppSdkBootstrapInitialize>true</WindowsAppSdkBootstrapInitialize>
<DefineConstants>$(DefineConstants);UNPACKAGED</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(WindowsPackageType)'=='MSIX'">
<DefineConstants>MSIX</DefineConstants>
</PropertyGroup>

<!-- AppInstaller settings when building in the WinUI repo -->
<PropertyGroup Condition="'$(IsInWinUIRepo)' == 'true'">
<GenerateAppInstallerFile>true</GenerateAppInstallerFile>
<!-- URI must be absolute so this is really only useful for testing a locally produced
AppInstaller. -->
<AppInstallerUri>$(AppxPackageDir)</AppInstallerUri>
<!-- False until https://task.ms/31482969 is implemented -->
<AppxBundle>Never</AppxBundle>
</PropertyGroup>

<Import Project="Common.props" />

<!-- In the WinUI repo, package reference versions are controlled centrally by a Packages.props. We will
just add versionless PackageReferences here. They will be updated to their actual versions by either the Packages.props file
in the WinUI repo, or the next ItemGroup below when standalone. -->
<ItemGroup>
<PackageReference Include="Microsoft.WindowsAppSDK" />
<PackageReference Include="ColorCode.Core" />
<PackageReference Include="CommunityToolkit.Labs.WinUI.SegmentedControl" Version="0.0.2" />
<PackageReference Include="CommunityToolkit.Labs.WinUI.SettingsControls" Version="0.0.16" />
<PackageReference Include="CommunityToolkit.WinUI.UI" Version="7.1.2" />
<PackageReference Include="CommunityToolkit.WinUI.UI.Animations" Version="7.1.2" />
<PackageReference Include="Microsoft.Graphics.Win2D" />
<PackageReference Include="Microsoft.WinUI" />
<PackageReference Include="Microsoft.ProjectReunion.InteractiveExperiences.TransportPackage" />
<PackageReference Include="Microsoft.Windows.CsWinRT" />
<Manifest Include="$(ApplicationManifest)" />

Expand All @@ -47,32 +69,19 @@
<PackageReference Include="System.Private.Uri" />
</ItemGroup>
<ItemGroup Condition="'$(IsInWinUIRepo)' != 'true'">
<PackageReference Update="Microsoft.WindowsAppSDK" Version="$(WindowsAppSdkPackageVersion)" />
<PackageReference Remove="ColorCode.Core" />
<PackageReference Include="ColorCode.WinUI" Version="$(ColorCodeVersion)" />
<PackageReference Update="Microsoft.Graphics.Win2D" Version="$(GraphicsWin2DVersion)" />
<PackageReference Update="Microsoft.VCRTForwarders.140" Version="1.0.6" />
<PackageReference Update="Microsoft.WinUI" Version="$(WinUIPackageVersion)" Condition="'$(WinUIPackageVersion)' != ''" />
<!-- Get latest WinRT.Runtime.dll from C#/WinRT -->
<PackageReference Update="Microsoft.Windows.CsWinRT" Version="$(MicrosoftCsWinRTPackageVersion)" />
<PackageReference Update="Microsoft.Windows.CsWinRT" Version="2.0.3" />
<PackageReference Update="System.Private.Uri" Version="4.3.2" />
</ItemGroup>

<ItemGroup Condition="'$(WindowsAppSdkPackageVersion)' != ''">
<PackageReference Remove="Microsoft.WinUI" />
<PackageReference Remove="Microsoft.ProjectReunion.InteractiveExperiences.TransportPackage" />
<PackageReference Include="Microsoft.WindowsAppSDK" />
</ItemGroup>

<ItemGroup Condition="'$(IsInWinUIRepo)' != 'true'">
<PackageReference Update="Microsoft.WindowsAppSDK" Version="$(WindowsAppSdkPackageVersion)" Condition="'$(WindowsAppSdkPackageVersion)' != ''" />
</ItemGroup>

<ItemGroup>
<PRIResource Include="Strings\en-US\Resources.resw" />

<!--Include package/runtime version numbers-->
<Compile Include="$(MicrosoftWindowsAppSDKPackageDir)include\WindowsAppSDK-VersionInfo.cs" />

<Compile Remove="CollectionsInterop.cs" />
<Compile Remove="Behaviors\ImageScrollBehavior.cs" />
<Compile Remove="ControlPages\ScrollViewer2Page.xaml.cs" />
Expand Down
Loading