diff --git a/eng/pipeline/stages/public-publish-stage.yml b/eng/pipeline/stages/public-publish-stage.yml
index 7dc8d5a32b..614f57e9c8 100644
--- a/eng/pipeline/stages/public-publish-stage.yml
+++ b/eng/pipeline/stages/public-publish-stage.yml
@@ -48,7 +48,7 @@ stages:
- name: GoBinariesDir
value: $(Pipeline.Workspace)/Binaries Signed
- name: NetCorePublishingScripts
- value: $(Build.SourcesDirectory)/eng/release-studio/bin/Debug/net7.0/MsGoPublishingScripts
+ value: $(Build.SourcesDirectory)/eng/release-studio/bin/MsGoPublishingScripts
# This is read directly by release studio scripts through env.
- name: RMExecutionEnvironment
@@ -70,6 +70,7 @@ stages:
projects: '$(Build.SourcesDirectory)/eng/release-studio/ReleaseStudio.csproj'
custom: build
arguments: >-
+ /p:NetCorePublishingScripts=$(NetCorePublishingScripts)
/bl:eng/release-studio/Build.binlog
/v:n
diff --git a/eng/release-studio/ReleaseStudio.csproj b/eng/release-studio/ReleaseStudio.csproj
index c7139c2c0e..2f5570c4a9 100644
--- a/eng/release-studio/ReleaseStudio.csproj
+++ b/eng/release-studio/ReleaseStudio.csproj
@@ -14,10 +14,27 @@
We aren't actually building an app anyway, we just need the RM package.
-->
net$(BundledNETCoreAppTargetFrameworkVersion)
+
+
+ $(MSBuildThisFileDirectory)bin\MsGoPublishingScripts
+
+
+
+
+
+