Skip to content

Commit faa2784

Browse files
dansiegelclaude
andcommitted
ci: roll test host forward so net6.0 tests run on current runners
build-prism-core and build-prism-wpf built cleanly but failed at "Run Tests": the test projects target net6.0, whose runtime is EOL and no longer present on the runner images, so the test host aborted with "You must install or update .NET to run this application" before any test executed. Set RollForward=Major for test projects so the host rolls net6.0 forward to the newest installed major runtime. Runtime selection only - the test assemblies are still built against net6.0. Verified locally: Prism.Core.Tests passes 277/277 and the property lands in the test runtimeconfig the host reads. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 6722683 commit faa2784

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Directory.Build.props

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,17 @@
138138
<None Include="build\Package.targets" Pack="true" PackagePath="buildTransitive\$(PackageId).targets" Condition="exists('build\Package.targets')"/>
139139
</ItemGroup>
140140

141+
<!--
142+
The test projects target net6.0, which is end-of-life and no longer present on the CI
143+
runner images (only newer runtimes are installed). Roll the test host forward to the
144+
newest installed major runtime so the tests can execute; without this the testhost aborts
145+
with "You must install or update .NET to run this application". This affects runtime
146+
selection only - the test assemblies are still built against net6.0.
147+
-->
148+
<PropertyGroup Condition=" $(IsTestProject) ">
149+
<RollForward>Major</RollForward>
150+
</PropertyGroup>
151+
141152
<ItemGroup Condition=" $(IsTestProject) ">
142153
<None Include="$(MSBuildThisFileDirectory)xunit.runner.json"
143154
CopyToOutputDirectory="PreserveNewest" />

0 commit comments

Comments
 (0)