476 строки
42 KiB
XML
476 строки
42 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net462</TargetFramework>
|
|
<UpdateAssemblyInfo>false</UpdateAssemblyInfo>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(BuildingInsideVisualStudio)'==''">
|
|
<AppVersion>$(GITVERSION_SemVer)</AppVersion>
|
|
|
|
<NuGetBin>.\external\nuget\NuGet.exe</NuGetBin>
|
|
<OutputDir>$(BUILD_ARTIFACTSTAGINGDIRECTORY)</OutputDir>
|
|
<Configuration>$(CombinedConfiguration.Split('|')[0])</Configuration>
|
|
<Platform>$(CombinedConfiguration.Split('|')[1])</Platform>
|
|
<AppEnvironment Condition="'$(CombinedConfiguration)' != '' and $(CombinedConfiguration.Split('|').Length) > 2">$(CombinedConfiguration.Split('|')[2])</AppEnvironment>
|
|
|
|
<UpdateAssemblyInfo>false</UpdateAssemblyInfo>
|
|
<_isWindows>$([MSBuild]::IsOsPlatform(Windows))</_isWindows>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<None Include="..\src\Directory.Build.targets" Link="Directory.Build.targets" />
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup>
|
|
<DocfxVersion>2.73.2</DocfxVersion>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="MSBuildTasks" Version="1.5.0.235" />
|
|
<PackageReference Include="NUnit.Runners" Version="3.12.0" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="UnoVSBuild" AfterTargets="Build" Condition="'$(BuildingInsideVisualStudio)'!=''">
|
|
<Warning Text="Building this project under Visual Studio has no effect." />
|
|
</Target>
|
|
|
|
<Target Name="PrepareBuildAssets" AfterTargets="Build" Condition="'$(BuildingInsideVisualStudio)'==''">
|
|
<Message Text="Building for $(Configuration) and $(Platform) BuildReason:$(BUILD_REASON) Version:$(GitVersion_SemVer) UNO_UWP_BUILD:$(UNO_UWP_BUILD)" />
|
|
|
|
<CallTarget Targets="UpdateTasksSHA" />
|
|
<CallTarget Targets="PrepareNuGetPackage" />
|
|
</Target>
|
|
|
|
<Target Name="UpdateTasksSHA">
|
|
|
|
<ItemGroup>
|
|
<_Sha1Replace Include="..\src\SourceGenerators\Uno.UI.Tasks\**\*.cs" />
|
|
<_Sha1Replace Include="..\build\nuget\uno.winui.winappsdk.targets" />
|
|
<_Sha1Replace Include="..\build\nuget\uno.winui.runtime-replace.targets" />
|
|
<_Sha1Replace Include="..\src\SourceGenerators\Uno.UI.Tasks\Uno.UI.Tasks.csproj" />
|
|
<_Sha1Replace Include="..\src\SourceGenerators\Uno.UI.Tasks\Content\Uno.UI.Tasks*.*" />
|
|
<_Sha1Replace Include="..\src\Uno.Sdk\**\*" />
|
|
</ItemGroup>
|
|
|
|
<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>
|
|
|
|
<ItemGroup>
|
|
<_FilesContent
|
|
Include="%(_Sha1Replace.Identity)"
|
|
Contents="$([System.IO.File]::ReadAllText('%(_Sha1Replace.Identity)').Replace('v0','v$(_ReplacedSHA)'))" />
|
|
|
|
</ItemGroup>
|
|
|
|
<WriteFilesTask FilesToProcess="@(_FilesContent)" />
|
|
</Target>
|
|
|
|
<Target Name="BuildCIMobile">
|
|
<MSBuild Properties="Configuration=Release;InformationalVersion=$(GITVERSION_InformationalVersion);CI_Build=true;_IsCIBuild=true;PackageOutputPath=$(BUILD_ARTIFACTSTAGINGDIRECTORY)\vslatest-netcoremobile;PackageVersion=$(GITVERSION_SemVer)"
|
|
Projects="filters\Uno.UI-packages-netcoremobile.slnf"
|
|
Targets="Restore;Build"
|
|
RebaseOutputs="false"
|
|
BuildInParallel="true" />
|
|
|
|
</Target>
|
|
|
|
<Target Name="BuildCIWasm">
|
|
|
|
<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" />
|
|
|
|
</Target>
|
|
|
|
<Target Name="BuildCISkia">
|
|
|
|
<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" />
|
|
|
|
</Target>
|
|
|
|
<Target Name="BuildCIReference">
|
|
|
|
<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-reference.slnf"
|
|
Targets="Restore;Build"
|
|
RebaseOutputs="false"
|
|
BuildInParallel="true" />
|
|
|
|
</Target>
|
|
|
|
<Target Name="BuildSyncGenerator">
|
|
<!-- Restore the nuget packages for packages-* solution filters -->
|
|
<!-- These filters contain Uno.UI project and its dependencies, which are what needs to be restored -->
|
|
<!-- In addition, the reference project needs to be restored as well. -->
|
|
<MSBuild
|
|
Properties="Configuration=Release;InformationalVersion=$(GITVERSION_InformationalVersion);CI_Build=true;_IsCIBuild=true"
|
|
Projects="filters\Uno.UI-top-projects-for-sync-gen.slnf;..\src\Uno.UWPSyncGenerator\Uno.UWPSyncGenerator.csproj;..\src\Uno.UWPSyncGenerator.Reference\Uno.UWPSyncGenerator.Reference.csproj"
|
|
Targets="Restore;Clean"
|
|
RebaseOutputs="false"
|
|
BuildInParallel="true" />
|
|
|
|
<MSBuild Properties="Configuration=Release" Projects="..\src\Uno.UWPSyncGenerator\Uno.UWPSyncGenerator.csproj" Targets="Build" />
|
|
<MSBuild Properties="Configuration=Release;Platform=x86" Projects="..\src\Uno.UWPSyncGenerator.Reference\Uno.UWPSyncGenerator.Reference.csproj" Targets="Build" />
|
|
|
|
<ItemGroup>
|
|
<MixinTargetFrameworks Include="net8.0-ios17.0" />
|
|
<MixinTargetFrameworks Include="net8.0-android" />
|
|
<MixinTargetFrameworks Include="net8.0-macos14.0" />
|
|
</ItemGroup>
|
|
|
|
<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" />
|
|
</Target>
|
|
|
|
<Target Name="GenerateDoc" DependsOnTargets="BuildSyncGenerator">
|
|
<MSBuild Properties="Configuration=Debug"
|
|
Projects="..\src\Uno.Foundation.Logging\Uno.Foundation.Logging.csproj"
|
|
Targets="Restore;Build"
|
|
RebaseOutputs="false"
|
|
BuildInParallel="true" />
|
|
|
|
<Exec Command="..\src\Uno.UWPSyncGenerator\Bin\Release\Uno.UWPSyncGenerator.exe "doc"" />
|
|
<Exec Command="powershell .\import_external_docs.ps1" WorkingDirectory="..\doc" />
|
|
<Exec Command="dotnet tool install --tool-path $(MSBuildThisFileDirectory)\tools docfx --version $(DocfxVersion)" Condition="!exists('$(MSBuildThisFileDirectory)\tools\docfx.exe')" />
|
|
<Exec Command="$(MSBuildThisFileDirectory)\tools\docfx.exe ..\doc\docfx.json --debug -o $(OutputDir)\doc" />
|
|
</Target>
|
|
|
|
<Target Name="RunAPISyncTool" DependsOnTargets="BuildSyncGenerator">
|
|
<Exec Command="..\src\Uno.UWPSyncGenerator\Bin\Release\Uno.UWPSyncGenerator.exe "sync"" />
|
|
</Target>
|
|
|
|
<Target Name="PrepareNuGetPackage">
|
|
|
|
<PropertyGroup>
|
|
<NugetNamespace>
|
|
<Namespace Prefix="x" Uri="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" />
|
|
</NugetNamespace>
|
|
<PackageNamePrefix>Uno.WinUI</PackageNamePrefix>
|
|
<PackageNamePrefix Condition="'$(UNO_UWP_BUILD)'=='true'">Uno.UI</PackageNamePrefix>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<_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" />
|
|
<_NuspecFiles Include=".\nuget\Uno.WinUI.DevServer.nuspec" />
|
|
<_NuspecFiles Include=".\nuget\Uno.WinUI.DevServer.Messaging.nuspec" />
|
|
<_NuspecFiles Include=".\nuget\Uno.WinUI.Skia.Gtk.nuspec" />
|
|
<_NuspecFiles Include=".\nuget\Uno.WinUI.Skia.Linux.FrameBuffer.nuspec" />
|
|
<_NuspecFiles Include=".\nuget\Uno.WinUI.Skia.MacOS.nuspec" />
|
|
<_NuspecFiles Include=".\nuget\Uno.WinUI.Skia.X11.nuspec" />
|
|
<_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" />
|
|
</ItemGroup>
|
|
|
|
<!-- Update Uno.WinUI references version -->
|
|
<XmlPoke XmlInputPath="%(_NuspecFiles.Identity)" Query="/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI']/@version" Value="$(GITVERSION_SemVer)" Namespaces="$(NugetNamespace)" />
|
|
|
|
<!-- 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)" />
|
|
|
|
<!-- 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)" />
|
|
|
|
<!-- Update Uno.Foundation.Runtime.WebAssembly references version -->
|
|
<XmlPoke XmlInputPath="%(_NuspecFiles.Identity)" Query="/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.Foundation.Runtime.WebAssembly']/@version" Value="$(GITVERSION_SemVer)" Namespaces="$(NugetNamespace)" />
|
|
|
|
<!-- Update Uno.WinUI.Runtime.WebAssembly references version -->
|
|
<XmlPoke XmlInputPath="%(_NuspecFiles.Identity)" Query="/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.Runtime.WebAssembly']/@version" Value="$(GITVERSION_SemVer)" Namespaces="$(NugetNamespace)" />
|
|
|
|
<!-- Update Uno.WinUI.Runtime.Skia.Gtk references version -->
|
|
<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)" />
|
|
|
|
<!-- Update Uno.WinUI.Runtime.Skia.Linux.FrameBuffer references version -->
|
|
<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)" />
|
|
|
|
<!-- 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)" />
|
|
|
|
<!-- Update Uno.WinUI.Runtime.Skia.X11 references version -->
|
|
<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)" />
|
|
|
|
<!-- Update Uno.WinUI.Runtime.Skia.Wpf references version -->
|
|
<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)" />
|
|
|
|
<!-- 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)" />
|
|
|
|
<!-- 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)" />
|
|
|
|
<!-- 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)" />
|
|
|
|
<!-- Update package ID based on WinUI / UWP source tree -->
|
|
<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)" />
|
|
<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)" />
|
|
<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)" />
|
|
<XmlPoke XmlInputPath=".\nuget\Uno.WinUI.Skia.MacOS.nuspec" Query="/x:package/x:metadata/x:id" Value="$(PackageNamePrefix).Skia.MacOS" Namespaces="$(NugetNamespace)" />
|
|
<XmlPoke XmlInputPath=".\nuget\Uno.WinUI.Skia.X11.nuspec" Query="/x:package/x:metadata/x:id" Value="$(PackageNamePrefix).Skia.X11" Namespaces="$(NugetNamespace)" />
|
|
<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)" />
|
|
|
|
<!-- Update package Title based on WinUI / UWP source tree -->
|
|
<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)" />
|
|
<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)" />
|
|
<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)" />
|
|
<XmlPoke XmlInputPath=".\nuget\Uno.WinUI.Skia.MacOS.nuspec" Query="/x:package/x:metadata/x:title" Value="$(PackageNamePrefix).Skia.MacOS" Namespaces="$(NugetNamespace)" />
|
|
<XmlPoke XmlInputPath=".\nuget\Uno.WinUI.Skia.X11.nuspec" Query="/x:package/x:metadata/x:title" Value="$(PackageNamePrefix).Skia.X11" Namespaces="$(NugetNamespace)" />
|
|
<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)" />
|
|
|
|
<!-- Rename dependencies -->
|
|
<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)" />
|
|
<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)" />
|
|
<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)" />
|
|
<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)" />
|
|
<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)" />
|
|
<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)" />
|
|
|
|
<!-- Rename skiasharp references for WinUI -->
|
|
<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'" />
|
|
|
|
<!-- Adjust build props file to match WinUI / UWP-->
|
|
<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'"/>
|
|
|
|
<!-- Adjust build targets file to match WinUI / UWP-->
|
|
<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'"/>
|
|
|
|
<!-- Adjust build props file for Windows targets -->
|
|
<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'"/>
|
|
<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'"/>
|
|
|
|
<!-- Adjust build targets file for Windows targets -->
|
|
<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'"/>
|
|
<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'"/>
|
|
|
|
<!-- Skia GTK targets/props-->
|
|
<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'"/>
|
|
|
|
<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'"/>
|
|
|
|
<!-- Skia Linux FrameBuffer targets/props-->
|
|
<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'"/>
|
|
|
|
<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'"/>
|
|
|
|
<!-- 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'"/>
|
|
|
|
<!-- Skia X11 targets/props-->
|
|
<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'"/>
|
|
|
|
<!-- Skia Wpf targets/props-->
|
|
<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'"/>
|
|
|
|
<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'"/>
|
|
|
|
<!-- Wasm targets/props-->
|
|
<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'"/>
|
|
|
|
<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'"/>
|
|
|
|
<!-- remote control -->
|
|
<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'"/>
|
|
|
|
<!-- 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" />
|
|
|
|
<!-- 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" />
|
|
|
|
<!-- 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" />
|
|
|
|
<!-- XamlHost move file -->
|
|
<Move SourceFiles="..\src\Uno.UI.XamlHost\buildTransitive\Uno.UI.XamlHost.props" DestinationFiles="..\src\Uno.UI.XamlHost\buildTransitive\$(PackageNamePrefix).XamlHost.props" />
|
|
|
|
<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'"/>
|
|
|
|
<!-- 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" />
|
|
<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" />
|
|
<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" />
|
|
<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" />
|
|
<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" />
|
|
<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" />
|
|
</Target>
|
|
|
|
<Target Name="BuildNuGetPackage" AfterTargets="Build" DependsOnTargets="PrepareBuildAssets" Condition="'$(BuildingInsideVisualStudio)'=='' and '$(Configuration)'=='Release'">
|
|
<PropertyGroup>
|
|
<NuSpecProperties>NoWarn=NU5100,NU5105,NU5131;branch=$(GITVERSION_BranchName);commitid=$(GitVersion_Sha)</NuSpecProperties>
|
|
|
|
<NuSpecProperties Condition="'$(UNO_UWP_BUILD)'=='true'">$(NuSpecProperties);winuisourcepath=uap10.0.19041;winuitargetpath=UAP</NuSpecProperties>
|
|
<NuSpecProperties Condition="'$(UNO_UWP_BUILD)'!='true'">$(NuSpecProperties);winuisourcepath=net8.0-windows10.0.19041.0;winuitargetpath=net8.0-windows10.0.19041.0</NuSpecProperties>
|
|
</PropertyGroup>
|
|
|
|
<!-- Pre-validation of contents to be packed -->
|
|
<Error Text="The Uno.UI.Toolkit PRI file is not present in src\Uno.UI.Toolkit\bin\Uno.UI.Toolkit.Windows\Release"
|
|
Condition="'$(UNO_UWP_BUILD)'=='true' and !exists('..\src\Uno.UI.Toolkit\bin\Uno.UI.Toolkit.Windows\Release\uap10.0.19041\Uno.UI.Toolkit.pri')" />
|
|
<Error Text="The Uno.UI.Toolkit PRI file is not present in src\Uno.UI.Toolkit\bin\Uno.UI.Toolkit.Windows\Release"
|
|
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')" />
|
|
|
|
<!-- Create the packages -->
|
|
<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)"" />
|
|
<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)"" />
|
|
<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)"" />
|
|
<Exec Command="$(NuGetBin) pack nuget\Uno.WinUI.Skia.MacOS.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
|
|
<Exec Command="$(NuGetBin) pack nuget\Uno.WinUI.Skia.X11.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
|
|
<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)"" />
|
|
</Target>
|
|
|
|
<Target Name="ValidatePackage" AfterTargets="BuildNuGetPackage" Condition="'$(BuildingInsideVisualStudio)'==''">
|
|
<PropertyGroup>
|
|
<PackageNamePrefix>Uno.WinUI</PackageNamePrefix>
|
|
<PackageNamePrefix Condition="'$(UNO_UWP_BUILD)'=='true'">Uno.UI</PackageNamePrefix>
|
|
<ArtifactsPlatformName>WinUI</ArtifactsPlatformName>
|
|
<ArtifactsPlatformName Condition="'$(UNO_UWP_BUILD)'=='true'">UWP</ArtifactsPlatformName>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<_diffPackage Include="$(PackageNamePrefix)" Other="$(PackageNamePrefix).$(GITVERSION_SemVer).nupkg" />
|
|
<_diffPackage Include="$(PackageNamePrefix).Foldable" Other="..\..\..\NugetPackages-Artifacts-netcoremobile-$(ArtifactsPlatformName)\vslatest-netcoremobile\$(PackageNamePrefix).Foldable.$(GITVERSION_SemVer).nupkg" />
|
|
<_diffPackage Include="$(PackageNamePrefix).Lottie" Other="$(PackageNamePrefix).Lottie.$(GITVERSION_SemVer).nupkg" />
|
|
<_diffPackage Include="$(PackageNamePrefix).Maps" Other="..\..\..\NugetPackages-Artifacts-netcoremobile-$(ArtifactsPlatformName)\vslatest-netcoremobile\$(PackageNamePrefix).Maps.$(GITVERSION_SemVer).nupkg" />
|
|
<_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" />
|
|
<_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" />
|
|
<_diffPackage Include="$(PackageNamePrefix).Skia.Linux.FrameBuffer" Other="$(PackageNamePrefix).Skia.Linux.FrameBuffer.$(GITVERSION_SemVer).nupkg" />
|
|
<!-- <_diffPackage Include="$(PackageNamePrefix).Skia.MacOS" Other="$(PackageNamePrefix).Skia.MacOS.$(GITVERSION_SemVer).nupkg" /> -->
|
|
<_diffPackage Include="$(PackageNamePrefix).Skia.Wpf" Other="$(PackageNamePrefix).Skia.Wpf.$(GITVERSION_SemVer).nupkg" />
|
|
<_diffPackage Include="$(PackageNamePrefix).Runtime.Skia.Wpf" Other="..\..\..\NugetPackages-Artifacts-skia-$(ArtifactsPlatformName)\vslatest-skia\$(PackageNamePrefix).Runtime.Skia.Wpf.$(GITVERSION_SemVer).nupkg" />
|
|
<_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" />
|
|
<_diffPackage Include="$(PackageNamePrefix).Runtime.WebAssembly" Other="..\..\..\NugetPackages-Artifacts-wasm-$(ArtifactsPlatformName)\vslatest-wasm\$(PackageNamePrefix).Runtime.WebAssembly.$(GITVERSION_SemVer).nupkg" />
|
|
<_diffPackage Include="Uno.Foundation.Logging" Other="..\..\..\NugetPackages-Artifacts-skia-$(ArtifactsPlatformName)\vslatest-skia\Uno.Foundation.Logging.$(GITVERSION_SemVer).nupkg" />
|
|
<_diffPackage Include="Uno.Foundation.Runtime.WebAssembly" Other="..\..\..\NugetPackages-Artifacts-wasm-$(ArtifactsPlatformName)\vslatest-wasm\Uno.Foundation.Runtime.WebAssembly.$(GITVERSION_SemVer).nupkg" />
|
|
<_diffPackage Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Other="Uno.UI.Adapter.Microsoft.Extensions.Logging.$(GITVERSION_SemVer).nupkg" />
|
|
</ItemGroup>
|
|
|
|
<Exec Command="dotnet tool install --tool-path $(MSBuildThisFileDirectory)\tools Uno.PackageDiff --version 1.1.0-dev.25" IgnoreExitCode="true" />
|
|
<Exec Command="$(MSBuildThisFileDirectory)\tools\generatepkgdiff.exe --base=%(_diffPackage.Identity) --other=%(_diffPackage.Other) --diffignore=PackageDiffIgnore.xml --outfile=$(OutputDir)\ApiDiff.%(_diffPackage.Identity).$(GITVERSION_SemVer).md" />
|
|
</Target>
|
|
|
|
<Target Name="ValidatePackageReferenceAPI" AfterTargets="BuildNuGetPackage">
|
|
<PropertyGroup>
|
|
<PackageNamePrefix>Uno.WinUI</PackageNamePrefix>
|
|
<PackageNamePrefix Condition="'$(UNO_UWP_BUILD)'=='true'">Uno.UI</PackageNamePrefix>
|
|
</PropertyGroup>
|
|
|
|
<Exec Command="dotnet $(MSBuildThisFileDirectory)..\src\Uno.ReferenceImplComparer\bin\Release\Uno.ReferenceImplComparer.dll $(MSBuildThisFileDirectory)$(PackageNamePrefix).$(GITVERSION_SemVer).nupkg" />
|
|
</Target>
|
|
|
|
<!-- 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>
|
|
|
|
</Project>
|