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>
<ItemGroup >
<Content Include= "..\src\global.json" Link= "global.json" />
</ItemGroup>
<PropertyGroup Condition= "'$(BuildingInsideVisualStudio)'==''" >
<AppVersion > $(GITVERSION_FullSemVer)</AppVersion>
<NuGetBin > .\nuget\NuGet.exe</NuGetBin>
<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>
2020-01-31 16:11:30 +03:00
<!-- Disable automatic documentation generation as the step is executed explicitly through GenerateDoc -->
<BuildDocFx > false</BuildDocFx>
2019-04-16 15:26:35 +03:00
</PropertyGroup>
<ItemGroup >
<None Include= "..\src\Directory.Build.targets" Link= "Directory.Build.targets" />
</ItemGroup>
<ItemGroup >
2020-07-06 13:43:23 +03:00
<PackageReference Include= "docfx.console" Version= "2.56.1" GeneratePathProperty= "true" />
2019-04-16 15:26:35 +03:00
<PackageReference Include= "MSBuildTasks" >
<Version > 1.5.0.235</Version>
</PackageReference>
<PackageReference Include= "NUnit.Runners" >
2020-02-17 13:42:57 +03:00
<Version > 3.11.1</Version>
2019-04-16 15:26:35 +03:00
</PackageReference>
</ItemGroup>
<Target Name= "UnoVSBuild" AfterTargets= "Build" Condition= "'$(BuildingInsideVisualStudio)'!=''" >
<Warning Text= "Building this project under Visual Studio has no effect." />
</Target>
<Target Name= "UnoBuild" AfterTargets= "Build" Condition= "'$(BuildingInsideVisualStudio)'==''" >
2020-05-13 20:57:53 +03:00
<Message Text= "Building for $(Configuration) and $(Platform) BuildReason:$(BUILD_REASON) Version:$(GitVersion_FullSemVer) UNO_UWP_BUILD:$(UNO_UWP_BUILD)" />
2020-07-17 22:10:21 +03:00
<CallTarget Targets= "UpdateFileVersions;UpdateTasksSHA;PrepareNuGetPackage" Condition= "$(_isWindows)" />
2019-03-29 15:55:59 +03:00
2020-05-13 20:57:53 +03:00
<CallTarget Targets= "RunAPISyncTool" Condition= "'$(UNO_UWP_BUILD)'=='false'" />
2019-04-16 15:26:35 +03:00
<CallTarget Targets= "BuildCI" Condition= "'$(Configuration)'=='Release' and $(_isWindows)" />
<CallTarget Targets= "BuildCImacOS" Condition= "'$(Configuration)'=='Release' and !$(_isWindows)" />
2018-08-31 04:45:27 +03:00
2019-04-16 15:26:35 +03:00
<CallTarget Targets= "BuildNuGetPackage" Condition= "'$(Configuration)'=='Release'" />
<CallTarget Targets= "PublishVisx" Condition= "'$(Configuration)'=='Release' and $(_isWindows)" />
</Target>
2018-08-31 04:45:27 +03:00
2019-04-16 15:26:35 +03:00
<Target Name= "UpdateFileVersions" >
2018-08-31 04:45:27 +03:00
2019-11-29 14:55:59 +03:00
<XmlUpdate XmlFileName= "..\src\SolutionTemplate\UnoSolutionTemplate.VISX\source.extension.vsixmanifest"
XPath="/x:PackageManifest/x:Metadata/x:Identity/@Version"
Value="$(GITVERSION_MajorMinorPatch).$(GITVERSION_CommitsSinceVersionSource)"
Namespace="http://schemas.microsoft.com/developer/vsx-schema/2011"
Prefix="x" />
2019-09-09 23:36:42 +03:00
2019-11-29 14:55:59 +03:00
<ItemGroup >
<_PackageToUpdate Include= "Uno.UI" />
<_PackageToUpdate Include= "Uno.UI.RemoteControl" />
2020-04-27 15:36:27 +03:00
<_legacyProject Include= "..\src\SolutionTemplate\**\*.Droid.csproj" />
<_legacyProject Include= "..\src\SolutionTemplate\**\*.iOS.csproj" />
<_legacyProject Include= "..\src\SolutionTemplate\**\*.macOS.csproj" />
<_sdkProject Include= "..\src\SolutionTemplate\**\*.Wasm.csproj" />
<_sdkProject Include= "..\src\SolutionTemplate\UnoLibraryTemplate\CrossTargetedLibrary.csproj" />
2019-11-29 14:55:59 +03:00
</ItemGroup>
2020-04-27 15:36:27 +03:00
<XmlUpdate XmlFileName= "%(_legacyProject.Identity)"
XPath="//x:PackageReference[@Include='Uno.UI.RemoteControl']/@Version"
Value="$(GitVersion_FullSemVer)"
2019-11-29 14:55:59 +03:00
Namespace="http://schemas.microsoft.com/developer/msbuild/2003"
Prefix="x" />
2020-04-27 15:36:27 +03:00
<XmlUpdate XmlFileName= "%(_legacyProject.Identity)"
XPath="//x:PackageReference[@Include='Uno.UI']/@Version"
Value="$(GitVersion_FullSemVer)"
2019-11-29 14:55:59 +03:00
Namespace="http://schemas.microsoft.com/developer/msbuild/2003"
Prefix="x" />
2019-09-09 23:36:42 +03:00
2020-04-27 15:36:27 +03:00
<XmlUpdate XmlFileName= "%(_sdkProject.Identity)"
XPath="//PackageReference[@Include='Uno.UI']/@Version"
2019-11-29 14:55:59 +03:00
Value="$(GitVersion_FullSemVer)" />
2020-04-27 15:36:27 +03:00
<XmlUpdate XmlFileName= "%(_sdkProject.Identity)"
XPath="//PackageReference[@Include='Uno.UI.RemoteControl']/@Version"
2020-04-22 22:20:12 +03:00
Value="$(GitVersion_FullSemVer)" />
2020-07-17 22:10:21 +03:00
<XmlUpdate XmlFileName= "%(_sdkProject.Identity)"
XPath="//PackageReference[@Include='Uno.UI.WebAssembly']/@Version"
Value="$(GitVersion_FullSemVer)" />
<XmlUpdate XmlFileName= "%(_sdkProject.Identity)"
XPath="//PackageReference[@Include='Uno.UI.Skia.Gtk']/@Version"
Value="$(GitVersion_FullSemVer)" />
<XmlUpdate XmlFileName= "%(_sdkProject.Identity)"
XPath="//PackageReference[@Include='Uno.UI.Skia.Wpf']/@Version"
Value="$(GitVersion_FullSemVer)" />
2019-04-16 15:26:35 +03:00
</Target>
2018-08-31 04:45:27 +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 >
<_Sha1Replace Include= "..\src\SourceGenerators\Uno.UI.Tasks\Uno.UI.Tasks.csproj" />
<_Sha1Replace Include= "..\src\SourceGenerators\Uno.UI.Tasks\Assets\RetargetAssets.cs" />
<_Sha1Replace Include= "..\src\SourceGenerators\Uno.UI.Tasks\Content\Uno.UI.Tasks.targets" />
<_Sha1Replace Include= "..\src\SourceGenerators\Uno.UI.Tasks\ResourcesGenerator\ResourcesGenerationTask.cs" />
</ItemGroup>
2018-08-31 04:45:27 +03:00
2019-09-09 23:36:42 +03:00
<FileUpdate Files= "@(_Sha1Replace)" Regex= "v0" ReplacementText= "v$(GitVersion_Sha)" />
2018-08-31 04:45:27 +03:00
2019-04-16 15:26:35 +03:00
</Target>
2018-08-31 04:45:27 +03:00
2019-04-16 15:26:35 +03:00
<Target Name= "BuildCI" >
2019-04-16 16:19:45 +03:00
<Exec Command= "npm i" WorkingDirectory= "..\src\SamplesApp\SamplesApp.Wasm.UITests" />
2018-08-31 04:45:27 +03:00
2020-04-08 16:58:32 +03:00
<MSBuild Properties= "Configuration=Release_NoSamples;InformationalVersion=$(GITVERSION_InformationalVersion);CI_Build=true;_IsCIBuild=true;PackageOutputPath=$(BUILD_ARTIFACTSTAGINGDIRECTORY)\vslatest;PackageVersion=$(GITVERSION_FullSemVer)"
2019-03-29 15:07:31 +03:00
Projects="..\src\Uno.UI.sln"
2020-01-22 15:42:52 +03:00
Targets="Restore;Build"
2019-03-29 15:07:31 +03:00
RebaseOutputs="false"
2020-06-09 05:47:57 +03:00
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
2020-05-13 20:57:53 +03:00
<Target Name= "BuildSyncGenerator" >
2019-04-16 15:26:35 +03:00
<!-- Restore the nuget packages for the whole solution -->
2020-01-22 15:42:52 +03:00
<MSBuild Properties= "Configuration=Release;InformationalVersion=$(GITVERSION_InformationalVersion);CI_Build=true;_IsCIBuild=true" Projects= "..\src\Uno.UI.sln" Targets= "Restore" RebaseOutputs= "false" BuildInParallel= "true" />
2020-02-24 18:21:10 +03:00
<MSBuild Properties= "Configuration=Release" Projects= "..\src\Uno.UWPSyncGenerator\Uno.UWPSyncGenerator.csproj" Targets= "Restore;Build" />
2020-06-09 16:49:12 +03:00
2020-05-13 20:57:53 +03:00
<ItemGroup >
<MixinTargetFrameworks Include= "xamarinios10" />
<MixinTargetFrameworks Include= "monoandroid10.0" />
<MixinTargetFrameworks Include= "xamarinmac20" />
<MixinTargetFrameworks Include= "net461" />
<MixinTargetFrameworks Include= "netstandard2.0" />
</ItemGroup>
<MSBuild Properties= "Configuration=Release;InformationalVersion=$(GITVERSION_InformationalVersion);CI_Build=true;_IsCIBuild=true"
Projects="..\src\T4Generator\T4Generator.csproj"
Targets="Build"
RebaseOutputs="false"
BuildInParallel="true" />
<MSBuild Properties= "Configuration=Release;InformationalVersion=$(GITVERSION_InformationalVersion);CI_Build=true;_IsCIBuild=true;TargetFramework=%(MixinTargetFrameworks.Identity)"
Projects="..\src\Uno.UI\Uno.UI.csproj"
Targets="GenerateMixins"
RebaseOutputs="false"
BuildInParallel="true" />
</Target>
<Target Name= "GenerateDoc" DependsOnTargets= "BuildSyncGenerator" >
2020-06-05 18:01:40 +03:00
<Exec Command= "..\src\Uno.UWPSyncGenerator\Bin\Release\Uno.UWPSyncGenerator.exe "doc"" />
2019-10-17 02:32:00 +03:00
<Exec Command= "$(Pkgdocfx_console)\tools\docfx.exe ..\doc\docfx.json -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-05-19 04:49:05 +03:00
<Target Name= "PublishVisx" Condition= "'$(UNO_UWP_BUILD)'=='true'" >
2019-11-29 14:55:59 +03:00
<Copy SourceFiles= "..\src\SolutionTemplate\UnoSolutionTemplate.VISX\bin\Release\UnoSolutionTemplate.VSIX.vsix"
2019-11-30 00:07:42 +03:00
DestinationFiles="$(OutputDir)\vslatest\UnoPlatform-$(GITVERSION_FullSemVer).vsix" />
2019-04-16 15:26:35 +03:00
</Target>
2018-08-31 04:45:27 +03:00
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 >
<NugetNamespace > 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 >
<_NuspecFiles Include= ".\Uno.WinUI.nuspec" />
<_NuspecFiles Include= ".\Uno.WinUI.Lottie.nuspec" />
<_NuspecFiles Include= ".\Uno.WinUI.RemoteControl.nuspec" />
<_NuspecFiles Include= ".\Uno.WinUI.Skia.Gtk.nuspec" />
<_NuspecFiles Include= ".\Uno.WinUI.Skia.Wpf.nuspec" />
<_NuspecFiles Include= ".\Uno.WinUI.WebAssembly.nuspec" />
</ItemGroup>
<!-- Update the package version -->
<XmlUpdate XmlFileName= "%(_NuspecFiles.Identity)" XPath= "/x:package/x:metadata/x:dependencies/x:dependency/@version" Value= "$(GITVERSION_FullSemVer)" Namespace= "$(NugetNamespace)" Prefix= "x" />
<!-- Update Uno.WinUI references version -->
<XmlUpdate XmlFileName= "%(_NuspecFiles.Identity)" XPath= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI']/@version" Value= "$(GITVERSION_FullSemVer)" Namespace= "$(NugetNamespace)" Prefix= "x" />
2020-05-13 20:57:53 +03:00
2020-07-17 22:10:21 +03:00
<!-- Update Uno.Foundation.Runtime.Wasm references version -->
<XmlUpdate XmlFileName= "%(_NuspecFiles.Identity)" XPath= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.Foundation.Runtime.Wasm']/@version" Value= "$(GITVERSION_FullSemVer)" Namespace= "$(NugetNamespace)" Prefix= "x" />
<!-- Update Uno.Foundation.Runtime.Wasm references version -->
<XmlUpdate XmlFileName= "%(_NuspecFiles.Identity)" XPath= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.Runtime.Wasm']/@version" Value= "$(GITVERSION_FullSemVer)" Namespace= "$(NugetNamespace)" Prefix= "x" />
2019-09-09 23:36:42 +03:00
2020-07-17 22:10:21 +03:00
<!-- Update Uno.WinUI.Runtime.Skia.Gtk references version -->
<XmlUpdate XmlFileName= "%(_NuspecFiles.Identity)" XPath= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.Runtime.Skia.Gtk']/@version" Value= "$(GITVERSION_FullSemVer)" Namespace= "$(NugetNamespace)" Prefix= "x" />
<!-- Update Uno.WinUI.Runtime.Skia.Wpf references version -->
<XmlUpdate XmlFileName= "%(_NuspecFiles.Identity)" XPath= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.Runtime.Skia.Wpf']/@version" Value= "$(GITVERSION_FullSemVer)" Namespace= "$(NugetNamespace)" Prefix= "x" />
<!-- Update package ID based on WinUI / UWP source tree -->
2020-05-13 20:57:53 +03:00
<XmlUpdate XmlFileName= ".\Uno.WinUI.nuspec" XPath= "/x:package/x:metadata/x:id" Value= "$(PackageNamePrefix)" Namespace= "$(NugetNamespace)" Prefix= "x" />
<XmlUpdate XmlFileName= ".\Uno.WinUI.Lottie.nuspec" XPath= "/x:package/x:metadata/x:id" Value= "$(PackageNamePrefix).Lottie" Namespace= "$(NugetNamespace)" Prefix= "x" />
<XmlUpdate XmlFileName= ".\Uno.WinUI.RemoteControl.nuspec" XPath= "/x:package/x:metadata/x:id" Value= "$(PackageNamePrefix).RemoteControl" Namespace= "$(NugetNamespace)" Prefix= "x" />
2020-07-17 22:10:21 +03:00
<XmlUpdate XmlFileName= ".\Uno.WinUI.Skia.Gtk.nuspec" XPath= "/x:package/x:metadata/x:id" Value= "$(PackageNamePrefix).Skia.Gtk" Namespace= "$(NugetNamespace)" Prefix= "x" />
<XmlUpdate XmlFileName= ".\Uno.WinUI.Skia.Wpf.nuspec" XPath= "/x:package/x:metadata/x:id" Value= "$(PackageNamePrefix).Skia.Wpf" Namespace= "$(NugetNamespace)" Prefix= "x" />
<XmlUpdate XmlFileName= ".\Uno.WinUI.WebAssembly.nuspec" XPath= "/x:package/x:metadata/x:id" Value= "$(PackageNamePrefix).WebAssembly" Namespace= "$(NugetNamespace)" Prefix= "x" />
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 -->
2020-05-13 20:57:53 +03:00
<XmlUpdate XmlFileName= ".\Uno.WinUI.nuspec" XPath= "/x:package/x:metadata/x:title" Value= "$(PackageNamePrefix)" Namespace= "$(NugetNamespace)" Prefix= "x" />
<XmlUpdate XmlFileName= ".\Uno.WinUI.Lottie.nuspec" XPath= "/x:package/x:metadata/x:title" Value= "$(PackageNamePrefix).Lottie" Namespace= "$(NugetNamespace)" Prefix= "x" />
<XmlUpdate XmlFileName= ".\Uno.WinUI.RemoteControl.nuspec" XPath= "/x:package/x:metadata/x:title" Value= "$(PackageNamePrefix).RemoteControl" Namespace= "$(NugetNamespace)" Prefix= "x" />
2020-07-17 22:10:21 +03:00
<XmlUpdate XmlFileName= ".\Uno.WinUI.Skia.Gtk.nuspec" XPath= "/x:package/x:metadata/x:title" Value= "$(PackageNamePrefix).Skia.Gtk" Namespace= "$(NugetNamespace)" Prefix= "x" />
<XmlUpdate XmlFileName= ".\Uno.WinUI.Skia.Wpf.nuspec" XPath= "/x:package/x:metadata/x:title" Value= "$(PackageNamePrefix).Skia.Wpf" Namespace= "$(NugetNamespace)" Prefix= "x" />
<XmlUpdate XmlFileName= ".\Uno.WinUI.WebAssembly.nuspec" XPath= "/x:package/x:metadata/x:title" Value= "$(PackageNamePrefix).WebAssembly" Namespace= "$(NugetNamespace)" Prefix= "x" />
2019-03-19 17:50:44 +03:00
2020-07-17 22:10:21 +03:00
<!-- Rename dependencies -->
<XmlUpdate XmlFileName= "%(_NuspecFiles.Identity)" XPath= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI']/@id" Value= "$(PackageNamePrefix)" Namespace= "$(NugetNamespace)" Prefix= "x" />
<XmlUpdate XmlFileName= "%(_NuspecFiles.Identity)" XPath= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.Runtime.Skia.Gtk']/@id" Value= "$(PackageNamePrefix).Runtime.Skia.Gtk" Namespace= "$(NugetNamespace)" Prefix= "x" />
<XmlUpdate XmlFileName= "%(_NuspecFiles.Identity)" XPath= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.Runtime.Skia.Wpf']/@id" Value= "$(PackageNamePrefix).Runtime.Skia.Wpf" Namespace= "$(NugetNamespace)" Prefix= "x" />
<XmlUpdate XmlFileName= "%(_NuspecFiles.Identity)" XPath= "/x:package/x:metadata/x:dependencies//x:dependency[@id='Uno.WinUI.Runtime.Wasm']/@id" Value= "$(PackageNamePrefix).Runtime.Wasm" Namespace= "$(NugetNamespace)" Prefix= "x" />
<!-- Adjust build targets file to match WinUI / UWP -->
2020-05-13 20:57:53 +03:00
<Move SourceFiles= ".\uno.winui.targets" DestinationFiles= ".\$(PackageNamePrefix).targets" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<XmlUpdate XmlFileName= ".\Uno.WinUI.nuspec" XPath= "/x:package/x:files/x:file[@src='Uno.WinUI.targets']/@src" Value= "$(PackageNamePrefix).targets" Namespace= "$(NugetNamespace)" Prefix= "x" 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 -->
<Move SourceFiles= ".\uno.winui.Skia.Gtk.targets" DestinationFiles= ".\$(PackageNamePrefix).Skia.Gtk.targets" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<Move SourceFiles= ".\uno.winui.Skia.Gtk.props" DestinationFiles= ".\$(PackageNamePrefix).Skia.Gtk.props" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<XmlUpdate XmlFileName= ".\uno.winui.Skia.Gtk.nuspec" XPath= "/x:package/x:files/x:file[@src='Uno.WinUI.Skia.Gtk.targets']/@src" Value= "$(PackageNamePrefix).Skia.Gtk.targets" Namespace= "$(NugetNamespace)" Prefix= "x" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<XmlUpdate XmlFileName= ".\uno.winui.Skia.Gtk.nuspec" XPath= "/x:package/x:files/x:file[@src='Uno.WinUI.Skia.Gtk.props']/@src" Value= "$(PackageNamePrefix).Skia.Gtk.props" Namespace= "$(NugetNamespace)" Prefix= "x" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<!-- Skia Wpf targets/props -->
<Move SourceFiles= ".\uno.winui.Skia.Wpf.targets" DestinationFiles= ".\$(PackageNamePrefix).Skia.Wpf.targets" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<Move SourceFiles= ".\uno.winui.Skia.Wpf.props" DestinationFiles= ".\$(PackageNamePrefix).Skia.Wpf.props" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<XmlUpdate XmlFileName= ".\uno.winui.Skia.Wpf.nuspec" XPath= "/x:package/x:files/x:file[@src='Uno.WinUI.Skia.Wpf.targets']/@src" Value= "$(PackageNamePrefix).Skia.Wpf.targets" Namespace= "$(NugetNamespace)" Prefix= "x" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<XmlUpdate XmlFileName= ".\uno.winui.Skia.Wpf.nuspec" XPath= "/x:package/x:files/x:file[@src='Uno.WinUI.Skia.Wpf.props']/@src" Value= "$(PackageNamePrefix).Skia.Wpf.props" Namespace= "$(NugetNamespace)" Prefix= "x" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<!-- Wasm targets/props -->
<Move SourceFiles= ".\uno.winui.WebAssembly.targets" DestinationFiles= ".\$(PackageNamePrefix).WebAssembly.targets" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<Move SourceFiles= ".\uno.winui.WebAssembly.props" DestinationFiles= ".\$(PackageNamePrefix).WebAssembly.props" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<XmlUpdate XmlFileName= ".\uno.winui.WebAssembly.nuspec" XPath= "/x:package/x:files/x:file[@src='Uno.WinUI.WebAssembly.targets']/@src" Value= "$(PackageNamePrefix).WebAssembly.targets" Namespace= "$(NugetNamespace)" Prefix= "x" Condition= "'$(UNO_UWP_BUILD)'=='true'" />
<XmlUpdate XmlFileName= ".\uno.winui.WebAssembly.nuspec" XPath= "/x:package/x:files/x:file[@src='Uno.WinUI.WebAssembly.props']/@src" Value= "$(PackageNamePrefix).WebAssembly.props" Namespace= "$(NugetNamespace)" Prefix= "x" 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" />
<!-- 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.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.Wasm\buildTransitive\Uno.UI.Runtime.Wasm.props" DestinationFiles= "..\src\Uno.UI.Runtime.Wasm\buildTransitive\$(PackageNamePrefix).Runtime.Wasm.props" />
<Move SourceFiles= "..\src\Uno.UI.Runtime.Wasm\buildTransitive\Uno.UI.Runtime.Wasm.targets" DestinationFiles= "..\src\Uno.UI.Runtime.Wasm\buildTransitive\$(PackageNamePrefix).Runtime.Wasm.targets" />
</Target>
<Target Name= "BuildNuGetPackage" >
<!-- Create the packages -->
<Exec Command= "$(NuGetBin) pack Uno.WinUI.nuspec -Verbosity Detailed -Version "$(GITVERSION_FullSemVer)" -Properties NoWarn=NU5100,NU5105,NU5131" />
<Exec Command= "$(NuGetBin) pack Uno.WinUI.Lottie.nuspec -Verbosity Detailed -Version "$(GITVERSION_FullSemVer)" -Properties NoWarn=NU5100,NU5105,NU5131" />
<Exec Command= "$(NuGetBin) pack Uno.WinUI.RemoteControl.nuspec -Verbosity Detailed -Version "$(GITVERSION_FullSemVer)" -Properties NoWarn=NU5100,NU5105,NU5131" />
<Exec Command= "$(NuGetBin) pack Uno.WinUI.Skia.Gtk.nuspec -Verbosity Detailed -Version "$(GITVERSION_FullSemVer)" -Properties NoWarn=NU5100,NU5105,NU5131" />
<Exec Command= "$(NuGetBin) pack Uno.WinUI.Skia.Wpf.nuspec -Verbosity Detailed -Version "$(GITVERSION_FullSemVer)" -Properties NoWarn=NU5100,NU5105,NU5131" />
<Exec Command= "$(NuGetBin) pack Uno.WinUI.WebAssembly.nuspec -Verbosity Detailed -Version "$(GITVERSION_FullSemVer)" -Properties NoWarn=NU5100,NU5105,NU5131" />
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= "ValidatePackage" AfterTargets= "UnoBuild" Condition= "'$(BuildingInsideVisualStudio)'=='' and '$(UNO_UWP_BUILD)'=='true'" >
<PropertyGroup >
<PackageNamePrefix > Uno.WinUI</PackageNamePrefix>
<PackageNamePrefix Condition= "'$(UNO_UWP_BUILD)'=='true'" > Uno.UI</PackageNamePrefix>
</PropertyGroup>
2020-07-17 22:10:21 +03:00
<Exec Command= "dotnet tool install --tool-path $(MSBuildThisFileDirectory)\tools Uno.PackageDiff --version 1.0.0-dev.36" IgnoreExitCode= "true" />
<Exec Command= "$(MSBuildThisFileDirectory)\tools\generatepkgdiff.exe --base=$(PackageNamePrefix) --other=$(PackageNamePrefix).$(GITVERSION_FullSemVer).nupkg --diffignore=PackageDiffIgnore.xml --outfile=$(OutputDir)\ApiDiff.$(GITVERSION_FullSemVer).md" />
</Target>
<Target Name= "ValidatePackageReferenceAPI" AfterTargets= "UnoBuild" >
<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_FullSemVer).nupkg" />
2019-04-16 15:26:35 +03:00
</Target>
2019-03-25 04:54:59 +03:00
2018-07-10 20:23:32 +03:00
</Project>