Skip to content

Commit 64b95b9

Browse files
committed
Fixup
1 parent 501af7f commit 64b95b9

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

eng/targets/CSharp.Common.props

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@
3232

3333
<ItemGroup Condition="'$(UsingMicrosoftNETSdkBlazorWebAssembly)' == 'true'">
3434
<!-- See comments further up in the file when we import the Razor SDK-->
35-
<ProjectReference Include="$(RepoRoot)src\Components\WebAssembly\Sdk\src\Microsoft.NET.Sdk.BlazorWebAssembly.csproj"
35+
<Reference Include="Microsoft.NET.Sdk.BlazorWebAssembly"
3636
PrivateAssets="All"
37-
IsImplicitlyDefined="true"
3837
ReferenceOutputAssembly="false"
3938
SkipGetTargetFrameworkProperties="true"
4039
UndefineProperties="TargetFramework;TargetFrameworks" />

src/Components/WebAssembly/Sdk/integrationtests/WasmPublishIntegrationTest.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,8 @@ public async Task Publish_SatelliteAssemblies_AreCopiedToBuildOutput()
321321
project.AddProjectFileContent(
322322
@"
323323
<PropertyGroup>
324+
<!-- Workaround for https://github.com/mono/linker/issues/1390 -->
325+
<PublishTrimmed>false</PublishTrimmed>
324326
<DefineConstants>$(DefineConstants);REFERENCE_classlibrarywithsatelliteassemblies</DefineConstants>
325327
</PropertyGroup>
326328
<ItemGroup>
@@ -450,6 +452,8 @@ public async Task Publish_HostedApp_WithSatelliteAssemblies()
450452
wasmProject.AddProjectFileContent(
451453
@"
452454
<PropertyGroup>
455+
<!-- Workaround for https://github.com/mono/linker/issues/1390 -->
456+
<PublishTrimmed>false</PublishTrimmed>
453457
<DefineConstants>$(DefineConstants);REFERENCE_classlibrarywithsatelliteassemblies</DefineConstants>
454458
</PropertyGroup>
455459
<ItemGroup>
@@ -637,7 +641,7 @@ public async Task Publish_HostedAppWithScopedCss_VisualStudio()
637641
// Arrange
638642
using var project = ProjectDirectory.Create("blazorhosted", additionalProjects: new[] { "blazorwasm", "razorclasslibrary", });
639643
File.WriteAllText(Path.Combine(project.SolutionPath, "blazorwasm", "App.razor.css"), "h1 { font-size: 16px; }");
640-
644+
641645
project.Configuration = "Release";
642646
var result = await MSBuildProcessManager.DotnetMSBuild(project, "Build", "/p:BuildInsideVisualStudio=true");
643647

@@ -701,6 +705,8 @@ public async Task Publish_HostedApp_VisualStudio_WithSatelliteAssemblies()
701705
var existing = File.ReadAllText(blazorwasmProjFile);
702706
var updatedContent = @"
703707
<PropertyGroup>
708+
<!-- Workaround for https://github.com/mono/linker/issues/1390 -->
709+
<PublishTrimmed>false</PublishTrimmed>
704710
<DefineConstants>$(DefineConstants);REFERENCE_classlibrarywithsatelliteassemblies</DefineConstants>
705711
</PropertyGroup>
706712
<ItemGroup>

src/Razor/test/testassets/RestoreTestProjects/RestoreTestProjects.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
<ProjectReference Include="..\SimpleMvc21\SimpleMvc21.csproj" />
88
<ProjectReference Include="..\SimpleMvc31\SimpleMvc31.csproj" />
99
<ProjectReference Include="..\blazor31\blazor31.csproj" />
10-
<ProjectReference Include="..\blazorhosted\blazorhosted.csproj" />
11-
<ProjectReference Include="..\blazorhosted-rid\blazorhosted-rid.csproj" />
12-
<ProjectReference Include="..\blazorwasm\blazorwasm.csproj" />
1310
<ProjectReference Include="..\ClassLibraryMvc21\ClassLibraryMvc21.csproj" />
1411
<ProjectReference Include="..\AppWithP2PReference\AppWithP2PReference.csproj" />
1512
<ProjectReference Include="..\AppWithPackageAndP2PReferenceAndRID\AppWithPackageAndP2PReferenceAndRID.csproj" />

0 commit comments

Comments
 (0)