Skip to content

Generated .version file for source build artifacts not working with stable versioning #3693

@mthalman

Description

@mthalman

The changes in dotnet/installer#17625 caused a test failure which validates the content of the .version file that gets generated for the source build artifacts:

Assert.Equal() Failure
↓ (pos 7)
Expected: 8.0.100
Actual:   8.0.100-rtm.23527.1
↑ (pos 7)

 at Microsoft.DotNet.SourceBuild.SmokeTests.SourceBuiltArtifactsTests.VerifyVersionFile() in /vmr/test/Microsoft.DotNet.SourceBuild.SmokeTests/SourceBuiltArtifactsTests.cs:line 61
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

This is because that PR introduced stable versioning for installer. This conflicts with the logic which populates that .version file. That uses the version of installer's source build intermediate which is not stable versioned.

Metadata

Metadata

Labels

area-buildImprovements in source-build's own build process

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions