1616 <HelixPreCommand Include =" call RunPowershell.cmd InstallNode.ps1 $(NodeVersion) %25HELIX_CORRELATION_PAYLOAD%25\node\bin || exit /b 1" />
1717 </ItemGroup >
1818
19- <ItemGroup Condition =" '$(IsHelixJob)' == 'true' AND '$(TestDependsOnAspNetRef)' == 'true' AND '$(IsTargetingPackBuilding)' == 'true'" >
20- <HelixContent Include =" $(RepoRoot)artifacts\packages\Release\Shipping\Microsoft.AspNetCore.App.Ref.$(AppRuntimeVersion).nupkg" />
21- </ItemGroup >
22-
2319 <ItemGroup Condition =" '$(IsHelixJob)' == 'true' AND '$(TestDependsOnAspNetRuntime)' == 'true'" >
2420 <HelixContent Include =" $(RepoRoot)artifacts\packages\Release\Shipping\*-ci.nupkg" />
2521 </ItemGroup >
@@ -91,11 +87,23 @@ Usage: dotnet msbuild /t:Helix src/MyTestProject.csproj
9187 </Target >
9288
9389 <Target Name =" _CreateHelixWorkItem" Condition =" $(BuildHelixPayload)" >
94-
9590 <ItemGroup >
9691 <HelixContent Include =" $(OutputPath)/Microsoft.VisualStudio.TestPlatform.Extension.Xunit.Xml.TestAdapter.dll" />
9792 <HelixContent Include =" $(OutputPath)/Microsoft.VisualStudio.TestPlatform.Extension.Xunit.Xml.TestLogger.dll" />
98- <HelixContent Condition =" '$(TestDependsOnAspNetRuntime)' == 'true'" Include =" $(RepoRoot)artifacts\packages\Release\Shipping\Microsoft.AspNetCore.App.Runtime.win-x64.$(AppRuntimeVersion).nupkg" />
93+ </ItemGroup >
94+
95+ <!--
96+ Could use _GetPackageVersionInfo target (defined in eng/targets/Packaging.targets and included in every C#
97+ and F# project) instead of the $(SharedFxVersion) property but the property works everywhere except in site
98+ extensions projects. Could also use $(TargetingPackVersion) but that has slightly more complicated semantics
99+ and doesn't keep up when in servicing.
100+ -->
101+ <ItemGroup Condition =" '$(TestDependsOnAspNetRef)' == 'true' AND '$(IsTargetingPackBuilding)' == 'true' " >
102+ <HelixContent Include =" $(RepoRoot)artifacts\packages\Release\Shipping\Microsoft.AspNetCore.App.Ref.$(SharedFxVersion).nupkg" />
103+ </ItemGroup >
104+
105+ <ItemGroup Condition =" '$(TestDependsOnAspNetRuntime)' == 'true' " >
106+ <HelixContent Include =" $(RepoRoot)artifacts\packages\Release\Shipping\Microsoft.AspNetCore.App.Runtime.win-x64.$(SharedFxVersion).nupkg" />
99107 </ItemGroup >
100108
101109 <PropertyGroup >
@@ -117,8 +125,8 @@ Usage: dotnet msbuild /t:Helix src/MyTestProject.csproj
117125 <TestAssembly >$(TargetFileName)</TestAssembly >
118126 <PreCommands >@(HelixPreCommand)</PreCommands >
119127 <PostCommands >@(HelixPostCommand)</PostCommands >
120- <Command Condition =" $(IsWindowsHelixQueue)" >call runtests.cmd $(TargetFileName) $(NETCoreSdkVersion) $(MicrosoftNETCoreAppRuntimeVersion) $(_HelixFriendlyNameTargetQueue) $(TargetArchitecture) $(RunQuarantinedTests) $(DotnetEfPackageVersion) Microsoft.AspNetCore.App.Runtime.win-x64.$(AppRuntimeVersion ).nupkg Microsoft.AspNetCore.App.Ref.$(AppRuntimeVersion ).nupkg $(HelixTimeout)</Command >
121- <Command Condition =" !$(IsWindowsHelixQueue)" >./runtests.sh $(TargetFileName) $(NETCoreSdkVersion) $(MicrosoftNETCoreAppRuntimeVersion) $(_HelixFriendlyNameTargetQueue) $(TargetArchitecture) $(RunQuarantinedTests) $(DotnetEfPackageVersion) Microsoft.AspNetCore.App.Runtime.win-x64.$(AppRuntimeVersion ).nupkg Microsoft.AspNetCore.App.Ref.$(AppRuntimeVersion ).nupkg $(HelixTimeout)</Command >
128+ <Command Condition =" $(IsWindowsHelixQueue)" >call runtests.cmd $(TargetFileName) $(NETCoreSdkVersion) $(MicrosoftNETCoreAppRuntimeVersion) $(SharedFxVersion) $( _HelixFriendlyNameTargetQueue) $(TargetArchitecture) $(RunQuarantinedTests) $(DotnetEfPackageVersion) Microsoft.AspNetCore.App.Runtime.win-x64.$(SharedFxVersion ).nupkg Microsoft.AspNetCore.App.Ref.$(SharedFxVersion ).nupkg $(HelixTimeout)</Command >
129+ <Command Condition =" !$(IsWindowsHelixQueue)" >./runtests.sh $(TargetFileName) $(NETCoreSdkVersion) $(MicrosoftNETCoreAppRuntimeVersion) $(SharedFxVersion) $( _HelixFriendlyNameTargetQueue) $(TargetArchitecture) $(RunQuarantinedTests) $(DotnetEfPackageVersion) Microsoft.AspNetCore.App.Runtime.win-x64.$(SharedFxVersion ).nupkg Microsoft.AspNetCore.App.Ref.$(SharedFxVersion ).nupkg $(HelixTimeout)</Command >
122130 <Command Condition =" $(HelixCommand) != ''" >$(HelixCommand)</Command >
123131 <Timeout >$(HelixTimeout)</Timeout >
124132 </HelixWorkItem >
0 commit comments