2019-03-29 15:55:59 +03:00
<Project Sdk= "Microsoft.NET.Sdk" >
2018-05-24 21:53:31 +03:00
2019-04-16 15:26:35 +03:00
<PropertyGroup >
<TargetFramework > net462</TargetFramework>
<UpdateAssemblyInfo > false</UpdateAssemblyInfo>
</PropertyGroup>
<PropertyGroup Condition= "'$(BuildingInsideVisualStudio)'==''" >
2021-01-25 16:04:26 +03:00
<AppVersion > $(GITVERSION_SemVer)</AppVersion>
2019-04-16 15:26:35 +03:00
2023-06-22 00:00:14 +03:00
<NuGetBin > .\external\nuget\NuGet.exe</NuGetBin>
2019-04-16 15:26:35 +03:00
<OutputDir > $(BUILD_ARTIFACTSTAGINGDIRECTORY)</OutputDir>
<Configuration > $(CombinedConfiguration.Split('|')[0])</Configuration>
<Platform > $(CombinedConfiguration.Split('|')[1])</Platform>
2019-09-09 23:36:42 +03:00
<AppEnvironment Condition= "'$(CombinedConfiguration)' != '' and $(CombinedConfiguration.Split('|').Length) > 2" > $(CombinedConfiguration.Split('|')[2])</AppEnvironment>
2019-04-16 15:26:35 +03:00
<UpdateAssemblyInfo > false</UpdateAssemblyInfo>
<_isWindows > $([MSBuild]::IsOsPlatform(Windows))</_isWindows>
</PropertyGroup>
<ItemGroup >
<None Include= "..\src\Directory.Build.targets" Link= "Directory.Build.targets" />
</ItemGroup>
2023-12-06 22:53:31 +03:00
<PropertyGroup >
2023-12-07 00:16:27 +03:00
<DocfxVersion > 2.73.2</DocfxVersion>
2023-12-06 22:53:31 +03:00
</PropertyGroup>
2019-04-16 15:26:35 +03:00
<ItemGroup >
2022-11-15 15:23:06 +03:00
<PackageReference Include= "MSBuildTasks" Version= "1.5.0.235" />
<PackageReference Include= "NUnit.Runners" Version= "3.12.0" />
2019-04-16 15:26:35 +03:00
</ItemGroup>
<Target Name= "UnoVSBuild" AfterTargets= "Build" Condition= "'$(BuildingInsideVisualStudio)'!=''" >
<Warning Text= "Building this project under Visual Studio has no effect." />
</Target>
2023-04-20 02:09:20 +03:00
<Target Name= "PrepareBuildAssets" AfterTargets= "Build" Condition= "'$(BuildingInsideVisualStudio)'==''" >
2021-01-25 16:04:26 +03:00
<Message Text= "Building for $(Configuration) and $(Platform) BuildReason:$(BUILD_REASON) Version:$(GitVersion_SemVer) UNO_UWP_BUILD:$(UNO_UWP_BUILD)" />
2022-10-02 05:25:39 +03:00
2024-04-09 22:19:31 +03:00
<CallTarget Targets= "UpdateTasksSHA" />
2022-10-15 16:12:58 +03:00
<CallTarget Targets= "PrepareNuGetPackage" />
2022-09-29 22:45:29 +03:00
</Target>
2022-11-15 15:23:06 +03:00
2019-04-16 15:26:35 +03:00
<Target Name= "UpdateTasksSHA" >
2018-08-31 04:45:27 +03:00
2019-04-16 15:26:35 +03:00
<ItemGroup >
2021-07-21 21:39:59 +03:00
<_Sha1Replace Include= "..\src\SourceGenerators\Uno.UI.Tasks\**\*.cs" />
2023-06-22 00:00:14 +03:00
<_Sha1Replace Include= "..\build\nuget\uno.winui.winappsdk.targets" />
2023-10-27 22:25:31 +03:00
<_Sha1Replace Include= "..\build\nuget\uno.winui.runtime-replace.targets" />
2019-04-16 15:26:35 +03:00
<_Sha1Replace Include= "..\src\SourceGenerators\Uno.UI.Tasks\Uno.UI.Tasks.csproj" />
2022-10-14 16:07:14 +03:00
<_Sha1Replace Include= "..\src\SourceGenerators\Uno.UI.Tasks\Content\Uno.UI.Tasks*.*" />
2024-03-27 22:42:36 +03:00
<_Sha1Replace Include= "..\src\Uno.Sdk\**\*" />
2019-04-16 15:26:35 +03:00
</ItemGroup>
2018-08-31 04:45:27 +03:00
2023-12-19 22:16:51 +03:00
<PropertyGroup >
<_ReplacedSHA > $(GitVersion_Sha)</_ReplacedSHA>
<!-- Use the VersionSource SHA to avoid conflicts for PR builds that span merges on master -->
<_ReplacedSHA Condition= "$(GITVERSION_INFORMATIONALVERSION.Contains('PullRequest'))" > $(GITVERSION_VersionSourceSha)</_ReplacedSHA>
</PropertyGroup>
2024-04-09 22:19:31 +03:00
<ItemGroup >
<_FilesContent
Include="%(_Sha1Replace.Identity)"
Contents="$([System.IO.File]::ReadAllText('%(_Sha1Replace.Identity)').Replace('v0','v$(_ReplacedSHA)'))" />
</ItemGroup>
<WriteFilesTask FilesToProcess= "@(_FilesContent)" />
2019-04-16 15:26:35 +03:00
</Target>
2018-08-31 04:45:27 +03:00
2023-04-15 04:11:33 +03:00
<Target Name= "BuildCIMobile" >
<MSBuild Properties= "Configuration=Release;InformationalVersion=$(GITVERSION_InformationalVersion);CI_Build=true;_IsCIBuild=true;PackageOutputPath=$(BUILD_ARTIFACTSTAGINGDIRECTORY)\vslatest-netcoremobile;PackageVersion=$(GITVERSION_SemVer)"
2024-06-23 21:49:26 +03:00
Projects="filters\Uno.UI-packages-netcoremobile.slnf"
2024-02-03 03:47:37 +03:00
Targets="Restore;Build"
RebaseOutputs="false"
BuildInParallel="true" />
2018-10-16 06:13:09 +03:00
2019-04-16 15:26:35 +03:00
</Target>
2018-10-16 06:13:09 +03:00
2022-10-14 16:46:04 +03:00
<Target Name= "BuildCIWasm" >
2022-09-29 22:45:29 +03:00
2024-02-03 03:47:37 +03:00
<MSBuild
Properties="Configuration=Release;InformationalVersion=$(GITVERSION_InformationalVersion);CI_Build=true;_IsCIBuild=true;PackageOutputPath=$(BUILD_ARTIFACTSTAGINGDIRECTORY)\vslatest-wasm;PackageVersion=$(GITVERSION_SemVer)"
Projects="filters\Uno.UI-packages-wasm.slnf"
Targets="Restore;Build"
RebaseOutputs="false"
BuildInParallel="true" />
2022-09-29 22:45:29 +03:00
</Target>
2022-10-14 16:46:04 +03:00
<Target Name= "BuildCISkia" >
2022-09-29 22:45:29 +03:00
2024-02-03 03:47:37 +03:00
<MSBuild
Properties="Configuration=Release;InformationalVersion=$(GITVERSION_InformationalVersion);CI_Build=true;_IsCIBuild=true;PackageOutputPath=$(BUILD_ARTIFACTSTAGINGDIRECTORY)\vslatest-skia;PackageVersion=$(GITVERSION_SemVer)"
Projects="filters\Uno.UI-packages-skia.slnf"
Targets="Restore;Build"
RebaseOutputs="false"
BuildInParallel="true" />
2022-09-29 22:45:29 +03:00
</Target>
2022-10-14 16:46:04 +03:00
<Target Name= "BuildCIReference" >
2022-10-03 06:27:41 +03:00
2024-02-03 03:47:37 +03:00
<MSBuild
2024-04-30 17:18:36 +03:00
Properties="Configuration=Release;InformationalVersion=$(GITVERSION_InformationalVersion);CI_Build=true;_IsCIBuild=true;PackageOutputPath=$(BUILD_ARTIFACTSTAGINGDIRECTORY)\vslatest-skia;PackageVersion=$(GITVERSION_SemVer)"
2024-02-03 03:47:37 +03:00
Projects="filters\Uno.UI-packages-reference.slnf"
Targets="Restore;Build"
RebaseOutputs="false"
BuildInParallel="true" />
2022-10-03 06:27:41 +03:00
</Target>
2022-10-22 14:50:35 +03:00
<Target Name= "BuildSyncGenerator" >
2023-10-04 20:11:58 +03:00
<!-- Restore the nuget packages for packages - * solution filters -->
<!-- These filters contain Uno.UI project and its dependencies, which are what needs to be restored -->
2023-10-10 08:31:19 +03:00
<!-- In addition, the reference project needs to be restored as well. -->
2024-02-03 03:47:37 +03:00
<MSBuild
Properties="Configuration=Release;InformationalVersion=$(GITVERSION_InformationalVersion);CI_Build=true;_IsCIBuild=true"
2024-02-22 15:38:30 +03:00
Projects="filters\Uno.UI-top-projects-for-sync-gen.slnf;..\src\Uno.UWPSyncGenerator\Uno.UWPSyncGenerator.csproj;..\src\Uno.UWPSyncGenerator.Reference\Uno.UWPSyncGenerator.Reference.csproj"
2024-02-03 03:47:37 +03:00
Targets="Restore;Clean"
RebaseOutputs="false"
BuildInParallel="true" />
2022-11-15 15:23:06 +03:00
2024-01-18 18:21:20 +03:00
<MSBuild Properties= "Configuration=Release" Projects= "..\src\Uno.UWPSyncGenerator\Uno.UWPSyncGenerator.csproj" Targets= "Build" />
2024-01-18 19:01:33 +03:00
<MSBuild Properties= "Configuration=Release;Platform=x86" Projects= "..\src\Uno.UWPSyncGenerator.Reference\Uno.UWPSyncGenerator.Reference.csproj" Targets= "Build" />
2020-06-09 16:49:12 +03:00
2020-05-13 20:57:53 +03:00
<ItemGroup >
2024-04-30 17:18:36 +03:00
<MixinTargetFrameworks Include= "net8.0-ios17.0" />
<MixinTargetFrameworks Include= "net8.0-android" />
2024-05-17 20:10:26 +03:00
<MixinTargetFrameworks Include= "net8.0-macos14.0" />
2020-05-13 20:57:53 +03:00
</ItemGroup>
2023-03-31 16:42:19 +03:00
2024-02-03 03:47:37 +03:00
<MSBuild
Properties="Configuration=Release;InformationalVersion=$(GITVERSION_InformationalVersion);CI_Build=true;_IsCIBuild=true;TargetFramework=%(MixinTargetFrameworks.Identity)"
Projects="..\src\Uno.UI\Uno.UI.netcoremobile.csproj"
Targets="GenerateMixins"
RebaseOutputs="false"
BuildInParallel="true" />
2020-05-13 20:57:53 +03:00
</Target>
<Target Name= "GenerateDoc" DependsOnTargets= "BuildSyncGenerator" >
2021-11-12 21:29:22 +03:00
<MSBuild Properties= "Configuration=Debug"
2024-02-03 03:47:37 +03:00
Projects="..\src\Uno.Foundation.Logging\Uno.Foundation.Logging.csproj"
Targets="Restore;Build"
RebaseOutputs="false"
BuildInParallel="true" />
2021-11-12 21:29:22 +03:00
2020-06-05 18:01:40 +03:00
<Exec Command= "..\src\Uno.UWPSyncGenerator\Bin\Release\Uno.UWPSyncGenerator.exe "doc"" />
2022-05-11 23:41:36 +03:00
<Exec Command= "powershell .\import_external_docs.ps1" WorkingDirectory= "..\doc" />
2023-12-06 22:53:31 +03:00
<Exec Command= "dotnet tool install --tool-path $(MSBuildThisFileDirectory)\tools docfx --version $(DocfxVersion)" Condition= "!exists('$(MSBuildThisFileDirectory)\tools\docfx.exe')" />
2023-12-07 00:03:48 +03:00
<Exec Command= "$(MSBuildThisFileDirectory)\tools\docfx.exe ..\doc\docfx.json --debug -o $(OutputDir)\doc" />
2019-04-16 15:26:35 +03:00
</Target>
2018-08-31 04:45:27 +03:00
2020-05-13 20:57:53 +03:00
<Target Name= "RunAPISyncTool" DependsOnTargets= "BuildSyncGenerator" >
2020-06-05 18:01:40 +03:00
<Exec Command= "..\src\Uno.UWPSyncGenerator\Bin\Release\Uno.UWPSyncGenerator.exe "sync"" />
2020-05-13 20:57:53 +03:00
</Target>
2020-07-17 22:10:21 +03:00
<Target Name= "PrepareNuGetPackage" >
2018-08-31 04:45:27 +03:00
2019-04-16 15:26:35 +03:00
<PropertyGroup >
2021-04-14 23:07:58 +03:00
<NugetNamespace >
<Namespace Prefix= "x" Uri= "http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" />
</NugetNamespace>
2020-05-13 20:57:53 +03:00
<PackageNamePrefix > Uno.WinUI</PackageNamePrefix>
<PackageNamePrefix Condition= "'$(UNO_UWP_BUILD)'=='true'" > Uno.UI</PackageNamePrefix>
2019-04-16 15:26:35 +03:00
</PropertyGroup>
2018-08-31 04:45:27 +03:00
2020-07-17 22:10:21 +03:00
<ItemGroup >
2023-06-22 00:00:14 +03:00
<_NuspecFiles Include= ".\nuget\Uno.WinUI.nuspec" />
<_NuspecFiles Include= ".\nuget\Uno.WinUI.Lottie.nuspec" />
<_NuspecFiles Include= ".\nuget\Uno.WinUI.MSAL.nuspec" />
<_NuspecFiles Include= ".\nuget\Uno.WinUI.Svg.nuspec" />
<_NuspecFiles Include= ".\nuget\Uno.WinUI.RemoteControl.nuspec" />
2023-09-12 22:28:18 +03:00
<_NuspecFiles Include= ".\nuget\Uno.WinUI.DevServer.nuspec" />
<_NuspecFiles Include= ".\nuget\Uno.WinUI.DevServer.Messaging.nuspec" />
2023-06-22 00:00:14 +03:00
<_NuspecFiles Include= ".\nuget\Uno.WinUI.Skia.Gtk.nuspec" />
<_NuspecFiles Include= ".\nuget\Uno.WinUI.Skia.Linux.FrameBuffer.nuspec" />
2024-02-06 03:38:21 +03:00
<_NuspecFiles Include= ".\nuget\Uno.WinUI.Skia.MacOS.nuspec" />
2024-01-16 13:56:23 +03:00
<_NuspecFiles Include= ".\nuget\Uno.WinUI.Skia.X11.nuspec" />
2023-06-22 00:00:14 +03:00
<_NuspecFiles Include= ".\nuget\Uno.WinUI.Skia.Wpf.nuspec" />
<_NuspecFiles Include= ".\nuget\Uno.WinUI.WebAssembly.nuspec" />
<_NuspecFiles Include= ".\nuget\Uno.WinUI.XamlHost.nuspec" />
<_NuspecFiles Include= ".\nuget\Uno.WinUI.XamlHost.Skia.Wpf.nuspec" />
<_NuspecFiles Include= ".\nuget\Uno.UI.Adapter.Microsoft.Extensions.Logging.nuspec" />
2020-07-17 22:10:21 +03:00
</ItemGroup>
<!-- Update Uno.WinUI references version -->
2021-04-14 23:07:58 +03:00
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI']/@version" Value= "$(GITVERSION_SemVer)" Namespaces= "$(NugetNamespace)" />
2022-11-15 15:23:06 +03:00
2023-09-12 22:28:18 +03:00
<!-- Update Uno.WinUI.DevServer.Messaging references version -->
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.DevServer.Messaging']/@version" Value= "$(GITVERSION_SemVer)" Namespaces= "$(NugetNamespace)" />
2023-03-31 03:50:25 +03:00
2023-09-14 15:10:26 +03:00
<!-- Update Uno.WinUI.DevServer references version -->
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.DevServer']/@version" Value= "$(GITVERSION_SemVer)" Namespaces= "$(NugetNamespace)" />
2020-07-22 21:37:20 +03:00
<!-- Update Uno.Foundation.Runtime.WebAssembly references version -->
2021-04-14 23:07:58 +03:00
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.Foundation.Runtime.WebAssembly']/@version" Value= "$(GITVERSION_SemVer)" Namespaces= "$(NugetNamespace)" />
2020-07-17 22:10:21 +03:00
2021-11-14 18:07:58 +03:00
<!-- Update Uno.WinUI.Runtime.WebAssembly references version -->
2021-04-14 23:07:58 +03:00
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.Runtime.WebAssembly']/@version" Value= "$(GITVERSION_SemVer)" Namespaces= "$(NugetNamespace)" />
2019-09-09 23:36:42 +03:00
2020-07-17 22:10:21 +03:00
<!-- Update Uno.WinUI.Runtime.Skia.Gtk references version -->
2021-04-14 23:07:58 +03:00
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.Runtime.Skia.Gtk']/@version" Value= "$(GITVERSION_SemVer)" Namespaces= "$(NugetNamespace)" />
2020-07-17 22:10:21 +03:00
2021-05-26 04:16:03 +03:00
<!-- Update Uno.WinUI.Runtime.Skia.Linux.FrameBuffer references version -->
2021-07-06 15:43:50 +03:00
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.Runtime.Skia.Linux.FrameBuffer']/@version" Value= "$(GITVERSION_SemVer)" Namespaces= "$(NugetNamespace)" />
2021-05-26 04:16:03 +03:00
2024-02-06 22:07:42 +03:00
<!-- Update Uno.WinUI.Runtime.Skia.MacOS references version -->
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.Runtime.Skia.MacOS']/@version" Value= "$(GITVERSION_SemVer)" Namespaces= "$(NugetNamespace)" />
2024-02-08 00:09:20 +03:00
<!-- Update Uno.WinUI.Runtime.Skia.X11 references version -->
2024-01-16 13:56:23 +03:00
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.Runtime.Skia.X11']/@version" Value= "$(GITVERSION_SemVer)" Namespaces= "$(NugetNamespace)" />
2020-07-17 22:10:21 +03:00
<!-- Update Uno.WinUI.Runtime.Skia.Wpf references version -->
2021-04-14 23:07:58 +03:00
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.Runtime.Skia.Wpf']/@version" Value= "$(GITVERSION_SemVer)" Namespaces= "$(NugetNamespace)" />
2020-07-17 22:10:21 +03:00
2022-06-21 04:03:39 +03:00
<!-- Update Uno.WinUI.XamlHost references version -->
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.XamlHost']/@version" Value= "$(GITVERSION_SemVer)" Namespaces= "$(NugetNamespace)" />
<!-- Update Uno.WinUI.XamlHost.Skia.Wpf references version -->
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.XamlHost.Skia.Wpf']/@version" Value= "$(GITVERSION_SemVer)" Namespaces= "$(NugetNamespace)" />
2023-06-09 22:53:59 +03:00
<!-- Update Uno.Foundation.Logging references version -->
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.Foundation.Logging']/@version" Value= "$(GITVERSION_SemVer)" Namespaces= "$(NugetNamespace)" />
2021-11-14 20:19:06 +03:00
<!-- Update Uno.UI.Adapter.Microsoft.Extensions.Logging references version -->
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.UI.Adapter.Microsoft.Extensions.Logging']/@version" Value= "$(GITVERSION_SemVer)" Namespaces= "$(NugetNamespace)" />
2021-11-13 07:04:05 +03:00
2020-07-17 22:10:21 +03:00
<!-- Update package ID based on WinUI / UWP source tree -->
2023-06-22 00:00:14 +03:00
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.nuspec" Query= "/x:package/x:metadata/x:id" Value= "$(PackageNamePrefix)" Namespaces= "$(NugetNamespace)" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Lottie.nuspec" Query= "/x:package/x:metadata/x:id" Value= "$(PackageNamePrefix).Lottie" Namespaces= "$(NugetNamespace)" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.MSAL.nuspec" Query= "/x:package/x:metadata/x:id" Value= "$(PackageNamePrefix).MSAL" Namespaces= "$(NugetNamespace)" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Svg.nuspec" Query= "/x:package/x:metadata/x:id" Value= "$(PackageNamePrefix).Svg" Namespaces= "$(NugetNamespace)" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.XamlHost.nuspec" Query= "/x:package/x:metadata/x:id" Value= "$(PackageNamePrefix).XamlHost" Namespaces= "$(NugetNamespace)" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.XamlHost.Skia.Wpf.nuspec" Query= "/x:package/x:metadata/x:id" Value= "$(PackageNamePrefix).XamlHost.Skia.Wpf" Namespaces= "$(NugetNamespace)" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.RemoteControl.nuspec" Query= "/x:package/x:metadata/x:id" Value= "$(PackageNamePrefix).RemoteControl" Namespaces= "$(NugetNamespace)" />
2023-09-12 22:28:18 +03:00
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.DevServer.nuspec" Query= "/x:package/x:metadata/x:id" Value= "$(PackageNamePrefix).DevServer" Namespaces= "$(NugetNamespace)" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.DevServer.Messaging.nuspec" Query= "/x:package/x:metadata/x:id" Value= "$(PackageNamePrefix).DevServer.Messaging" Namespaces= "$(NugetNamespace)" />
2023-06-22 00:00:14 +03:00
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Skia.Gtk.nuspec" Query= "/x:package/x:metadata/x:id" Value= "$(PackageNamePrefix).Skia.Gtk" Namespaces= "$(NugetNamespace)" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Skia.Linux.FrameBuffer.nuspec" Query= "/x:package/x:metadata/x:id" Value= "$(PackageNamePrefix).Skia.Linux.FrameBuffer" Namespaces= "$(NugetNamespace)" />
2024-02-06 22:07:42 +03:00
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Skia.MacOS.nuspec" Query= "/x:package/x:metadata/x:id" Value= "$(PackageNamePrefix).Skia.MacOS" Namespaces= "$(NugetNamespace)" />
2024-01-16 13:56:23 +03:00
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Skia.X11.nuspec" Query= "/x:package/x:metadata/x:id" Value= "$(PackageNamePrefix).Skia.X11" Namespaces= "$(NugetNamespace)" />
2023-06-22 00:00:14 +03:00
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Skia.Wpf.nuspec" Query= "/x:package/x:metadata/x:id" Value= "$(PackageNamePrefix).Skia.Wpf" Namespaces= "$(NugetNamespace)" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.WebAssembly.nuspec" Query= "/x:package/x:metadata/x:id" Value= "$(PackageNamePrefix).WebAssembly" Namespaces= "$(NugetNamespace)" />
2019-09-09 23:36:42 +03:00
2020-07-17 22:10:21 +03:00
<!-- Update package Title based on WinUI / UWP source tree -->
2023-06-22 00:00:14 +03:00
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.nuspec" Query= "/x:package/x:metadata/x:title" Value= "$(PackageNamePrefix)" Namespaces= "$(NugetNamespace)" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Lottie.nuspec" Query= "/x:package/x:metadata/x:title" Value= "$(PackageNamePrefix).Lottie" Namespaces= "$(NugetNamespace)" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.MSAL.nuspec" Query= "/x:package/x:metadata/x:title" Value= "$(PackageNamePrefix).MSAL" Namespaces= "$(NugetNamespace)" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Svg.nuspec" Query= "/x:package/x:metadata/x:title" Value= "$(PackageNamePrefix).Svg" Namespaces= "$(NugetNamespace)" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.XamlHost.nuspec" Query= "/x:package/x:metadata/x:title" Value= "$(PackageNamePrefix).XamlHost" Namespaces= "$(NugetNamespace)" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.XamlHost.Skia.Wpf.nuspec" Query= "/x:package/x:metadata/x:title" Value= "$(PackageNamePrefix).XamlHost.Skia.Wpf" Namespaces= "$(NugetNamespace)" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.RemoteControl.nuspec" Query= "/x:package/x:metadata/x:title" Value= "$(PackageNamePrefix).RemoteControl" Namespaces= "$(NugetNamespace)" />
2023-09-12 22:28:18 +03:00
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.DevServer.nuspec" Query= "/x:package/x:metadata/x:title" Value= "$(PackageNamePrefix).DevServer" Namespaces= "$(NugetNamespace)" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.DevServer.Messaging.nuspec" Query= "/x:package/x:metadata/x:title" Value= "$(PackageNamePrefix).DevServer.Messaging" Namespaces= "$(NugetNamespace)" />
2023-06-22 00:00:14 +03:00
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Skia.Gtk.nuspec" Query= "/x:package/x:metadata/x:title" Value= "$(PackageNamePrefix).Skia.Gtk" Namespaces= "$(NugetNamespace)" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Skia.Linux.FrameBuffer.nuspec" Query= "/x:package/x:metadata/x:title" Value= "$(PackageNamePrefix).Skia.Linux.FrameBuffer" Namespaces= "$(NugetNamespace)" />
2024-02-06 22:07:42 +03:00
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Skia.MacOS.nuspec" Query= "/x:package/x:metadata/x:title" Value= "$(PackageNamePrefix).Skia.MacOS" Namespaces= "$(NugetNamespace)" />
2024-01-16 13:56:23 +03:00
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Skia.X11.nuspec" Query= "/x:package/x:metadata/x:title" Value= "$(PackageNamePrefix).Skia.X11" Namespaces= "$(NugetNamespace)" />
2023-06-22 00:00:14 +03:00
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Skia.Wpf.nuspec" Query= "/x:package/x:metadata/x:title" Value= "$(PackageNamePrefix).Skia.Wpf" Namespaces= "$(NugetNamespace)" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.WebAssembly.nuspec" Query= "/x:package/x:metadata/x:title" Value= "$(PackageNamePrefix).WebAssembly" Namespaces= "$(NugetNamespace)" />
2019-03-19 17:50:44 +03:00
2020-07-17 22:10:21 +03:00
<!-- Rename dependencies -->
2021-07-06 15:43:50 +03:00
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI']/@id" Value= "$(PackageNamePrefix)" Namespaces= "$(NugetNamespace)" />
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.Runtime.Skia.Gtk']/@id" Value= "$(PackageNamePrefix).Runtime.Skia.Gtk" Namespaces= "$(NugetNamespace)" />
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.Runtime.Skia.Linux.FrameBuffer']/@id" Value= "$(PackageNamePrefix).Runtime.Skia.Linux.FrameBuffer" Namespaces= "$(NugetNamespace)" />
2024-02-06 22:07:42 +03:00
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.Runtime.Skia.MacOS']/@id" Value= "$(PackageNamePrefix).Runtime.Skia.MacOS" Namespaces= "$(NugetNamespace)" />
2024-01-16 13:56:23 +03:00
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.Runtime.Skia.X11']/@id" Value= "$(PackageNamePrefix).Runtime.Skia.X11" Namespaces= "$(NugetNamespace)" />
2021-07-06 15:43:50 +03:00
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.Runtime.Skia.Wpf']/@id" Value= "$(PackageNamePrefix).Runtime.Skia.Wpf" Namespaces= "$(NugetNamespace)" />
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.Runtime.WebAssembly']/@id" Value= "$(PackageNamePrefix).Runtime.WebAssembly" Namespaces= "$(NugetNamespace)" />
2022-06-21 04:03:39 +03:00
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.XamlHost']/@id" Value= "$(PackageNamePrefix).XamlHost" Namespaces= "$(NugetNamespace)" />
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.XamlHost.Skia.Wpf']/@id" Value= "$(PackageNamePrefix).XamlHost.Skia.Wpf" Namespaces= "$(NugetNamespace)" />
2023-09-12 22:28:18 +03:00
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.DevServer.Messaging']/@id" Value= "$(PackageNamePrefix).DevServer.Messaging" Namespaces= "$(NugetNamespace)" />
<XmlPoke XmlInputPath= "%(_NuspecFiles.Identity)" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.DevServer']/@id" Value= "$(PackageNamePrefix).DevServer" Namespaces= "$(NugetNamespace)" />
2020-07-17 22:10:21 +03:00
2022-06-23 22:20:30 +03:00
<!-- Rename skiasharp references for WinUI -->
2023-06-22 00:00:14 +03:00
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Lottie.nuspec" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='SkiaSharp.Views.Uno']/@id" Value= "SkiaSharp.Views.Uno.WinUI" Namespaces= "$(NugetNamespace)" Condition= "'$(UNO_UWP_BUILD)'!='true'" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Svg.nuspec" Query= "/x:package/x:metadata/x:dependencies//x:dependency[@id='SkiaSharp.Views.Uno']/@id" Value= "SkiaSharp.Views.Uno.WinUI" Namespaces= "$(NugetNamespace)" Condition= "'$(UNO_UWP_BUILD)'!='true'" />
2020-07-17 22:10:21 +03:00
2023-04-11 18:28:04 +03:00
<!-- Adjust build props file to match WinUI / UWP -->
2023-06-22 00:00:14 +03:00
<Move SourceFiles= ".\nuget\uno.winui.props" DestinationFiles= ".\nuget\$(PackageNamePrefix).props" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.nuspec" Query= "/x:package/x:files/x:file[@src='Uno.WinUI.props']/@src" Value= "$(PackageNamePrefix).props" Namespaces= "$(NugetNamespace)" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
2023-04-11 18:28:04 +03:00
2020-07-17 22:10:21 +03:00
<!-- Adjust build targets file to match WinUI / UWP -->
2023-06-22 00:00:14 +03:00
<Move SourceFiles= ".\nuget\uno.winui.targets" DestinationFiles= ".\nuget\$(PackageNamePrefix).targets" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.nuspec" Query= "/x:package/x:files/x:file[@src='Uno.WinUI.targets']/@src" Value= "$(PackageNamePrefix).targets" Namespaces= "$(NugetNamespace)" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
2020-10-20 20:52:05 +03:00
2023-04-11 18:28:04 +03:00
<!-- Adjust build props file for Windows targets -->
2023-06-22 00:00:14 +03:00
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.nuspec" Query= "/x:package/x:files/x:file[@target='buildTransitive\uap10.0.16299\uno.winui.props']/@target" Value= "buildTransitive\uap10.0.16299\$(PackageNamePrefix).props" Namespaces= "$(NugetNamespace)" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.nuspec" Query= "/x:package/x:files/x:file[@target='buildTransitive\uap10.0.19041\uno.winui.props']/@target" Value= "buildTransitive\uap10.0.19041\$(PackageNamePrefix).props" Namespaces= "$(NugetNamespace)" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
2024-04-30 17:18:36 +03:00
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.nuspec" Query= "/x:package/x:files/x:file[@target='buildTransitive\net8.0-windows\uno.winui.props']/@target" Value= "buildTransitive\net8.0-windows\$(PackageNamePrefix).props" Namespaces= "$(NugetNamespace)" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
2023-04-11 18:28:04 +03:00
2021-07-22 19:42:12 +03:00
<!-- Adjust build targets file for Windows targets -->
2023-06-22 00:00:14 +03:00
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.nuspec" Query= "/x:package/x:files/x:file[@target='buildTransitive\uap10.0.16299\uno.winui.targets']/@target" Value= "buildTransitive\uap10.0.16299\$(PackageNamePrefix).targets" Namespaces= "$(NugetNamespace)" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.nuspec" Query= "/x:package/x:files/x:file[@target='buildTransitive\uap10.0.19041\uno.winui.targets']/@target" Value= "buildTransitive\uap10.0.19041\$(PackageNamePrefix).targets" Namespaces= "$(NugetNamespace)" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
2024-04-30 17:18:36 +03:00
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.nuspec" Query= "/x:package/x:files/x:file[@target='buildTransitive\net8.0-windows\uno.winui.targets']/@target" Value= "buildTransitive\net8.0-windows\$(PackageNamePrefix).targets" Namespaces= "$(NugetNamespace)" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
2019-10-25 22:25:31 +03:00
2020-07-17 22:10:21 +03:00
<!-- Skia GTK targets/props -->
2023-06-22 00:00:14 +03:00
<Move SourceFiles= ".\nuget\Uno.WinUI.Skia.Gtk.targets" DestinationFiles= ".\nuget\$(PackageNamePrefix).Skia.Gtk.targets" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<Move SourceFiles= ".\nuget\Uno.WinUI.Skia.Gtk.props" DestinationFiles= ".\nuget\$(PackageNamePrefix).Skia.Gtk.props" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
2020-07-17 22:10:21 +03:00
2023-06-22 00:00:14 +03:00
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Skia.Gtk.nuspec" Query= "/x:package/x:files/x:file[@src='Uno.WinUI.Skia.Gtk.targets']/@src" Value= "$(PackageNamePrefix).Skia.Gtk.targets" Namespaces= "$(NugetNamespace)" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Skia.Gtk.nuspec" Query= "/x:package/x:files/x:file[@src='Uno.WinUI.Skia.Gtk.props']/@src" Value= "$(PackageNamePrefix).Skia.Gtk.props" Namespaces= "$(NugetNamespace)" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
2020-07-17 22:10:21 +03:00
2021-05-26 04:16:03 +03:00
<!-- Skia Linux FrameBuffer targets/props -->
2023-06-22 00:00:14 +03:00
<Move SourceFiles= ".\nuget\Uno.WinUI.Skia.Linux.FrameBuffer.targets" DestinationFiles= ".\nuget\$(PackageNamePrefix).Skia.Linux.FrameBuffer.targets" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<Move SourceFiles= ".\nuget\Uno.WinUI.Skia.Linux.FrameBuffer.props" DestinationFiles= ".\nuget\$(PackageNamePrefix).Skia.Linux.FrameBuffer.props" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
2021-05-26 04:16:03 +03:00
2023-06-22 00:00:14 +03:00
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Skia.Linux.FrameBuffer.nuspec" Query= "/x:package/x:files/x:file[@src='Uno.WinUI.Skia.Linux.FrameBuffer.targets']/@src" Value= "$(PackageNamePrefix).Skia.Linux.FrameBuffer.targets" Namespaces= "$(NugetNamespace)" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Skia.Linux.FrameBuffer.nuspec" Query= "/x:package/x:files/x:file[@src='Uno.WinUI.Skia.Linux.FrameBuffer.props']/@src" Value= "$(PackageNamePrefix).Skia.Linux.FrameBuffer.props" Namespaces= "$(NugetNamespace)" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
2021-05-26 04:16:03 +03:00
2024-02-06 03:38:21 +03:00
<!-- Skia macOS targets/props -->
<Move SourceFiles= ".\nuget\Uno.WinUI.Skia.MacOS.targets" DestinationFiles= ".\nuget\$(PackageNamePrefix).Skia.MacOS.targets" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<Move SourceFiles= ".\nuget\Uno.WinUI.Skia.MacOS.props" DestinationFiles= ".\nuget\$(PackageNamePrefix).Skia.MacOS.props" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Skia.MacOS.nuspec" Query= "/x:package/x:files/x:file[@src='Uno.WinUI.Skia.MacOS.targets']/@src" Value= "$(PackageNamePrefix).Skia.MacOS.targets" Namespaces= "$(NugetNamespace)" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Skia.MacOS.nuspec" Query= "/x:package/x:files/x:file[@src='Uno.WinUI.Skia.MacOS.props']/@src" Value= "$(PackageNamePrefix).Skia.MacOS.props" Namespaces= "$(NugetNamespace)" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
2024-02-08 00:09:20 +03:00
<!-- Skia X11 targets/props -->
2024-01-16 13:56:23 +03:00
<Move SourceFiles= ".\nuget\Uno.WinUI.Skia.X11.targets" DestinationFiles= ".\nuget\$(PackageNamePrefix).Skia.X11.targets" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<Move SourceFiles= ".\nuget\Uno.WinUI.Skia.X11.props" DestinationFiles= ".\nuget\$(PackageNamePrefix).Skia.X11.props" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Skia.X11.nuspec" Query= "/x:package/x:files/x:file[@src='Uno.WinUI.Skia.X11.targets']/@src" Value= "$(PackageNamePrefix).Skia.X11.targets" Namespaces= "$(NugetNamespace)" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Skia.X11.nuspec" Query= "/x:package/x:files/x:file[@src='Uno.WinUI.Skia.X11.props']/@src" Value= "$(PackageNamePrefix).Skia.X11.props" Namespaces= "$(NugetNamespace)" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
2020-07-17 22:10:21 +03:00
<!-- Skia Wpf targets/props -->
2023-06-22 00:00:14 +03:00
<Move SourceFiles= ".\nuget\Uno.WinUI.Skia.Wpf.targets" DestinationFiles= ".\nuget\$(PackageNamePrefix).Skia.Wpf.targets" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<Move SourceFiles= ".\nuget\Uno.WinUI.Skia.Wpf.props" DestinationFiles= ".\nuget\$(PackageNamePrefix).Skia.Wpf.props" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
2020-07-17 22:10:21 +03:00
2023-06-22 00:00:14 +03:00
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Skia.Wpf.nuspec" Query= "/x:package/x:files/x:file[@src='Uno.WinUI.Skia.Wpf.targets']/@src" Value= "$(PackageNamePrefix).Skia.Wpf.targets" Namespaces= "$(NugetNamespace)" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.Skia.Wpf.nuspec" Query= "/x:package/x:files/x:file[@src='Uno.WinUI.Skia.Wpf.props']/@src" Value= "$(PackageNamePrefix).Skia.Wpf.props" Namespaces= "$(NugetNamespace)" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
2020-07-17 22:10:21 +03:00
<!-- Wasm targets/props -->
2023-06-22 00:00:14 +03:00
<Move SourceFiles= ".\nuget\Uno.WinUI.WebAssembly.targets" DestinationFiles= ".\nuget\$(PackageNamePrefix).WebAssembly.targets" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<Move SourceFiles= ".\nuget\Uno.WinUI.WebAssembly.props" DestinationFiles= ".\nuget\$(PackageNamePrefix).WebAssembly.props" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
2020-07-17 22:10:21 +03:00
2023-06-22 00:00:14 +03:00
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.WebAssembly.nuspec" Query= "/x:package/x:files/x:file[@src='Uno.WinUI.WebAssembly.targets']/@src" Value= "$(PackageNamePrefix).WebAssembly.targets" Namespaces= "$(NugetNamespace)" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.WebAssembly.nuspec" Query= "/x:package/x:files/x:file[@src='Uno.WinUI.WebAssembly.props']/@src" Value= "$(PackageNamePrefix).WebAssembly.props" Namespaces= "$(NugetNamespace)" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
2020-07-17 22:10:21 +03:00
2021-04-26 18:06:17 +03:00
<!-- remote control -->
2023-09-12 22:28:18 +03:00
<Move SourceFiles= "..\src\Uno.UI.RemoteControl\buildTransitive\Uno.UI.DevServer.targets" DestinationFiles= "..\src\Uno.UI.RemoteControl\buildTransitive\$(PackageNamePrefix).DevServer.targets" Condition= "'$(UNO_UWP_BUILD)'!='true'" />
2021-04-26 18:06:17 +03:00
2020-07-17 22:10:21 +03:00
<!-- Lottie move file -->
<Move SourceFiles= "..\src\AddIns\Uno.UI.Lottie\buildTransitive\Uno.UI.Lottie.targets" DestinationFiles= "..\src\AddIns\Uno.UI.Lottie\buildTransitive\$(PackageNamePrefix).Lottie.targets" />
2022-11-15 15:23:06 +03:00
2020-07-17 22:10:21 +03:00
<!-- MSAL move file -->
<Move SourceFiles= "..\src\AddIns\Uno.UI.MSAL\buildTransitive\Uno.UI.MSAL.targets" DestinationFiles= "..\src\AddIns\Uno.UI.MSAL\buildTransitive\$(PackageNamePrefix).MSAL.targets" />
2022-11-15 15:23:06 +03:00
2022-10-11 17:22:18 +03:00
<!-- Svg move file -->
<Move SourceFiles= "..\src\AddIns\Uno.UI.Svg\buildTransitive\Uno.UI.Svg.targets" DestinationFiles= "..\src\AddIns\Uno.UI.Svg\buildTransitive\$(PackageNamePrefix).Svg.targets" />
2022-11-15 15:23:06 +03:00
2022-06-22 15:36:51 +03:00
<!-- XamlHost move file -->
2022-06-22 18:49:43 +03:00
<Move SourceFiles= "..\src\Uno.UI.XamlHost\buildTransitive\Uno.UI.XamlHost.props" DestinationFiles= "..\src\Uno.UI.XamlHost\buildTransitive\$(PackageNamePrefix).XamlHost.props" />
2022-11-15 15:23:06 +03:00
2023-06-22 22:58:50 +03:00
<XmlPoke XmlInputPath= ".\nuget\Uno.WinUI.XamlHost.nuspec" Query= "/x:package/x:files/x:file[@src='..\..\src\Uno.UI.XamlHost\buildTransitive\Uno.WinUI.XamlHost.props']/@src" Value= "..\..\src\Uno.UI.XamlHost\buildTransitive\$(PackageNamePrefix).XamlHost.props" Namespaces= "$(NugetNamespace)" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
2020-07-17 22:10:21 +03:00
<!-- Runtime package move files -->
<Move SourceFiles= "..\src\Uno.UI.Runtime.Skia.Gtk\buildTransitive\Uno.UI.Runtime.Skia.Gtk.props" DestinationFiles= "..\src\Uno.UI.Runtime.Skia.Gtk\buildTransitive\$(PackageNamePrefix).Runtime.Skia.Gtk.props" />
<Move SourceFiles= "..\src\Uno.UI.Runtime.Skia.Gtk\buildTransitive\Uno.UI.Runtime.Skia.Gtk.targets" DestinationFiles= "..\src\Uno.UI.Runtime.Skia.Gtk\buildTransitive\$(PackageNamePrefix).Runtime.Skia.Gtk.targets" />
2021-05-26 04:16:03 +03:00
<Move SourceFiles= "..\src\Uno.UI.Runtime.Skia.Linux.FrameBuffer\buildTransitive\Uno.UI.Runtime.Skia.Linux.FrameBuffer.props" DestinationFiles= "..\src\Uno.UI.Runtime.Skia.Linux.FrameBuffer\buildTransitive\$(PackageNamePrefix).Runtime.Skia.Linux.FrameBuffer.props" />
<Move SourceFiles= "..\src\Uno.UI.Runtime.Skia.Linux.FrameBuffer\buildTransitive\Uno.UI.Runtime.Skia.Linux.FrameBuffer.targets" DestinationFiles= "..\src\Uno.UI.Runtime.Skia.Linux.FrameBuffer\buildTransitive\$(PackageNamePrefix).Runtime.Skia.Linux.FrameBuffer.targets" />
2024-02-06 03:38:21 +03:00
<Move SourceFiles= "..\src\Uno.UI.Runtime.Skia.MacOS\buildTransitive\Uno.UI.Runtime.Skia.MacOS.props" DestinationFiles= "..\src\Uno.UI.Runtime.Skia.MacOS\buildTransitive\$(PackageNamePrefix).Runtime.Skia.MacOS.props" />
<Move SourceFiles= "..\src\Uno.UI.Runtime.Skia.MacOS\buildTransitive\Uno.UI.Runtime.Skia.MacOS.targets" DestinationFiles= "..\src\Uno.UI.Runtime.Skia.MacOS\buildTransitive\$(PackageNamePrefix).Runtime.Skia.MacOS.targets" />
2024-01-16 13:56:23 +03:00
<Move SourceFiles= "..\src\Uno.UI.Runtime.Skia.X11\buildTransitive\Uno.UI.Runtime.Skia.X11.props" DestinationFiles= "..\src\Uno.UI.Runtime.Skia.X11\buildTransitive\$(PackageNamePrefix).Runtime.Skia.X11.props" />
<Move SourceFiles= "..\src\Uno.UI.Runtime.Skia.X11\buildTransitive\Uno.UI.Runtime.Skia.X11.targets" DestinationFiles= "..\src\Uno.UI.Runtime.Skia.X11\buildTransitive\$(PackageNamePrefix).Runtime.Skia.X11.targets" />
2020-07-17 22:10:21 +03:00
<Move SourceFiles= "..\src\Uno.UI.Runtime.Skia.Wpf\buildTransitive\Uno.UI.Runtime.Skia.Wpf.props" DestinationFiles= "..\src\Uno.UI.Runtime.Skia.Wpf\buildTransitive\$(PackageNamePrefix).Runtime.Skia.Wpf.props" />
<Move SourceFiles= "..\src\Uno.UI.Runtime.Skia.Wpf\buildTransitive\Uno.UI.Runtime.Skia.Wpf.targets" DestinationFiles= "..\src\Uno.UI.Runtime.Skia.Wpf\buildTransitive\$(PackageNamePrefix).Runtime.Skia.Wpf.targets" />
2020-07-22 16:08:58 +03:00
<Move SourceFiles= "..\src\Uno.UI.Runtime.WebAssembly\buildTransitive\Uno.UI.Runtime.WebAssembly.props" DestinationFiles= "..\src\Uno.UI.Runtime.WebAssembly\buildTransitive\$(PackageNamePrefix).Runtime.WebAssembly.props" />
<Move SourceFiles= "..\src\Uno.UI.Runtime.WebAssembly\buildTransitive\Uno.UI.Runtime.WebAssembly.targets" DestinationFiles= "..\src\Uno.UI.Runtime.WebAssembly\buildTransitive\$(PackageNamePrefix).Runtime.WebAssembly.targets" />
2020-07-17 22:10:21 +03:00
</Target>
2023-09-25 15:26:15 +03:00
<Target Name= "BuildNuGetPackage" AfterTargets= "Build" DependsOnTargets= "PrepareBuildAssets" Condition= "'$(BuildingInsideVisualStudio)'=='' and '$(Configuration)'=='Release'" >
2021-02-02 00:48:30 +03:00
<PropertyGroup >
2023-11-16 17:10:23 +03:00
<NuSpecProperties > NoWarn=NU5100,NU5105,NU5131;branch=$(GITVERSION_BranchName);commitid=$(GitVersion_Sha)</NuSpecProperties>
2021-04-12 22:43:57 +03:00
2023-06-21 23:11:10 +03:00
<NuSpecProperties Condition= "'$(UNO_UWP_BUILD)'=='true'" > $(NuSpecProperties);winuisourcepath=uap10.0.19041;winuitargetpath=UAP</NuSpecProperties>
2024-04-30 17:18:36 +03:00
<NuSpecProperties Condition= "'$(UNO_UWP_BUILD)'!='true'" > $(NuSpecProperties);winuisourcepath=net8.0-windows10.0.19041.0;winuitargetpath=net8.0-windows10.0.19041.0</NuSpecProperties>
2021-02-02 00:48:30 +03:00
</PropertyGroup>
2021-07-29 22:48:09 +03:00
<!-- Pre - validation of contents to be packed -->
2023-04-05 15:44:26 +03:00
<Error Text= "The Uno.UI.Toolkit PRI file is not present in src\Uno.UI.Toolkit\bin\Uno.UI.Toolkit.Windows\Release"
2023-06-21 23:11:10 +03:00
Condition="'$(UNO_UWP_BUILD)'=='true' and !exists('..\src\Uno.UI.Toolkit\bin\Uno.UI.Toolkit.Windows\Release\uap10.0.19041\Uno.UI.Toolkit.pri')" />
2023-04-05 15:44:26 +03:00
<Error Text= "The Uno.UI.Toolkit PRI file is not present in src\Uno.UI.Toolkit\bin\Uno.UI.Toolkit.Windows\Release"
2024-04-30 17:18:36 +03:00
Condition="'$(UNO_UWP_BUILD)'!='true' and !exists('..\src\Uno.UI.Toolkit\bin\Uno.UI.Toolkit.Windows\Release\net8.0-windows10.0.19041.0\Uno.UI.Toolkit.pri')" />
2021-07-29 22:48:09 +03:00
2021-02-02 00:48:30 +03:00
<!-- Create the packages -->
2023-06-22 00:00:14 +03:00
<Exec Command= "$(NuGetBin) pack nuget\Uno.WinUI.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
<Exec Command= "$(NuGetBin) pack nuget\Uno.WinUI.Lottie.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
<Exec Command= "$(NuGetBin) pack nuget\Uno.WinUI.MSAL.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
<Exec Command= "$(NuGetBin) pack nuget\Uno.WinUI.Svg.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
<Exec Command= "$(NuGetBin) pack nuget\Uno.WinUI.RemoteControl.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
2023-09-12 22:28:18 +03:00
<Exec Command= "$(NuGetBin) pack nuget\Uno.WinUI.DevServer.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
<Exec Command= "$(NuGetBin) pack nuget\Uno.WinUI.DevServer.Messaging.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
2023-06-22 00:00:14 +03:00
<Exec Command= "$(NuGetBin) pack nuget\Uno.WinUI.Skia.Gtk.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
<Exec Command= "$(NuGetBin) pack nuget\Uno.WinUI.Skia.Linux.FrameBuffer.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
2024-02-06 03:38:21 +03:00
<Exec Command= "$(NuGetBin) pack nuget\Uno.WinUI.Skia.MacOS.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
2024-01-16 13:56:23 +03:00
<Exec Command= "$(NuGetBin) pack nuget\Uno.WinUI.Skia.X11.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
2023-06-22 00:00:14 +03:00
<Exec Command= "$(NuGetBin) pack nuget\Uno.WinUI.Skia.Wpf.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
<Exec Command= "$(NuGetBin) pack nuget\Uno.WinUI.XamlHost.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
<Exec Command= "$(NuGetBin) pack nuget\Uno.WinUI.XamlHost.Skia.Wpf.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
<Exec Command= "$(NuGetBin) pack nuget\Uno.WinUI.WebAssembly.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
<Exec Command= "$(NuGetBin) pack nuget\Uno.UI.Adapter.Microsoft.Extensions.Logging.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
2019-04-16 15:26:35 +03:00
</Target>
2018-08-31 04:45:27 +03:00
2023-01-30 16:59:01 +03:00
<Target Name= "ValidatePackage" AfterTargets= "BuildNuGetPackage" Condition= "'$(BuildingInsideVisualStudio)'==''" >
2020-05-13 20:57:53 +03:00
<PropertyGroup >
<PackageNamePrefix > Uno.WinUI</PackageNamePrefix>
<PackageNamePrefix Condition= "'$(UNO_UWP_BUILD)'=='true'" > Uno.UI</PackageNamePrefix>
2023-04-24 22:39:25 +03:00
<ArtifactsPlatformName > WinUI</ArtifactsPlatformName>
<ArtifactsPlatformName Condition= "'$(UNO_UWP_BUILD)'=='true'" > UWP</ArtifactsPlatformName>
2020-05-13 20:57:53 +03:00
</PropertyGroup>
2024-02-03 03:47:37 +03:00
<ItemGroup >
2023-04-14 23:59:04 +03:00
<_diffPackage Include= "$(PackageNamePrefix)" Other= "$(PackageNamePrefix).$(GITVERSION_SemVer).nupkg" />
2023-05-06 05:18:59 +03:00
<_diffPackage Include= "$(PackageNamePrefix).Foldable" Other= "..\..\..\NugetPackages-Artifacts-netcoremobile-$(ArtifactsPlatformName)\vslatest-netcoremobile\$(PackageNamePrefix).Foldable.$(GITVERSION_SemVer).nupkg" />
2023-04-14 23:59:04 +03:00
<_diffPackage Include= "$(PackageNamePrefix).Lottie" Other= "$(PackageNamePrefix).Lottie.$(GITVERSION_SemVer).nupkg" />
2023-05-06 05:18:59 +03:00
<_diffPackage Include= "$(PackageNamePrefix).Maps" Other= "..\..\..\NugetPackages-Artifacts-netcoremobile-$(ArtifactsPlatformName)\vslatest-netcoremobile\$(PackageNamePrefix).Maps.$(GITVERSION_SemVer).nupkg" />
2023-04-14 23:59:04 +03:00
<_diffPackage Include= "$(PackageNamePrefix).MSAL" Other= "$(PackageNamePrefix).MSAL.$(GITVERSION_SemVer).nupkg" />
<_diffPackage Include= "$(PackageNamePrefix).Svg" Other= "$(PackageNamePrefix).Svg.$(GITVERSION_SemVer).nupkg" />
<_diffPackage Include= "$(PackageNamePrefix).Skia.Gtk" Other= "$(PackageNamePrefix).Skia.Gtk.$(GITVERSION_SemVer).nupkg" />
2023-04-24 22:39:25 +03:00
<_diffPackage Include= "$(PackageNamePrefix).Runtime.Skia.Gtk" Other= "..\..\..\NugetPackages-Artifacts-skia-$(ArtifactsPlatformName)\vslatest-skia\$(PackageNamePrefix).Runtime.Skia.Gtk.$(GITVERSION_SemVer).nupkg" />
<_diffPackage Include= "$(PackageNamePrefix).Runtime.Skia.Linux.FrameBuffer" Other= "..\..\..\NugetPackages-Artifacts-skia-$(ArtifactsPlatformName)\vslatest-skia\$(PackageNamePrefix).Runtime.Skia.Linux.FrameBuffer.$(GITVERSION_SemVer).nupkg" />
2023-04-14 23:59:04 +03:00
<_diffPackage Include= "$(PackageNamePrefix).Skia.Linux.FrameBuffer" Other= "$(PackageNamePrefix).Skia.Linux.FrameBuffer.$(GITVERSION_SemVer).nupkg" />
2024-02-07 00:30:13 +03:00
<!-- <_diffPackage Include="$(PackageNamePrefix).Skia.MacOS" Other="$(PackageNamePrefix).Skia.MacOS.$(GITVERSION_SemVer).nupkg" /> -->
2023-04-14 23:59:04 +03:00
<_diffPackage Include= "$(PackageNamePrefix).Skia.Wpf" Other= "$(PackageNamePrefix).Skia.Wpf.$(GITVERSION_SemVer).nupkg" />
2023-04-24 22:39:25 +03:00
<_diffPackage Include= "$(PackageNamePrefix).Runtime.Skia.Wpf" Other= "..\..\..\NugetPackages-Artifacts-skia-$(ArtifactsPlatformName)\vslatest-skia\$(PackageNamePrefix).Runtime.Skia.Wpf.$(GITVERSION_SemVer).nupkg" />
2023-04-14 23:59:04 +03:00
<_diffPackage Include= "$(PackageNamePrefix).XamlHost" Other= "$(PackageNamePrefix).XamlHost.$(GITVERSION_SemVer).nupkg" />
<_diffPackage Include= "$(PackageNamePrefix).XamlHost.Skia.Wpf" Other= "$(PackageNamePrefix).XamlHost.Skia.Wpf.$(GITVERSION_SemVer).nupkg" />
<_diffPackage Include= "$(PackageNamePrefix).WebAssembly" Other= "$(PackageNamePrefix).WebAssembly.$(GITVERSION_SemVer).nupkg" />
2023-05-08 20:23:58 +03:00
<_diffPackage Include= "$(PackageNamePrefix).Runtime.WebAssembly" Other= "..\..\..\NugetPackages-Artifacts-wasm-$(ArtifactsPlatformName)\vslatest-wasm\$(PackageNamePrefix).Runtime.WebAssembly.$(GITVERSION_SemVer).nupkg" />
2024-07-27 15:40:34 +03:00
<_diffPackage Include= "Uno.Foundation.Logging" Other= "..\..\..\NugetPackages-Artifacts-skia-$(ArtifactsPlatformName)\vslatest-skia\Uno.Foundation.Logging.$(GITVERSION_SemVer).nupkg" />
2023-05-08 20:23:58 +03:00
<_diffPackage Include= "Uno.Foundation.Runtime.WebAssembly" Other= "..\..\..\NugetPackages-Artifacts-wasm-$(ArtifactsPlatformName)\vslatest-wasm\Uno.Foundation.Runtime.WebAssembly.$(GITVERSION_SemVer).nupkg" />
2023-04-14 23:59:04 +03:00
<_diffPackage Include= "Uno.UI.Adapter.Microsoft.Extensions.Logging" Other= "Uno.UI.Adapter.Microsoft.Extensions.Logging.$(GITVERSION_SemVer).nupkg" />
2024-02-03 03:47:37 +03:00
</ItemGroup>
2023-04-14 23:59:04 +03:00
2023-05-23 23:17:24 +03:00
<Exec Command= "dotnet tool install --tool-path $(MSBuildThisFileDirectory)\tools Uno.PackageDiff --version 1.1.0-dev.25" IgnoreExitCode= "true" />
2023-04-14 23:59:04 +03:00
<Exec Command= "$(MSBuildThisFileDirectory)\tools\generatepkgdiff.exe --base=%(_diffPackage.Identity) --other=%(_diffPackage.Other) --diffignore=PackageDiffIgnore.xml --outfile=$(OutputDir)\ApiDiff.%(_diffPackage.Identity).$(GITVERSION_SemVer).md" />
2020-07-17 22:10:21 +03:00
</Target>
2022-11-15 15:23:06 +03:00
2021-08-10 17:50:00 +03:00
<Target Name= "ValidatePackageReferenceAPI" AfterTargets= "BuildNuGetPackage" >
2020-07-17 22:10:21 +03:00
<PropertyGroup >
<PackageNamePrefix > Uno.WinUI</PackageNamePrefix>
<PackageNamePrefix Condition= "'$(UNO_UWP_BUILD)'=='true'" > Uno.UI</PackageNamePrefix>
</PropertyGroup>
2021-01-25 16:04:26 +03:00
<Exec Command= "dotnet $(MSBuildThisFileDirectory)..\src\Uno.ReferenceImplComparer\bin\Release\Uno.ReferenceImplComparer.dll $(MSBuildThisFileDirectory)$(PackageNamePrefix).$(GITVERSION_SemVer).nupkg" />
2019-04-16 15:26:35 +03:00
</Target>
2019-03-25 04:54:59 +03:00
2024-04-09 22:19:31 +03:00
<!-- Custom target to avoid path normalization introduced by the WriteLinesToFile task -->
<UsingTask TaskName= "WriteFilesTask" TaskFactory= "RoslynCodeTaskFactory" AssemblyFile= "$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll" >
<ParameterGroup >
<FilesToProcess ParameterType= "Microsoft.Build.Framework.ITaskItem[]" Required= "true" />
</ParameterGroup>
<Task >
<Using Namespace= "System.IO" />
<Code Type= "Fragment" Language= "cs" >
< ![CDATA[
foreach (var fileItem in FilesToProcess)
{
var filePath = fileItem.ItemSpec;
var fileContent = fileItem.GetMetadata("Contents");
if (File.ReadAllText(filePath) != fileContent)
{
File.WriteAllText(filePath, fileContent);
}
}
]]>
</Code>
</Task>
</UsingTask>
2018-07-10 20:23:32 +03:00
</Project>