Skip to content

[build] set $(PackageVersionSuffix) for dotnet/android-tools #10325

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 23, 2025

Conversation

jonathanpeppers
Copy link
Member

@jonathanpeppers jonathanpeppers commented Jul 23, 2025

Context: dotnet/android-tools#259

This adds the suffix:

<PackageVersionSuffix>-preview.$(PackVersionCommitCount)</PackageVersionSuffix>

In order to allow the package to be published as a "transport" package with a non-stable version:

packages\microsoft.dotnet.arcade.sdk\10.0.0-beta.25367.5\tools\SdkTasks\PublishArtifactsInManifest.proj(124,5): error :
Package 'Xamarin.Android.Tools.AndroidSdk' has stable version '1.0.104' but is targeted at a non-isolated feed 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10/nuget/v3/index.json'

This produces Xamarin.Android.Tools.AndroidSdk.1.0.104-preview.223.nupkg.

Context: dotnet/android-tools#259

This adds the suffix:

    <PackageVersionSuffix>-preview.$(PackVersionCommitCount)</PackageVersionSuffix>

In order to allow the package to be published as a "transport" package
with a non-stable version:

    packages\microsoft.dotnet.arcade.sdk\10.0.0-beta.25367.5\tools\SdkTasks\PublishArtifactsInManifest.proj(124,5): error :
    Package 'Xamarin.Android.Tools.AndroidSdk' has stable version '1.0.104' but is targeted at a non-isolated feed 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10/nuget/v3/index.json'
Context: https://github.com/rainersigwald/build-task-in-solution-demo/blob/master/Task/DemoFunctionality.targets

Fixes:

(_CopyFilesMarkedCopyLocal target) ->
         C:\a\_work\1\s\bin\Release\dotnet\sdk\10.0.100-preview.7.25368.105\Microsoft.Common.CurrentVersion.targets(5080,5): error MSB3027: Could not copy "C:\a\_work\1\s\external\xamarin-android-tools\src\Microsoft.Android.Build.BaseTasks\bin\Release\netstandard2.0\Microsoft.Android.Build.BaseTasks.dll" to "C:\a\_work\1\s\bin\BuildRelease\netstandard2.0\Microsoft.Android.Build.BaseTasks.dll". Exceeded retry count of 10. Failed. The file is locked by: ".NET Host (8356)" [C:\a\_work\1\s\build-tools\xa-prep-tasks\xa-prep-tasks.csproj]
         C:\a\_work\1\s\bin\Release\dotnet\sdk\10.0.100-preview.7.25368.105\Microsoft.Common.CurrentVersion.targets(5080,5): error MSB3021: Unable to copy file "C:\a\_work\1\s\external\xamarin-android-tools\src\Microsoft.Android.Build.BaseTasks\bin\Release\netstandard2.0\Microsoft.Android.Build.BaseTasks.dll" to "C:\a\_work\1\s\bin\BuildRelease\netstandard2.0\Microsoft.Android.Build.BaseTasks.dll". The process cannot access the file 'C:\a\_work\1\s\bin\BuildRelease\netstandard2.0\Microsoft.Android.Build.BaseTasks.dll' because it is being used by another process. [C:\a\_work\1\s\build-tools\xa-prep-tasks\xa-prep-tasks.csproj]
@jonathanpeppers jonathanpeppers merged commit bf304cf into main Jul 23, 2025
59 checks passed
@jonathanpeppers jonathanpeppers deleted the dev/peppers/PackageVersionSuffix branch July 23, 2025 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant