Skip to content

Commit fa64728

Browse files
Copy actual binaries to output dir
1 parent b381dc2 commit fa64728

File tree

2 files changed

+7
-22
lines changed

2 files changed

+7
-22
lines changed

src/Components/WebAssembly/Build/src/ReferenceFromSource.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<!-- Debug proxy support when referencing from source -->
66
<Import Project="..\..\DebugProxy\src\build\Microsoft.AspNetCore.Components.WebAssembly.DebugProxy.targets" />
77
<PropertyGroup>
8-
<_DebugProxyDirectory>$(MSBuildThisFileDirectory)..\..\DebugProxy\src\bin\$(Configuration)\$(DefaultNetCoreTargetFramework)\</_DebugProxyDirectory>
8+
<_DebugProxyBinariesDirectory>$(MSBuildThisFileDirectory)..\..\DebugProxy\src\bin\$(Configuration)\$(DefaultNetCoreTargetFramework)\</_DebugProxyBinariesDirectory>
99
</PropertyGroup>
1010

1111
<!--

src/Components/WebAssembly/DebugProxy/src/build/Microsoft.AspNetCore.Components.WebAssembly.DebugProxy.targets

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,21 @@
33
<PropertyGroup>
44
<GetCopyToOutputDirectoryItemsDependsOn>
55
$(GetCopyToOutputDirectoryItemsDependsOn);
6-
_GenerateDebugProxyConfig;
6+
_GenerateDebugProxyCopyToOutputDirectoryItems;
77
</GetCopyToOutputDirectoryItemsDependsOn>
88

9-
<_DebugProxyDirectory>$([MSBuild]::NormalizeDirectory('$(MSBuildThisFileDirectory)..\tools\'))</_DebugProxyDirectory>
9+
<_DebugProxyBinariesDirectory>$([MSBuild]::NormalizeDirectory('$(MSBuildThisFileDirectory)..\tools\'))</_DebugProxyBinariesDirectory>
1010
</PropertyGroup>
1111

12-
<Target Name="_GenerateDebugProxyConfig">
13-
<PropertyGroup>
14-
<_DebugProxyConfigName>$(TargetName).BlazorDebugProxy.config</_DebugProxyConfigName>
15-
<_DebugProxyConfigIntermediateOutputPath>$(IntermediateOutputPath)$(_DebugProxyConfigName)</_DebugProxyConfigIntermediateOutputPath>
16-
</PropertyGroup>
17-
18-
<WriteLinesToFile
19-
File="$(_DebugProxyConfigIntermediateOutputPath)"
20-
Lines="$(_DebugProxyDirectory)"
21-
Overwrite="true"
22-
WriteOnlyWhenDifferent="true" />
23-
12+
<Target Name="_GenerateDebugProxyCopyToOutputDirectoryItems">
2413
<ItemGroup>
14+
<_DebugProxyBinaries Include="$(_DebugProxyBinariesDirectory)**" />
2515
<ContentWithTargetPath
26-
Include="$(_DebugProxyConfigIntermediateOutputPath)">
27-
<TargetPath>$(_DebugProxyConfigName)</TargetPath>
16+
Include="@(_DebugProxyBinaries)">
17+
<TargetPath>BlazorDebugProxy\%(RecursiveDir)%(FileName)%(Extension)</TargetPath>
2818
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
29-
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
3019
</ContentWithTargetPath>
3120
</ItemGroup>
32-
33-
<ItemGroup>
34-
<FileWrites Include="$(_DebugProxyConfigIntermediateOutputPath)" />
35-
</ItemGroup>
3621
</Target>
3722

3823
</Project>

0 commit comments

Comments
 (0)