Skip to content

Commit de4b68b

Browse files
committed
Get TargetRid from MSBuild
1 parent 8c742fa commit de4b68b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

build.proj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@
153153
This is also a problem when passing CLI feeds: https://github.com/dotnet/source-build/issues/561
154154
-->
155155
<Exec Command="$(SmokeTestCommand)"
156-
EnvironmentVariables="prodConBlobFeedUrl=$(ProdConBlobFeedUrl)" />
156+
EnvironmentVariables="
157+
targetRid=$(TargetRid);
158+
prodConBlobFeedUrl=$(ProdConBlobFeedUrl)" />
157159
</Target>
158160

159161
<UsingTask AssemblyFile="$(XPlatSourceBuildTasksAssembly)" TaskName="UploadToAzure" />

smoke-test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ VERSION_PREFIX=5.0
99
DEV_CERTS_VERSION_DEFAULT=5.0.0-preview.3
1010
__ROOT_REPO=$(cat "$SCRIPT_ROOT/artifacts/obj/rootrepo.txt" | sed 's/\r$//') # remove CR if mounted repo on Windows drive
1111
executingUserHome=${HOME:-}
12-
targetRid=$(cat "$SCRIPT_ROOT/artifacts/obj/x64/Release/TargetInfo.props" | grep -i targetrid | sed -E 's|\s*</?TargetRid>\s*||g')
12+
13+
echo "RID to test: ${targetRid?not specified. Use ./build.sh --run-smoke-test to detect RID, or specify manually.}"
1314

1415
export DOTNET_CLI_TELEMETRY_OPTOUT=1
1516
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1

0 commit comments

Comments
 (0)