Skip to content

Commit

Permalink
Blazor: Add SelfContained in SDK tasks project instead of the test pr…
Browse files Browse the repository at this point in the history
…ojects
  • Loading branch information
nagilson committed Jan 25, 2023
1 parent 07848f6 commit 552b1b3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
<ProjectReference Include="..\blazorwasm\blazorwasm.csproj" />
</ItemGroup>

<!-- Based on .NET 8 breaking change: Add SC like old behavior if RID is defined. -->
<PropertyGroup Condition="'$(RuntimeIdentifier)' != '' and '$(SelfContained)' == ''">
<SelfContained>true</SelfContained>
</PropertyGroup>

<!-- Enabling compression increases build time. We want to avoid this for tests so we
disable it here. This doesn't affect any test assertions. -->
<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,5 @@
<PropertyGroup>
<_BlazorBrotliCompressionLevel>NoCompression</_BlazorBrotliCompressionLevel>
</PropertyGroup>

<!-- Based on .NET 8 breaking change: Add SC like old behavior if RID is defined. -->
<PropertyGroup Condition="'$(RuntimeIdentifier)' != '' and '$(SelfContained)' == ''">
<SelfContained>true</SelfContained>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
<FrameworkReference Remove="Microsoft.AspNetCore.App" />
<KnownFrameworkReference Remove="Microsoft.AspNetCore.App" />
</ItemGroup>

<!-- Based on .NET 8 breaking change: Add SC like old behavior if RID is defined. -->
<PropertyGroup Condition="'$(RuntimeIdentifier)' != '' and '$(SelfContained)' == ''">
<SelfContained>true</SelfContained>
</PropertyGroup>

<!-- Enabling compression increases build time. We want to avoid this for tests so we
disable it here. This doesn't affect any test assertions. -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,5 @@
<PropertyGroup>
<_BlazorBrotliCompressionLevel>NoCompression</_BlazorBrotliCompressionLevel>
</PropertyGroup>

<!-- Based on .NET 8 breaking change: Add SC like old behavior if RID is defined. -->
<PropertyGroup Condition="'$(RuntimeIdentifier)' != '' and '$(SelfContained)' == ''">
<SelfContained>true</SelfContained>
</PropertyGroup>


</Project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project>
<Project>

<PropertyGroup>
<BlazorWasmSdkRoot>$(RepoRoot)\src\BlazorWasmSdk\</BlazorWasmSdkRoot>
Expand Down Expand Up @@ -28,6 +28,11 @@
<NoDefaultExcludes>true</NoDefaultExcludes>
</PropertyGroup>

<!-- Based on .NET 8 breaking change: Add SC like old behavior if RID is defined. -->
<PropertyGroup Condition="'$(RuntimeIdentifier)' != '' and '$(SelfContained)' == ''">
<SelfContained>true</SelfContained>
</PropertyGroup>

<PropertyGroup>
<Description>SDK for building and publishing Blazor WebAssembly applications.</Description>
<OutputType>Library</OutputType>
Expand Down

0 comments on commit 552b1b3

Please sign in to comment.