Skip to content

Commit c3a12ce

Browse files
authored
Include the DebugProxy binaries in DevServer (#24817)
* Remove unused nuspec property that relied on relative path
1 parent 7eb58e0 commit c3a12ce

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Components/WebAssembly/DevServer/src/Microsoft.AspNetCore.Components.WebAssembly.DevServer.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434

3535
<ItemGroup>
3636
<NuspecProperty Include="publishDir=$(PublishDir)" />
37-
<NuspecProperty Include="componentsrootdir=..\..\..\" />
3837
<NuspecProperty Include="PackageThirdPartyNoticesFile=$(PackageThirdPartyNoticesFile)" />
3938
</ItemGroup>
4039

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<!-- Emit debug proxy binaries to output directory. This lets us launch it as a separate process while keeping the build output self-contained. -->
3434
<Target Name="IncludeDebugProxyBinariesAsContent" BeforeTargets="AssignTargetPaths">
3535
<ItemGroup>
36-
<DebugProxyBinaries Include="..\..\DebugProxy\src\bin\$(Configuration)\$(DefaultNetCoreTargetFramework)\**" />
36+
<DebugProxyBinaries Include="$(ArtifactsBinDir)Microsoft.AspNetCore.Components.WebAssembly.DebugProxy\$(Configuration)\$(DefaultNetCoreTargetFramework)\**" />
3737

3838
<!--
3939
For when we're building a package, we use Pack and PackagePath to bundle the debug proxy binaries into 'tools'.
@@ -50,6 +50,10 @@
5050
Link="BlazorDebugProxy\%(RecursiveDir)%(FileName)%(Extension)"
5151
CopyToOutputDirectory="PreserveNewest" />
5252
</ItemGroup>
53+
54+
<Error
55+
Text="Debugger proxy files were not found in $(ArtifactsBinDir)Microsoft.AspNetCore.Components.WebAssembly.DebugProxy\$(Configuration)\$(DefaultNetCoreTargetFramework)"
56+
Condition="'@(DebugProxyBinaries->Count())' == '0'" />
5357
</Target>
5458

5559
</Project>

0 commit comments

Comments
 (0)