maui/eng/Versions.targets

70 строки
2.9 KiB
Plaintext
Исходник Обычный вид История

<Project>
<PropertyGroup>
<NightlyTag>nightly</NightlyTag>
</PropertyGroup>
Make .NET 6 Packable (#13881) * Add some common nupkg properties to everything * Remove project property refactored into directory build props * Remove properties now in common dir build props * Add net6 version of project * More net6 * Only target netstandard2.0 now net4* is no longer needed as there's no more vs2017 support * Clean up strong naming a bit * Update dependencies * Package all the things for build tasks in the -t:Pack * Add more net6 project versions * Clean up whitespace * Needed moar NET6 * Name fixes * Added meta project for packaging and package script * Remove assembly copyright (now duplicates) * Add resizetizer, add params to package script * Disable strong naming for now We need to re-evaluate how we do this a bit, we should probably use the `al` tool to do it now, and I believe the StrongNamer package may not work anymore, but we can do the same thing in a custom target at a later date. * Fix path to tasks assembly * don't build ios on android specific project * Finish rename of toolbox file * - add cake * - fix cake extras * fix the copy for the IDE * Try packing on CI * versions baby! * build release * this should od it * this * oops * Move to an empty folder * Use new symbol formats * no symbols for build tasks and the head * symbol all the things * Compiler error with commented out code XD * oopsies * only build transitive * Try this * log everything * This might work * REPORTS * previews * needed * versions * duh * Update build.cake Co-authored-by: Shane Neuville <shneuvil@microsoft.com> Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2021-03-02 20:36:17 +03:00
<PropertyGroup>
<CoreCompileDependsOn>
SetVersions;
$(CoreCompileDependsOn);
</CoreCompileDependsOn>
<GenerateNuspecDependsOn>
SetVersions;
$(GenerateNuspecDependsOn);
</GenerateNuspecDependsOn>
Enable unit tests (#13864) * [Build] Remove old steps * Fix reference of unit tests cspro * Enable xaml unit tests * [Build] Add build of xaml unit tests * Try fix targets * Fix Forms naming * More naming fixes * Revert versions * Remove .Core * More .Core removals and Fix Platform references * Add RootNamespace to Build.Tasks * Fix more Xamarin.Forms old usage * Fix dll on build.targets * Fix _XFBuildTasksLocation * More fixes to _MauiBuildTasksLocation * More fixes _MauiBuildTasksLocation * Fix _MauiBuildTasksLocation * remove debug info * Remove issues for now * Rename maps namespace * Fix Assembly tests * Fix more targets * More map rename fixes * Fix xaml reference on unit tests * Fix MauiXamlCValidateOnly naming * More MauiXamlCValidateOnly * Add xaml page to sample * Fix namespace on sample page * oh, yeah * Fix sample references * Try run on release the xaml unit tests * Try continueOnerror * Update build-windows.yml * added via the directory props * ws * We mights need this * I think I did this * This can be reused * 🤦‍♀️ * this as well after the peppers PR * Fix some bad renames * i see * Fix merge * Fix sample * Remove FromSource * Add the packages * this * Yaysies! * Fix all the non-msbuild tests * Adding things back and gallery * this * Build the tasks first * Got the Android control gallery running * remove from the sln * Xaml pages * Reference XAML * this * better XAML * this * restore * maybe * include correctly * symbols * Try set the versions * remove unused steps templates versions things more cool yay * Updating code to pre-fix xaml * Now we do the targets * Revert "Now we do the targets" This reverts commit 2ce4984d48a00c1eab8037cdd8a35690feb0038e. * maybe this? * We have to set the variables * Add the control gallery and xaml unit tests * This might help * xaml page * Try use matrix for build/release macOS * Fix variables * Fix end of script * use matrix for build on windows * Fix Artifact upload at same time Co-authored-by: Stephane Delcroix <stephane@delcroix.org> Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2021-03-03 18:20:03 +03:00
<GetPackageVersionDependsOn>
SetVersions;
$(GetPackageVersionDependsOn);
</GetPackageVersionDependsOn>
<SetVersionsBefore>
GetAssemblyVersion;
$(SetVersionsBefore);
</SetVersionsBefore>
<SetVersionsDependsOn>
$(SetVersionsDependsOn);
</SetVersionsDependsOn>
Make .NET 6 Packable (#13881) * Add some common nupkg properties to everything * Remove project property refactored into directory build props * Remove properties now in common dir build props * Add net6 version of project * More net6 * Only target netstandard2.0 now net4* is no longer needed as there's no more vs2017 support * Clean up strong naming a bit * Update dependencies * Package all the things for build tasks in the -t:Pack * Add more net6 project versions * Clean up whitespace * Needed moar NET6 * Name fixes * Added meta project for packaging and package script * Remove assembly copyright (now duplicates) * Add resizetizer, add params to package script * Disable strong naming for now We need to re-evaluate how we do this a bit, we should probably use the `al` tool to do it now, and I believe the StrongNamer package may not work anymore, but we can do the same thing in a custom target at a later date. * Fix path to tasks assembly * don't build ios on android specific project * Finish rename of toolbox file * - add cake * - fix cake extras * fix the copy for the IDE * Try packing on CI * versions baby! * build release * this should od it * this * oops * Move to an empty folder * Use new symbol formats * no symbols for build tasks and the head * symbol all the things * Compiler error with commented out code XD * oopsies * only build transitive * Try this * log everything * This might work * REPORTS * previews * needed * versions * duh * Update build.cake Co-authored-by: Shane Neuville <shneuvil@microsoft.com> Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2021-03-02 20:36:17 +03:00
</PropertyGroup>
<Target Name="SetVersions"
BeforeTargets="$(SetVersionsBefore)"
DependsOnTargets="$(SetVersionsDependsOn)"
Returns="$(Version)">
<PropertyGroup>
<PreReleaseVersionLabel Condition="$(CI) and '$(BUILD_REASON)' == 'Schedule'">$(NightlyTag)</PreReleaseVersionLabel>
</PropertyGroup>
<ItemGroup>
<VersionMetadata Condition="$(CI) and '$(BUILD_REASON)' == 'PullRequest'"
Include="pr.$(SYSTEM_PULLREQUEST_PULLREQUESTNUMBER)"/>
[ci] Move to arcade , remove GitInfo and Mono dependencies (#21487) * try add internal * needs missing paths * [arcade] Add arcade files * Try build with arcade * Update internal * try other pool * Update default image for sdl * try same pool for pack * Update arcade release * Remove gitinfo and update global.jso * update nuget * try again * More updates * Dont sign * Fix package icon * Update Controls.Build.Tasks.csproj * Update Controls.Build.Tasks.csproj * need set versions * tre * Use ArtifactsBinDir * new binaries folder * isShiping true * more cleanup * add post build * fix * try official * try again * DebugType to portable ? * use one versions * Add publish_build_assets * again * again * Wrap on arcade job * again * use self * again * try again * dupe * remove dupes * add Build Config * More variables * push * Fix merge * update to find the path * Update scripts * Add build config * Update android scripts * Remove more xunit versions * Update xunit * Update versions * update more * try this * Fix versions * Remove the test sdk by default * Can this be false? * No need to reference xunit.runner.visualstudio * IsTestProject to false * Fix more device tests paths * Assembly should be 1.0 * Try fix msbuild tests * Fix file version test * Fix some culture tests * try fix restore for next step * Disable fileversion test * Fix androidtests * Fix android app finding * Fix * maybe this way it lauches * Try compat * Fix versions * Fix image tests * Try without this * Fix build * Update windows.cake * Update windows.cake * Update windows.cake * Update provisioning.csx * remove reference test sdk * remove extra * try fix compat uitests * Fix build * build control gallery uitest with dotnet test * Remove nunit console * Fix pushing test results for compat tests * Set correct property msbuild props * Update arcade * Update Directory.Build.props * Update Version.Details.xml * Fix logs artifacts * update source gen tests * Use PackageIconFullPath so Arcade adds our file * Remove file not used * [ci] Push rollback for branch name * Add Compatibility.UnitTests to sln * Update dotnet.cake * Update AssemblyInfoTests.cs * Update pack.yml * Remove extra files * Update Microsoft.Maui.sln * Update Microsoft.Maui-dev.sln * Update pipeline * Fix internal * Try new catalyst cleanup * Update catalyst * Update iOS cake * Fix Cg-gallery on iOS * try again * Refactor android cake * Fix catalyst not finding the app * Make sure to handle results all platforms * Fix naming and test results --------- Co-authored-by: Rui Marinho <ruimarinho@MSFT-M3-PRO.ihome> Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2024-05-07 15:49:39 +03:00
<VersionMetadata Condition="'$(SourceLinkId)' != ''" Include="sha.$(SourceLinkId)"/>
<VersionMetadata Condition="$(CI)"
Include="azdo.$(BUILD_BUILDID)"/>
</ItemGroup>
<PropertyGroup>
<PackageReferenceVersion>$(PackageVersion)</PackageReferenceVersion>
<VSComponentVersion Condition="'$(PreReleaseVersionLabel)' != ''">$(MajorVersion).$(MinorVersion).$(PatchVersion).$(BUILDVERSION)</VSComponentVersion>
<VSComponentVersion Condition="'$(PreReleaseVersionLabel)' == ''">$(MajorVersion).$(MinorVersion).$(PatchVersion).0</VSComponentVersion>
</PropertyGroup>
<PropertyGroup>
Try build arcade net9 (#25085) * try * try again * Try more build * Fix snupkg * try publish * fix depends * fix * Fix signing * Fix condition * try without this * Try install workloads * add catalyst * Try install .dotnet * Skip install .net * Nowarn * Set java home * try sign * sign dll * dix * more variables * try other * fix * Remove pool changes * Fix path * dotnet * remvoe restore * Again * Try bump arcade * TreatWarningsAsErrors * will this work * Try -warnAsError 0 * again * extra nowarn * Fix variable * Fix _BuildOfficalId * Fix signing * Update arcade * Don t push this * Dont update build number * Add back cake script * Add nuget.config again * Clean signing * try these feeds * less premissions * Try this * Try fix the bin folder * Fix nuget config * Use DotNetTempDirectory for the script * Fix device tests * Add missing variable * We need this * Try this * try this * Add public pipeline * Fix cake * Fix tool * Fix device * try workloads * try fix test * fix sign * more quick * needs t build * Fix windows script * Try workloads * fix location * fix * Try with this * try fix paths * try this again * try use the latest tooling * Revert "try use the latest tooling" This reverts commit 1b337f8b735b03b4403950feff480ba85e891b49. * Update variables.yml * Update DotnetInternal.cs * More fixes * Update build-test-pack.yml * Update latest arcade * Add missing feeds * Remove package source mapping * Update windows.cake * Update windows.cake * Update global.json * Try _SkipUpdateBuildNumber * again * Update variables.yml * Again * Include this * Update vsmanproj * Nove to arcade ne9 * Update rtm * Dont build workloads * Update rtm * Update NuGet.config * Update global.json * Update Versions.props * Update pack.yml * Try rtm ios * try windows again * Fix folder for dotnet location * Update windows.cake
2024-10-15 14:51:43 +03:00
<_SkipUpdateBuildNumber Condition="'$(SampleProject)' == 'true' or '$(OutputType)' == 'Exe' or '$(OutputType)' == 'WinExe' or '$(AndroidApplication)' == 'true' or '$(IsTestProject)' == 'true' or '$(IsPackable)' == 'false' or '_SkipUpdateBuildNumber' == 'true' ">true</_SkipUpdateBuildNumber>
<_UpdateBuildNumber Condition="$(CI) and '$(BUILD_BUILDNUMBER)' != '$(PackageVersion)' AND '$(_SkipUpdateBuildNumber)' != 'true'">$(PackageVersion)</_UpdateBuildNumber>
</PropertyGroup>
<Error Condition="'$(_UpdateBuildNumber)' == '1.0.0'" Text="Unexpected _UpdateBuildNumber: '$(_UpdateBuildNumber)'" />
<PropertyGroup Condition="'$(_UpdateBuildNumber)' != ''">
<_UpdateBuildNumber Condition="'@(VersionMetadata)' != ''">$(_UpdateBuildNumber)+@(VersionMetadata -> '%(Identity)', '.')</_UpdateBuildNumber>
</PropertyGroup>
<Message Condition="$(CI) and '$(BUILD_REASON)' == 'Schedule'" Importance="high" Text="##vso[build.addbuildtag]$(NightlyTag)"/>
<Message Condition="'$(_UpdateBuildNumber)' != ''" Importance="high" Text="##vso[build.updatebuildnumber]$(_UpdateBuildNumber)"/>
</Target>
</Project>