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)'==''">
|
2021-01-25 16:04:26 +03:00
|
|
|
|
<AppVersion>$(GITVERSION_SemVer)</AppVersion>
|
2019-04-16 15:26:35 +03:00
|
|
|
|
|
|
|
|
|
<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>
|
2022-04-18 04:27:57 +03:00
|
|
|
|
<PackageReference Include="docfx.console" Version="2.59.2" GeneratePathProperty="true" />
|
2019-04-16 15:26:35 +03:00
|
|
|
|
<PackageReference Include="MSBuildTasks">
|
|
|
|
|
<Version>1.5.0.235</Version>
|
|
|
|
|
</PackageReference>
|
|
|
|
|
<PackageReference Include="NUnit.Runners">
|
2021-01-18 14:13:56 +03:00
|
|
|
|
<Version>3.12.0</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>
|
|
|
|
|
|
2021-04-14 23:07:58 +03:00
|
|
|
|
<Target Name="BuildGeneric" AfterTargets="Build" Condition="'$(BuildingInsideVisualStudio)'==''">
|
2019-04-16 15:26:35 +03:00
|
|
|
|
|
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)" />
|
2021-04-14 23:07:58 +03:00
|
|
|
|
|
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)" />
|
2018-08-31 04:45:27 +03:00
|
|
|
|
|
2021-07-12 20:35:20 +03:00
|
|
|
|
<CallTarget Targets="PublishVSIX2019" Condition="'$(Configuration)'=='Release' and $(_isWindows)" />
|
2019-04-16 15:26:35 +03:00
|
|
|
|
</Target>
|
2018-08-31 04:45:27 +03:00
|
|
|
|
|
2021-04-14 23:07:58 +03:00
|
|
|
|
<Target Name="BuildNet6" 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="UpdateFileVersions;UpdateTasksSHA;PrepareNuGetPackage" Condition="$(_isWindows)" />
|
|
|
|
|
|
|
|
|
|
<CallTarget Targets="RunAPISyncTool" Condition="'$(UNO_UWP_BUILD)'=='false'" />
|
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
|
|
<Target Name="GeneratePackages" 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="UpdateFileVersions;UpdateTasksSHA;PrepareNuGetPackage" Condition="$(_isWindows)" />
|
|
|
|
|
|
|
|
|
|
<CallTarget Targets="BuildNuGetPackage" Condition="'$(Configuration)'=='Release'" />
|
|
|
|
|
</Target>
|
2021-07-12 20:35:20 +03:00
|
|
|
|
|
|
|
|
|
<Target Name="Build2022VSIX" Condition="'$(BuildingInsideVisualStudio)'==''">
|
|
|
|
|
<CallTarget Targets="UpdateFileVersions" Condition="$(_isWindows)" />
|
|
|
|
|
|
|
|
|
|
<MSBuild Properties="Configuration=Release"
|
|
|
|
|
Projects="..\src\SolutionTemplate\UnoSolutionTemplate.VSIX.2022\UnoSolutionTemplate.VSIX.2022.csproj"
|
|
|
|
|
Targets="Restore;Build"
|
|
|
|
|
RebaseOutputs="false"
|
|
|
|
|
BuildInParallel="true" />
|
|
|
|
|
|
|
|
|
|
<CallTarget Targets="PublishVSIX2022" Condition="'$(Configuration)'=='Release' and $(_isWindows)" />
|
|
|
|
|
</Target>
|
2021-04-14 23:07:58 +03:00
|
|
|
|
|
2019-04-16 15:26:35 +03:00
|
|
|
|
<Target Name="UpdateFileVersions">
|
2021-04-14 23:07:58 +03:00
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<VSXNamespace>
|
|
|
|
|
<Namespace Prefix="x" Uri="http://schemas.microsoft.com/developer/vsx-schema/2011"/>
|
|
|
|
|
</VSXNamespace>
|
|
|
|
|
<MSBuildDeveloperNamespace>
|
|
|
|
|
<Namespace Prefix="x" Uri="http://schemas.microsoft.com/developer/msbuild/2003"/>
|
|
|
|
|
</MSBuildDeveloperNamespace>
|
|
|
|
|
</PropertyGroup>
|
2018-08-31 04:45:27 +03:00
|
|
|
|
|
2021-07-12 20:35:20 +03:00
|
|
|
|
<ItemGroup>
|
|
|
|
|
<_VSIXInput Include="..\src\SolutionTemplate\UnoSolutionTemplate.VSIX.2019\source.extension.vsixmanifest" />
|
|
|
|
|
<_VSIXInput Include="..\src\SolutionTemplate\UnoSolutionTemplate.VSIX.2022\source.extension.vsixmanifest" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
<XmlPoke XmlInputPath="%(_VSIXInput.Identity)"
|
2021-04-14 23:07:58 +03:00
|
|
|
|
Query="/x:PackageManifest/x:Metadata/x:Identity/@Version"
|
2019-11-29 14:55:59 +03:00
|
|
|
|
Value="$(GITVERSION_MajorMinorPatch).$(GITVERSION_CommitsSinceVersionSource)"
|
2021-04-14 23:07:58 +03:00
|
|
|
|
Namespaces="$(VSXNamespace)"
|
|
|
|
|
/>
|
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
|
|
|
|
|
2020-08-21 17:57:22 +03:00
|
|
|
|
<_legacyProject Include="..\src\SolutionTemplate\**\*.Uwp.csproj"/>
|
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"/>
|
2020-09-09 15:13:23 +03:00
|
|
|
|
<_legacyProject Include="..\src\SolutionTemplate\**\*.Wpf.Host.csproj"/>
|
2020-04-27 15:36:27 +03:00
|
|
|
|
|
2021-07-12 20:35:20 +03:00
|
|
|
|
<_sdkProject Include="..\src\SolutionTemplate\**\*.Mobile.csproj"/>
|
2020-04-27 15:36:27 +03:00
|
|
|
|
<_sdkProject Include="..\src\SolutionTemplate\**\*.Wasm.csproj"/>
|
2020-08-09 23:04:13 +03:00
|
|
|
|
<_sdkProject Include="..\src\SolutionTemplate\**\*.Skia.*.csproj"/>
|
2020-04-27 15:36:27 +03:00
|
|
|
|
<_sdkProject Include="..\src\SolutionTemplate\UnoLibraryTemplate\CrossTargetedLibrary.csproj"/>
|
2021-07-23 16:07:07 +03:00
|
|
|
|
<_sdkProject Include="..\src\SolutionTemplate\UnoLibraryTemplate.net6\CrossTargetedLibrary.csproj"/>
|
2022-05-19 18:19:52 +03:00
|
|
|
|
<_sdkProject Include="..\src\SolutionTemplate\UnoLibraryTemplate.net6\CrossTargetedLibrary.csproj"/>
|
2020-07-25 00:36:05 +03:00
|
|
|
|
|
|
|
|
|
<_sdkProject Include="..\src\SolutionTemplate\Uno.ProjectTemplates.Dotnet\content\unolib-crossruntime\UnoCrossRuntimeLib\*.csproj"/>
|
2019-11-29 14:55:59 +03:00
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
2021-04-14 23:07:58 +03:00
|
|
|
|
<XmlPoke XmlInputPath="%(_legacyProject.Identity)"
|
|
|
|
|
Query="//x:PackageReference[@Include='Uno.UI.RemoteControl']/@Version"
|
2021-01-25 16:04:26 +03:00
|
|
|
|
Value="$(GitVersion_SemVer)"
|
2021-04-14 23:07:58 +03:00
|
|
|
|
Namespaces="$(MSBuildDeveloperNamespace)"
|
|
|
|
|
/>
|
2020-04-27 15:36:27 +03:00
|
|
|
|
|
2021-04-14 23:07:58 +03:00
|
|
|
|
<XmlPoke XmlInputPath="%(_legacyProject.Identity)"
|
|
|
|
|
Query="//x:PackageReference[@Include='Uno.UI']/@Version"
|
2021-01-25 16:04:26 +03:00
|
|
|
|
Value="$(GitVersion_SemVer)"
|
2021-04-14 23:07:58 +03:00
|
|
|
|
Namespaces="$(MSBuildDeveloperNamespace)"
|
|
|
|
|
/>
|
2021-11-15 01:36:24 +03:00
|
|
|
|
|
2021-11-14 23:33:17 +03:00
|
|
|
|
<XmlPoke XmlInputPath="%(_legacyProject.Identity)"
|
|
|
|
|
Query="//x:PackageReference[@Include='Uno.UI.Adapter.Microsoft.Extensions.Logging']/@Version"
|
|
|
|
|
Value="$(GitVersion_SemVer)"
|
|
|
|
|
Namespaces="$(MSBuildDeveloperNamespace)"
|
|
|
|
|
/>
|
2019-09-09 23:36:42 +03:00
|
|
|
|
|
2022-05-19 18:19:52 +03:00
|
|
|
|
<!-- Update templates for Uno.UI -->
|
2021-04-14 23:07:58 +03:00
|
|
|
|
<XmlPoke XmlInputPath="%(_sdkProject.Identity)"
|
|
|
|
|
Query="//PackageReference[@Include='Uno.UI']/@Version"
|
2021-01-25 16:04:26 +03:00
|
|
|
|
Value="$(GitVersion_SemVer)" />
|
2021-04-14 23:07:58 +03:00
|
|
|
|
<XmlPoke XmlInputPath="%(_sdkProject.Identity)"
|
|
|
|
|
Query="//PackageReference[@Include='Uno.UI.RemoteControl']/@Version"
|
2021-01-25 16:04:26 +03:00
|
|
|
|
Value="$(GitVersion_SemVer)" />
|
2021-04-14 23:07:58 +03:00
|
|
|
|
<XmlPoke XmlInputPath="%(_sdkProject.Identity)"
|
|
|
|
|
Query="//PackageReference[@Include='Uno.UI.WebAssembly']/@Version"
|
2021-01-25 16:04:26 +03:00
|
|
|
|
Value="$(GitVersion_SemVer)" />
|
2021-04-14 23:07:58 +03:00
|
|
|
|
<XmlPoke XmlInputPath="%(_sdkProject.Identity)"
|
|
|
|
|
Query="//PackageReference[@Include='Uno.UI.Skia.Gtk']/@Version"
|
2021-01-25 16:04:26 +03:00
|
|
|
|
Value="$(GitVersion_SemVer)" />
|
2021-04-14 23:07:58 +03:00
|
|
|
|
<XmlPoke XmlInputPath="%(_sdkProject.Identity)"
|
|
|
|
|
Query="//PackageReference[@Include='Uno.UI.Skia.Linux.FrameBuffer']/@Version"
|
2021-05-26 04:16:03 +03:00
|
|
|
|
Value="$(GitVersion_SemVer)" />
|
2021-04-14 23:07:58 +03:00
|
|
|
|
<XmlPoke XmlInputPath="%(_sdkProject.Identity)"
|
|
|
|
|
Query="//PackageReference[@Include='Uno.UI.Skia.Wpf']/@Version"
|
2021-01-25 16:04:26 +03:00
|
|
|
|
Value="$(GitVersion_SemVer)" />
|
2021-04-14 23:07:58 +03:00
|
|
|
|
<XmlPoke XmlInputPath="%(_sdkProject.Identity)"
|
|
|
|
|
Query="//PackageReference[@Include='Uno.UI.Skia.Tizen']/@Version"
|
2021-01-25 16:04:26 +03:00
|
|
|
|
Value="$(GitVersion_SemVer)" />
|
2021-04-14 23:07:58 +03:00
|
|
|
|
<XmlPoke XmlInputPath="%(_sdkProject.Identity)"
|
|
|
|
|
Query="//PackageReference[@Include='Uno.UI.Runtime.WebAssembly']/@Version"
|
2021-01-25 16:04:26 +03:00
|
|
|
|
Value="$(GitVersion_SemVer)" />
|
2022-05-19 18:19:52 +03:00
|
|
|
|
|
|
|
|
|
<!-- Update templates for Uno.WinUI -->
|
2021-11-14 07:58:41 +03:00
|
|
|
|
<XmlPoke XmlInputPath="%(_sdkProject.Identity)"
|
2022-05-19 18:19:52 +03:00
|
|
|
|
Query="//PackageReference[@Include='Uno.WinUI']/@Version"
|
2021-11-14 07:58:41 +03:00
|
|
|
|
Value="$(GitVersion_SemVer)" />
|
2022-05-19 18:19:52 +03:00
|
|
|
|
<XmlPoke XmlInputPath="%(_sdkProject.Identity)"
|
|
|
|
|
Query="//PackageReference[@Include='Uno.WinUI.RemoteControl']/@Version"
|
|
|
|
|
Value="$(GitVersion_SemVer)" />
|
|
|
|
|
<XmlPoke XmlInputPath="%(_sdkProject.Identity)"
|
|
|
|
|
Query="//PackageReference[@Include='Uno.WinUI.WebAssembly']/@Version"
|
|
|
|
|
Value="$(GitVersion_SemVer)" />
|
|
|
|
|
<XmlPoke XmlInputPath="%(_sdkProject.Identity)"
|
|
|
|
|
Query="//PackageReference[@Include='Uno.WinUI.Skia.Gtk']/@Version"
|
|
|
|
|
Value="$(GitVersion_SemVer)" />
|
|
|
|
|
<XmlPoke XmlInputPath="%(_sdkProject.Identity)"
|
|
|
|
|
Query="//PackageReference[@Include='Uno.WinUI.Skia.Linux.FrameBuffer']/@Version"
|
|
|
|
|
Value="$(GitVersion_SemVer)" />
|
|
|
|
|
<XmlPoke XmlInputPath="%(_sdkProject.Identity)"
|
|
|
|
|
Query="//PackageReference[@Include='Uno.WinUI.Skia.Wpf']/@Version"
|
|
|
|
|
Value="$(GitVersion_SemVer)" />
|
|
|
|
|
<XmlPoke XmlInputPath="%(_sdkProject.Identity)"
|
|
|
|
|
Query="//PackageReference[@Include='Uno.WinUI.Skia.Tizen']/@Version"
|
|
|
|
|
Value="$(GitVersion_SemVer)" />
|
|
|
|
|
<XmlPoke XmlInputPath="%(_sdkProject.Identity)"
|
|
|
|
|
Query="//PackageReference[@Include='Uno.WinUI.Runtime.WebAssembly']/@Version"
|
|
|
|
|
Value="$(GitVersion_SemVer)" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Update templates for generic packages -->
|
|
|
|
|
<XmlPoke XmlInputPath="%(_sdkProject.Identity)"
|
|
|
|
|
Query="//PackageReference[@Include='Uno.UI.Adapter.Microsoft.Extensions.Logging']/@Version"
|
|
|
|
|
Value="$(GitVersion_SemVer)" /> </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>
|
2021-07-21 21:39:59 +03:00
|
|
|
|
<_Sha1Replace Include="..\src\SourceGenerators\Uno.UI.Tasks\**\*.cs" />
|
2019-04-16 15:26:35 +03:00
|
|
|
|
<_Sha1Replace Include="..\src\SourceGenerators\Uno.UI.Tasks\Uno.UI.Tasks.csproj" />
|
|
|
|
|
<_Sha1Replace Include="..\src\SourceGenerators\Uno.UI.Tasks\Content\Uno.UI.Tasks.targets" />
|
|
|
|
|
</ItemGroup>
|
2018-08-31 04:45:27 +03:00
|
|
|
|
|
2021-05-14 22:28:22 +03:00
|
|
|
|
<WriteLinesToFile
|
2021-05-14 22:33:07 +03:00
|
|
|
|
File="%(_Sha1Replace.Identity)"
|
2021-07-08 19:17:54 +03:00
|
|
|
|
Lines="$([System.IO.File]::ReadAllText(%(_Sha1Replace.Identity)).Replace('v0','v$(GITVERSION_VersionSourceSha)'))"
|
2021-05-14 22:28:22 +03:00
|
|
|
|
Overwrite="true" />
|
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
|
|
|
|
|
2021-04-14 23:07:58 +03:00
|
|
|
|
<MSBuild Properties="Configuration=Release_NoSamples;InformationalVersion=$(GITVERSION_InformationalVersion);CI_Build=true;_IsCIBuild=true;PackageOutputPath=$(BUILD_ARTIFACTSTAGINGDIRECTORY)\vslatest-generic;PackageVersion=$(GITVERSION_SemVer)"
|
|
|
|
|
Projects="..\src\Uno.UI-packages-no-net6.slnf"
|
|
|
|
|
Targets="Restore;Build"
|
|
|
|
|
RebaseOutputs="false"
|
|
|
|
|
BuildInParallel="true" />
|
|
|
|
|
|
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
|
|
<Target Name="BuildCINet6">
|
|
|
|
|
|
2021-11-05 18:19:43 +03:00
|
|
|
|
<MSBuild Properties="Configuration=Release;InformationalVersion=$(GITVERSION_InformationalVersion);CI_Build=true;IS_NET6_BUILD=true;_IsCIBuild=true;PackageOutputPath=$(BUILD_ARTIFACTSTAGINGDIRECTORY)\vslatest-net6;PackageVersion=$(GITVERSION_SemVer)"
|
2021-04-14 23:07:58 +03:00
|
|
|
|
Projects="..\src\Uno.UI-net6-only.slnf"
|
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 -->
|
2021-04-14 23:07:58 +03:00
|
|
|
|
<MSBuild Properties="Configuration=Release;InformationalVersion=$(GITVERSION_InformationalVersion);CI_Build=true;_IsCIBuild=true" Projects="..\src\Uno.UI-packages-no-net6.slnf" 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" />
|
2021-12-07 00:17:14 +03:00
|
|
|
|
<MixinTargetFrameworks Include="MonoAndroid12.0" />
|
2020-05-13 20:57:53 +03:00
|
|
|
|
<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">
|
2021-11-12 21:29:22 +03:00
|
|
|
|
|
|
|
|
|
<MSBuild Properties="Configuration=Debug"
|
|
|
|
|
Projects="..\src\Uno.Foundation.Logging\Uno.Foundation.Logging.csproj"
|
|
|
|
|
Targets="Restore;Build"
|
|
|
|
|
RebaseOutputs="false"
|
|
|
|
|
BuildInParallel="true" />
|
|
|
|
|
|
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" />
|
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>
|
|
|
|
|
|
2021-07-12 20:35:20 +03:00
|
|
|
|
<Target Name="PublishVSIX2019" Condition="'$(UNO_UWP_BUILD)'=='true'">
|
|
|
|
|
<Copy SourceFiles="..\src\SolutionTemplate\UnoSolutionTemplate.VSIX.2019\bin\Release\UnoSolutionTemplate.VSIX.vsix"
|
|
|
|
|
DestinationFiles="$(OutputDir)\vslatest-generic\UnoPlatform-$(GITVERSION_SemVer).x86.vsix" />
|
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
|
|
<Target Name="PublishVSIX2022">
|
|
|
|
|
<Copy SourceFiles="..\src\SolutionTemplate\UnoSolutionTemplate.VSIX.2022\bin\Release\UnoSolutionTemplate.VSIX.2022.vsix"
|
|
|
|
|
DestinationFiles="$(OutputDir)\vslatest\UnoPlatform-$(GITVERSION_SemVer).x64.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>
|
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>
|
|
|
|
|
<_NuspecFiles Include=".\Uno.WinUI.nuspec" />
|
|
|
|
|
<_NuspecFiles Include=".\Uno.WinUI.Lottie.nuspec" />
|
2021-07-30 00:12:57 +03:00
|
|
|
|
<_NuspecFiles Include=".\Uno.WinUI.MSAL.nuspec" />
|
2020-07-17 22:10:21 +03:00
|
|
|
|
<_NuspecFiles Include=".\Uno.WinUI.RemoteControl.nuspec" />
|
|
|
|
|
<_NuspecFiles Include=".\Uno.WinUI.Skia.Gtk.nuspec" />
|
2021-05-26 04:16:03 +03:00
|
|
|
|
<_NuspecFiles Include=".\Uno.WinUI.Skia.Linux.FrameBuffer.nuspec" />
|
2020-07-17 22:10:21 +03:00
|
|
|
|
<_NuspecFiles Include=".\Uno.WinUI.Skia.Wpf.nuspec" />
|
2020-09-09 20:14:35 +03:00
|
|
|
|
<_NuspecFiles Include=".\Uno.WinUI.Skia.Tizen.nuspec" />
|
2020-07-17 22:10:21 +03:00
|
|
|
|
<_NuspecFiles Include=".\Uno.WinUI.WebAssembly.nuspec" />
|
2021-11-13 07:04:05 +03:00
|
|
|
|
<_NuspecFiles Include=".\Uno.WinUI.WebAssembly.nuspec" />
|
|
|
|
|
<_NuspecFiles Include=".\Uno.Foundation.Logging.nuspec" />
|
|
|
|
|
<_NuspecFiles Include=".\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)" />
|
2020-05-13 20:57:53 +03:00
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
2020-09-09 20:14:35 +03:00
|
|
|
|
<!-- Update Uno.WinUI.Runtime.Skia.Tizen 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.Tizen']/@version" Value="$(GITVERSION_SemVer)" Namespaces="$(NugetNamespace)" />
|
2020-09-09 20:14:35 +03:00
|
|
|
|
|
2021-11-13 07:04:05 +03:00
|
|
|
|
<!-- Update Uno.WinUI.Runtime.Skia.Tizen 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 -->
|
2021-07-06 15:43:50 +03:00
|
|
|
|
<XmlPoke XmlInputPath=".\Uno.WinUI.nuspec" Query="/x:package/x:metadata/x:id" Value="$(PackageNamePrefix)" Namespaces="$(NugetNamespace)" />
|
|
|
|
|
<XmlPoke XmlInputPath=".\Uno.WinUI.Lottie.nuspec" Query="/x:package/x:metadata/x:id" Value="$(PackageNamePrefix).Lottie" Namespaces="$(NugetNamespace)" />
|
2021-07-30 00:12:57 +03:00
|
|
|
|
<XmlPoke XmlInputPath=".\Uno.WinUI.MSAL.nuspec" Query="/x:package/x:metadata/x:id" Value="$(PackageNamePrefix).MSAL" Namespaces="$(NugetNamespace)" />
|
2021-07-06 15:43:50 +03:00
|
|
|
|
<XmlPoke XmlInputPath=".\Uno.WinUI.RemoteControl.nuspec" Query="/x:package/x:metadata/x:id" Value="$(PackageNamePrefix).RemoteControl" Namespaces="$(NugetNamespace)" />
|
|
|
|
|
<XmlPoke XmlInputPath=".\Uno.WinUI.Skia.Gtk.nuspec" Query="/x:package/x:metadata/x:id" Value="$(PackageNamePrefix).Skia.Gtk" Namespaces="$(NugetNamespace)" />
|
|
|
|
|
<XmlPoke XmlInputPath=".\Uno.WinUI.Skia.Linux.FrameBuffer.nuspec" Query="/x:package/x:metadata/x:id" Value="$(PackageNamePrefix).Skia.Linux.FrameBuffer" Namespaces="$(NugetNamespace)" />
|
|
|
|
|
<XmlPoke XmlInputPath=".\Uno.WinUI.Skia.Wpf.nuspec" Query="/x:package/x:metadata/x:id" Value="$(PackageNamePrefix).Skia.Wpf" Namespaces="$(NugetNamespace)" />
|
|
|
|
|
<XmlPoke XmlInputPath=".\Uno.WinUI.Skia.Tizen.nuspec" Query="/x:package/x:metadata/x:id" Value="$(PackageNamePrefix).Skia.Tizen" Namespaces="$(NugetNamespace)" />
|
|
|
|
|
<XmlPoke XmlInputPath=".\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 -->
|
2021-07-06 15:43:50 +03:00
|
|
|
|
<XmlPoke XmlInputPath=".\Uno.WinUI.nuspec" Query="/x:package/x:metadata/x:title" Value="$(PackageNamePrefix)" Namespaces="$(NugetNamespace)" />
|
|
|
|
|
<XmlPoke XmlInputPath=".\Uno.WinUI.Lottie.nuspec" Query="/x:package/x:metadata/x:title" Value="$(PackageNamePrefix).Lottie" Namespaces="$(NugetNamespace)" />
|
2021-07-30 00:12:57 +03:00
|
|
|
|
<XmlPoke XmlInputPath=".\Uno.WinUI.MSAL.nuspec" Query="/x:package/x:metadata/x:title" Value="$(PackageNamePrefix).MSAL" Namespaces="$(NugetNamespace)" />
|
2021-07-06 15:43:50 +03:00
|
|
|
|
<XmlPoke XmlInputPath=".\Uno.WinUI.RemoteControl.nuspec" Query="/x:package/x:metadata/x:title" Value="$(PackageNamePrefix).RemoteControl" Namespaces="$(NugetNamespace)" />
|
|
|
|
|
<XmlPoke XmlInputPath=".\Uno.WinUI.Skia.Gtk.nuspec" Query="/x:package/x:metadata/x:title" Value="$(PackageNamePrefix).Skia.Gtk" Namespaces="$(NugetNamespace)" />
|
|
|
|
|
<XmlPoke XmlInputPath=".\Uno.WinUI.Skia.Linux.FrameBuffer.nuspec" Query="/x:package/x:metadata/x:title" Value="$(PackageNamePrefix).Skia.Linux.FrameBuffer" Namespaces="$(NugetNamespace)" />
|
|
|
|
|
<XmlPoke XmlInputPath=".\Uno.WinUI.Skia.Wpf.nuspec" Query="/x:package/x:metadata/x:title" Value="$(PackageNamePrefix).Skia.Wpf" Namespaces="$(NugetNamespace)" />
|
|
|
|
|
<XmlPoke XmlInputPath=".\Uno.WinUI.Skia.Tizen.nuspec" Query="/x:package/x:metadata/x:title" Value="$(PackageNamePrefix).Skia.Tizen" Namespaces="$(NugetNamespace)" />
|
|
|
|
|
<XmlPoke XmlInputPath=".\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)" />
|
|
|
|
|
<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.Skia.Tizen']/@id" Value="$(PackageNamePrefix).Runtime.Skia.Tizen" 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)" />
|
2020-07-17 22:10:21 +03:00
|
|
|
|
|
|
|
|
|
<!-- 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'"/>
|
2021-05-14 22:42:24 +03:00
|
|
|
|
<XmlPoke XmlInputPath=".\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
|
|
|
|
|
2021-07-22 19:42:12 +03:00
|
|
|
|
<!-- Adjust build targets file for Windows targets -->
|
2021-05-14 22:42:24 +03:00
|
|
|
|
<XmlPoke XmlInputPath=".\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'"/>
|
2022-03-08 12:16:24 +03:00
|
|
|
|
<XmlPoke XmlInputPath=".\Uno.WinUI.nuspec" Query="/x:package/x:files/x:file[@target='buildTransitive\uap10.0.18362\uno.winui.targets']/@target" Value="buildTransitive\uap10.0.18362\$(PackageNamePrefix).targets" Namespaces="$(NugetNamespace)" Condition="'$(UNO_UWP_BUILD)'=='true'"/>
|
2021-07-23 15:47:28 +03:00
|
|
|
|
<XmlPoke XmlInputPath=".\Uno.WinUI.nuspec" Query="/x:package/x:files/x:file[@target='buildTransitive\net5.0-windows\uno.winui.targets']/@target" Value="buildTransitive\net5.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-->
|
|
|
|
|
<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'"/>
|
|
|
|
|
|
2021-05-14 22:42:24 +03:00
|
|
|
|
<XmlPoke XmlInputPath=".\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=".\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-->
|
|
|
|
|
<Move SourceFiles=".\uno.winui.Skia.Linux.FrameBuffer.targets" DestinationFiles=".\$(PackageNamePrefix).Skia.Linux.FrameBuffer.targets" Condition="'$(UNO_UWP_BUILD)'=='true'"/>
|
|
|
|
|
<Move SourceFiles=".\uno.winui.Skia.Linux.FrameBuffer.props" DestinationFiles=".\$(PackageNamePrefix).Skia.Linux.FrameBuffer.props" Condition="'$(UNO_UWP_BUILD)'=='true'"/>
|
|
|
|
|
|
2021-07-06 18:34:59 +03:00
|
|
|
|
<XmlPoke XmlInputPath=".\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=".\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
|
|
|
|
|
2020-09-09 20:14:35 +03:00
|
|
|
|
<!-- Skia Tizen targets/props-->
|
|
|
|
|
<Move SourceFiles=".\uno.winui.Skia.Tizen.targets" DestinationFiles=".\$(PackageNamePrefix).Skia.Tizen.targets" Condition="'$(UNO_UWP_BUILD)'=='true'"/>
|
|
|
|
|
<Move SourceFiles=".\uno.winui.Skia.Tizen.props" DestinationFiles=".\$(PackageNamePrefix).Skia.Tizen.props" Condition="'$(UNO_UWP_BUILD)'=='true'"/>
|
|
|
|
|
|
2021-05-14 22:42:24 +03:00
|
|
|
|
<XmlPoke XmlInputPath=".\uno.winui.Skia.Tizen.nuspec" Query="/x:package/x:files/x:file[@src='Uno.WinUI.Skia.Tizen.targets']/@src" Value="$(PackageNamePrefix).Skia.Tizen.targets" Namespaces="$(NugetNamespace)" Condition="'$(UNO_UWP_BUILD)'=='true'"/>
|
|
|
|
|
<XmlPoke XmlInputPath=".\uno.winui.Skia.Tizen.nuspec" Query="/x:package/x:files/x:file[@src='Uno.WinUI.Skia.Tizen.props']/@src" Value="$(PackageNamePrefix).Skia.Tizen.props" Namespaces="$(NugetNamespace)" Condition="'$(UNO_UWP_BUILD)'=='true'"/>
|
2020-09-09 20:14:35 +03:00
|
|
|
|
|
2020-07-17 22:10:21 +03:00
|
|
|
|
<!-- 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'"/>
|
|
|
|
|
|
2021-05-14 22:42:24 +03:00
|
|
|
|
<XmlPoke XmlInputPath=".\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=".\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-->
|
|
|
|
|
<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'"/>
|
|
|
|
|
|
2021-05-14 22:42:24 +03:00
|
|
|
|
<XmlPoke XmlInputPath=".\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=".\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 -->
|
|
|
|
|
<Move SourceFiles="..\src\Uno.UI.RemoteControl\buildTransitive\Uno.UI.RemoteControl.targets" DestinationFiles="..\src\Uno.UI.RemoteControl\buildTransitive\$(PackageNamePrefix).RemoteControl.targets" Condition="'$(UNO_UWP_BUILD)'!='true'"/>
|
|
|
|
|
|
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" />
|
|
|
|
|
|
|
|
|
|
<!-- 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" />
|
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" />
|
2020-09-09 20:14:35 +03:00
|
|
|
|
<Move SourceFiles="..\src\Uno.UI.Runtime.Skia.Tizen\buildTransitive\Uno.UI.Runtime.Skia.Tizen.props" DestinationFiles="..\src\Uno.UI.Runtime.Skia.Tizen\buildTransitive\$(PackageNamePrefix).Runtime.Skia.Tizen.props" />
|
|
|
|
|
<Move SourceFiles="..\src\Uno.UI.Runtime.Skia.Tizen\buildTransitive\Uno.UI.Runtime.Skia.Tizen.targets" DestinationFiles="..\src\Uno.UI.Runtime.Skia.Tizen\buildTransitive\$(PackageNamePrefix).Runtime.Skia.Tizen.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>
|
|
|
|
|
|
|
|
|
|
<Target Name="BuildNuGetPackage">
|
2021-02-02 00:48:30 +03:00
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<NuSpecProperties>NoWarn=NU5100,NU5105,NU5131;branch=$(GITVERSION_BranchName);commitid=$(GITVERSION_VersionSourceSha)</NuSpecProperties>
|
2021-04-12 22:43:57 +03:00
|
|
|
|
|
2022-03-08 12:16:24 +03:00
|
|
|
|
<NuSpecProperties Condition="'$(UNO_UWP_BUILD)'=='true'">$(NuSpecProperties);winuisourcepath=uap10.0.18362;winuitargetpath=UAP</NuSpecProperties>
|
2021-04-12 22:43:57 +03:00
|
|
|
|
<NuSpecProperties Condition="'$(UNO_UWP_BUILD)'!='true'">$(NuSpecProperties);winuisourcepath=net5.0-windows10.0.18362.0;winuitargetpath=net5.0-windows10.0.18362.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 -->
|
|
|
|
|
<Error Text="The Uno.UI.Toolkit PRI file is not present in src\Uno.UI.Toolkit\bin\Release"
|
2022-03-08 12:16:24 +03:00
|
|
|
|
Condition="'$(UNO_UWP_BUILD)'=='true' and !exists('..\src\Uno.UI.Toolkit\bin\Release\uap10.0.18362\Uno.UI.Toolkit.pri')" />
|
2021-07-29 22:48:09 +03:00
|
|
|
|
<Error Text="The Uno.UI.Toolkit PRI file is not present in src\Uno.UI.Toolkit\bin\Release"
|
|
|
|
|
Condition="'$(UNO_UWP_BUILD)'!='true' and !exists('..\src\Uno.UI.Toolkit\bin\Release\net5.0-windows10.0.18362.0\Uno.UI.Toolkit.pri')" />
|
|
|
|
|
|
2021-02-02 00:48:30 +03:00
|
|
|
|
<!-- Create the packages -->
|
|
|
|
|
<Exec Command="$(NuGetBin) pack Uno.WinUI.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
|
|
|
|
|
<Exec Command="$(NuGetBin) pack Uno.WinUI.Lottie.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
|
2021-07-30 00:12:57 +03:00
|
|
|
|
<Exec Command="$(NuGetBin) pack Uno.WinUI.MSAL.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
|
2021-02-02 00:48:30 +03:00
|
|
|
|
<Exec Command="$(NuGetBin) pack Uno.WinUI.RemoteControl.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
|
|
|
|
|
<Exec Command="$(NuGetBin) pack Uno.WinUI.Skia.Gtk.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
|
2021-05-26 04:16:03 +03:00
|
|
|
|
<Exec Command="$(NuGetBin) pack Uno.WinUI.Skia.Linux.FrameBuffer.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
|
2021-02-02 00:48:30 +03:00
|
|
|
|
<Exec Command="$(NuGetBin) pack Uno.WinUI.Skia.Tizen.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
|
|
|
|
|
<Exec Command="$(NuGetBin) pack Uno.WinUI.Skia.Wpf.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
|
|
|
|
|
<Exec Command="$(NuGetBin) pack Uno.WinUI.WebAssembly.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
|
2021-11-13 07:04:05 +03:00
|
|
|
|
<Exec Command="$(NuGetBin) pack Uno.Foundation.Logging.nuspec -Verbosity Detailed -Version "$(GITVERSION_SemVer)" -Properties "$(NuSpecProperties)"" />
|
|
|
|
|
<Exec Command="$(NuGetBin) pack 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
|
|
|
|
|
2021-08-10 17:50:00 +03:00
|
|
|
|
<Target Name="ValidatePackage" AfterTargets="BuildNuGetPackage" Condition="'$(BuildingInsideVisualStudio)'=='' and '$(UNO_UWP_BUILD)'=='true'">
|
2020-05-13 20:57:53 +03:00
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<PackageNamePrefix>Uno.WinUI</PackageNamePrefix>
|
|
|
|
|
<PackageNamePrefix Condition="'$(UNO_UWP_BUILD)'=='true'">Uno.UI</PackageNamePrefix>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
2022-04-13 00:06:53 +03:00
|
|
|
|
<Exec Command="dotnet tool install --tool-path $(MSBuildThisFileDirectory)\tools Uno.PackageDiff --version 1.1.0-dev.11" IgnoreExitCode="true" />
|
2021-01-25 16:04:26 +03:00
|
|
|
|
<Exec Command="$(MSBuildThisFileDirectory)\tools\generatepkgdiff.exe --base=$(PackageNamePrefix) --other=$(PackageNamePrefix).$(GITVERSION_SemVer).nupkg --diffignore=PackageDiffIgnore.xml --outfile=$(OutputDir)\ApiDiff.$(GITVERSION_SemVer).md" />
|
2020-07-17 22:10:21 +03:00
|
|
|
|
</Target>
|
|
|
|
|
|
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
|
|
|
|
|
2018-07-10 20:23:32 +03:00
|
|
|
|
</Project>
|