File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
nuget/Microsoft.NET.Sdk.WebAssembly.Pack/build Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,12 @@ Copyright (c) .NET Foundation. All rights reserved.
142142 $(GenerateBuildWasmBootJsonDependsOn);
143143 GenerateBuildRuntimeConfigurationFiles;
144144 ResolveWasmOutputs;
145+ _AddWasmDiagnosticPortsEnvironmentVariable;
145146 </GenerateBuildWasmBootJsonDependsOn >
147+ <GeneratePublishWasmBootJsonDependsOn >
148+ $(GeneratePublishWasmBootJsonDependsOn);
149+ _AddWasmDiagnosticPortsEnvironmentVariable;
150+ </GeneratePublishWasmBootJsonDependsOn >
146151 </PropertyGroup >
147152
148153 <Target Name =" _WasmNativeForBuild" DependsOnTargets =" _GatherWasmFilesToBuild;WasmBuildApp" Condition =" '$(UsingBrowserRuntimeWorkload)' == 'true'" />
@@ -386,6 +391,12 @@ Copyright (c) .NET Foundation. All rights reserved.
386391 </ItemGroup >
387392 </Target >
388393
394+ <Target Name =" _AddWasmDiagnosticPortsEnvironmentVariable" >
395+ <ItemGroup >
396+ <WasmEnvironmentVariable Include =" DOTNET_DiagnosticPorts" Value =" $(DiagnosticPorts)" Condition =" '$(DiagnosticPorts)' != ''" />
397+ </ItemGroup >
398+ </Target >
399+
389400 <Target Name =" _GenerateBuildWasmBootJson" DependsOnTargets =" $(GenerateBuildWasmBootJsonDependsOn)" >
390401 <PropertyGroup >
391402 <_WasmBuildBootJsonPath >$(IntermediateOutputPath)$(_WasmBootConfigFileName)</_WasmBuildBootJsonPath >
Original file line number Diff line number Diff line change 3535 <NestedBuildProperty Include =" WasmEmitSymbolMap" />
3636 <NestedBuildProperty Include =" WasmEnableThreads" />
3737 <NestedBuildProperty Include =" EnableDiagnostics" />
38+ <NestedBuildProperty Include =" DiagnosticPorts" />
3839 <NestedBuildProperty Include =" WasmPerformanceInstrumentation" />
3940 </ItemGroup >
4041
You can’t perform that action at this time.
0 commit comments