Skip to content

[Engineering task] Wilson-OneBranch-PullRequest - net10 tests failures #5517

@alexholub113

Description

@alexholub113

Task type

Builds, Development

Description

net10.0 tests missing: The test runner attempted to run net10.0 (The test source file ... net10.0 ... was not found). Your runTests.ps1 sets TargetNetNext=True (so test discovery includes net10.0), but the Build step doesn’t pass this property to MSBuild. Because tests run with --no-build, the net10.0 binaries must already exist; they don’t, so VSTest tries to run them and fails.

Solution

Ensure net10.0 assets are built before tests by passing /p:TargetNetNext=True to the Build step that compiles Product.proj, so the net10.0 outputs exist when dotnet test runs with --no-build.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions