Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions TUnit.Pipeline/Modules/PublishMockTestsAOTModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ protected override ModuleConfiguration Configure() => ModuleConfiguration.Create
Properties =
[
new KeyValue("Aot", "true"),
// Redirect build outputs into a per-framework tree so the AOT re-compile
// of ProjectReferences (TUnit.Mocks, TUnit.Mocks.Assertions) never
// overwrites the main bin/Release DLLs that PackTUnitFilesModule packages
// with --no-build. Without this, the re-compile drops AssemblyVersion back
// to 1.0.0.0 (CI passes AssemblyVersion only to the initial solution build),
// shipping strong-name-mismatched NuGet packages (issue #5622).
new KeyValue("BaseOutputPath", $"bin/aot-{framework}/"),
new KeyValue("BaseIntermediateOutputPath", $"obj/aot-{framework}/"),
],
Framework = framework,
}, new CommandExecutionOptions
Expand Down
6 changes: 5 additions & 1 deletion TUnit.Pipeline/Modules/PublishNugetTesterAOTModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ protected override ModuleConfiguration Configure() => ModuleConfiguration.Create
Properties =
[
new KeyValue("Aot", "true"),
new KeyValue("TUnitVersion", version.ValueOrDefault!.SemVer!)
new KeyValue("TUnitVersion", version.ValueOrDefault!.SemVer!),
// Isolate AOT publish outputs from the main bin/Release so packable
// projects' DLLs are never rewritten by this publish (issue #5622).
new KeyValue("BaseOutputPath", $"bin/aot-{framework}/"),
new KeyValue("BaseIntermediateOutputPath", $"obj/aot-{framework}/"),
],
Framework = framework,
}, new CommandExecutionOptions
Expand Down
Loading