Skip to content

Commit ac96ee4

Browse files
committed
Correct dependencies for tests
1 parent aa94b43 commit ac96ee4

File tree

4 files changed

+5
-35
lines changed

4 files changed

+5
-35
lines changed

src/Components/Blazor/Server/ref/Microsoft.AspNetCore.Blazor.Server.csproj

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/Components/Blazor/Server/ref/Microsoft.AspNetCore.Blazor.Server.netcoreapp.cs

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/Components/Blazor/Server/src/Microsoft.AspNetCore.Blazor.Server.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
55
<Description>Runtime server features for ASP.NET Core Blazor applications.</Description>
66
<IsShippingPackage>true</IsShippingPackage>
7-
7+
<HasReferenceAssembly>false</HasReferenceAssembly>
88
<!-- This is so that we add the FrameworkReference to Microsoft.AspNetCore.App -->
99
<UseLatestAspNetCoreReference>true</UseLatestAspNetCoreReference>
1010
</PropertyGroup>

src/ProjectTemplates/test/Infrastructure/GenerateTestProps.targets

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
<PropertyGroup>
1717
<MicrosoftAspNetCoreAppRefPackageVersion Condition="'$(IsTargetingPackBuilding)' != 'false'">%(_TargetingPackVersionInfo.PackageVersion)</MicrosoftAspNetCoreAppRefPackageVersion>
1818
<MicrosoftAspNetCoreAppRefPackageVersion Condition="'$(IsTargetingPackBuilding)' == 'false'">$(AspNetCoreBaselineVersion)</MicrosoftAspNetCoreAppRefPackageVersion>
19+
20+
<!-- For blazor-wasm we want the runtime to match the baseline, as we want to target the latest released asp.net core app -->
21+
<MicrosoftAspNetCoreAppRuntimePackageVersion>$(AspNetCoreBaselineVersion)</MicrosoftAspNetCoreAppRuntimePackageVersion>
1922
</PropertyGroup>
2023

2124
<!-- Runtime and Ref packs may have separate versions. -->
@@ -34,7 +37,7 @@
3437
MicrosoftNETCorePlatformsPackageVersion=$(MicrosoftNETCorePlatformsPackageVersion);
3538
MicrosoftNETSdkRazorPackageVersion=$(MicrosoftNETSdkRazorPackageVersion);
3639
MicrosoftAspNetCoreAppRefPackageVersion=$(MicrosoftAspNetCoreAppRefPackageVersion);
37-
MicrosoftAspNetCoreAppRuntimePackageVersion=@(_RuntimePackageVersionInfo->'%(PackageVersion)');
40+
MicrosoftAspNetCoreAppRuntimePackageVersion=$(MicrosoftAspNetCoreAppRuntimePackageVersion);
3841
SupportedRuntimeIdentifiers=$(SupportedRuntimeIdentifiers);
3942
DefaultNetCoreTargetFramework=$(DefaultNetCoreTargetFramework);
4043
</PropsProperties>

0 commit comments

Comments
 (0)