Skip to content

Commit

Permalink
Fix broken runtime tests build (#89115)
Browse files Browse the repository at this point in the history
* Fix broken runtime tests build

Follow-up on #89005

* Update build-test-job.yml

* Update sfx-ref.proj
  • Loading branch information
ViktorHofer authored Jul 18, 2023
1 parent a2af460 commit d39c2eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eng/native/ijw/getRefPackFolderFromArtifacts.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $refPackPath = "$repoRoot/artifacts/bin/ref/net$majorVersion.$minorVersion"

if (-not (Test-Path $refPackPath))
{
Write-Error "Reference assemblies not found in the artifacts folder at '$refPackPath'. Did you invoke 'build.cmd libs.sfx+libs.oob /p:RefOnly=true' to make sure that refs are built? Did the repo layout change?"
Write-Error "Reference assemblies not found in the artifacts folder at '$refPackPath'. Did you invoke 'build.cmd libs.sfx+libs.oob' to make sure that refs are built? Did the repo layout change?"
exit 1
}

Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/common/templates/runtimes/build-test-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
- ${{ each variable in parameters.variables }}:
- ${{ variable }}
- name: liveRuntimeBuildParams
value: 'libs.sfx+libs.oob+clr.iltools /p:RefOnly=true -c Release -ci'
value: 'libs.sfx+libs.oob+clr.iltools -c Release -ci'
- name: compilerArg
value: ''

Expand Down
2 changes: 1 addition & 1 deletion src/libraries/sfx-ref.proj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.Build.Traversal">

<PropertyGroup>
<TargetFramework>$(NetCoreAppCurrent)</TargetFramework>
<TargetFramework>$(NetCoreAppCurrent)-$(TargetOS)</TargetFramework>
<!-- Filter ProjectReferences to build the best matching target framework only. -->
<FilterTraversalProjectReferences>true</FilterTraversalProjectReferences>
</PropertyGroup>
Expand Down

0 comments on commit d39c2eb

Please sign in to comment.