Skip to content

Commit

Permalink
Fixing 102307 release builds should be debuggable as they are in .net7
Browse files Browse the repository at this point in the history
  • Loading branch information
thaystg committed May 21, 2024
1 parent 3ee9306 commit 5b709f1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,6 @@ Copyright (c) .NET Foundation. All rights reserved.
<_BlazorWebAssemblyJiterpreter>$(BlazorWebAssemblyJiterpreter)</_BlazorWebAssemblyJiterpreter>
<_BlazorWebAssemblyRuntimeOptions>$(BlazorWebAssemblyRuntimeOptions)</_BlazorWebAssemblyRuntimeOptions>
<_WasmDebugLevel>$(WasmDebugLevel)</_WasmDebugLevel>
<_WasmDebugLevel Condition="'$(_WasmDebugLevel)' == ''">0</_WasmDebugLevel>
<_WasmDebugLevel Condition="'$(_WasmDebugLevel)' == '0' and ('$(DebuggerSupport)' == 'true' or '$(Configuration)' == 'Debug')">-1</_WasmDebugLevel>

<!-- Workaround for https://github.com/dotnet/sdk/issues/12114-->
<PublishDir Condition="'$(AppendRuntimeIdentifierToOutputPath)' != 'true' AND '$(PublishDir)' == '$(OutputPath)$(RuntimeIdentifier)\$(PublishDirName)\'">$(OutputPath)$(PublishDirName)\</PublishDir>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void WriteBootJson(Stream output, string entryAssemblyName)

if (IsTargeting80OrLater())
{
result.debugLevel = ParseOptionalInt(DebugLevel) ?? (DebugBuild ? 1 : 0);
result.debugLevel = ParseOptionalInt(DebugLevel) ?? (DebugBuild ? -1 : 0);
result.mainAssemblyName = entryAssemblyName;
result.globalizationMode = GetGlobalizationMode().ToString().ToLowerInvariant();

Expand Down

0 comments on commit 5b709f1

Please sign in to comment.