Skip to content

Commit cd3e4c7

Browse files
committed
Execute interop and template tests on latest Fx
- `restore $(TestDependsOnAspNetRuntime)` settings - needed to execute on just-built Microsoft.AspNetCore.App.Runtime - separate from `$(TestDependsOnAspNetPackages)` because App.UnitTests need only the packages
1 parent bf6c1c4 commit cd3e4c7

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

eng/targets/Helix.targets

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<ItemGroup Condition="'$(TestDependsOnPlaywright)' == 'true' AND '$(IsWindowsHelixQueue)' == 'true'">
1717
<HelixPreCommand Include="call RunPowershell.cmd installPlaywrightReqs.ps1 || exit /b 1" />
1818
</ItemGroup>
19-
19+
2020
<ItemGroup Condition="'$(TestDependsOnIIS)' == 'true' AND '$(IsWindowsOnlyTest)' == 'true'">
2121
<HelixContent Include="$(RepoRoot)src\Servers\IIS\tools\update_schema.ps1" />
2222
<HelixContent Include="$(RepoRoot)src\Servers\IIS\tools\UpdateIISExpressCertificate.ps1" />
@@ -35,10 +35,15 @@
3535
<HelixPreCommand Include="call RunPowershell.cmd InstallNode.ps1 $(NodeVersion) || exit /b 1" />
3636
</ItemGroup>
3737

38+
<!-- $(TestDependsOnAspNetRuntime) implies $(TestDependsOnAspNetPackages). Separate for the App.UnitTests case. -->
39+
<PropertyGroup Condition=" '$(TestDependsOnAspNetRuntime)' == 'true' AND '$(TestDependsOnAspNetPackages)' == '' ">
40+
<TestDependsOnAspNetPackages>true</TestDependsOnAspNetPackages>
41+
</PropertyGroup>
3842
<ItemGroup Condition=" '$(TestDependsOnAspNetPackages)' == 'true' ">
3943
<!-- Grab all shipping packages. -->
4044
<HelixContent Include="$(RepoRoot)artifacts\packages\$(Configuration)\Shipping\*$(SharedFxVersion).nupkg" />
4145
</ItemGroup>
46+
4247
<ItemGroup>
4348
<!-- Java test projects do not use xUnit. -->
4449
<HelixContent Include="$(OutputPath)Microsoft.VisualStudio.TestPlatform.Extension.Xunit.Xml.TestAdapter.dll"

src/Grpc/test/InteropTests/InteropTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<ContainsFunctionalTestAssets>true</ContainsFunctionalTestAssets>
55
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
6-
<TestDependsOnAspNetPackages>true</TestDependsOnAspNetPackages>
6+
<TestDependsOnAspNetRuntime>true</TestDependsOnAspNetRuntime>
77
</PropertyGroup>
88

99
<ItemGroup>

src/ProjectTemplates/BlazorTemplates.Tests/BlazorTemplates.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<!-- TestTemplateCreationFolder is the folder where the templates will be created. Will point out to $(OutputDir)$(TestTemplateCreationFolder) -->
1414
<TestTemplateCreationFolder>TestTemplates\</TestTemplateCreationFolder>
1515
<TestPackageRestorePath>$([MSBuild]::EnsureTrailingSlash('$(RepoRoot)'))obj\template-restore\</TestPackageRestorePath>
16-
<TestDependsOnAspNetPackages>true</TestDependsOnAspNetPackages>
16+
<TestDependsOnAspNetRuntime>true</TestDependsOnAspNetRuntime>
1717
<TestDependsOnMssql>true</TestDependsOnMssql>
1818
<TestDependsOnPlaywright>true</TestDependsOnPlaywright>
1919
</PropertyGroup>

src/ProjectTemplates/test/ProjectTemplates.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<!-- TestTemplateCreationFolder is the folder where the templates will be created. Will point out to $(OutputDir)$(TestTemplateCreationFolder) -->
1919
<TestTemplateCreationFolder>TestTemplates\</TestTemplateCreationFolder>
2020
<TestPackageRestorePath>$([MSBuild]::EnsureTrailingSlash('$(RepoRoot)'))obj\template-restore\</TestPackageRestorePath>
21-
<TestDependsOnAspNetPackages>true</TestDependsOnAspNetPackages>
21+
<TestDependsOnAspNetRuntime>true</TestDependsOnAspNetRuntime>
2222
</PropertyGroup>
2323

2424
<ItemGroup>

0 commit comments

Comments
 (0)