Skip to content

Commit 684ef31

Browse files
committed
Work around dotnet publish bug
1 parent 2d02c93 commit 684ef31

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: src/PowerShellEditorServices.Hosting/PowerShellEditorServices.Hosting.csproj

+12
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@
66
<AssemblyName>Microsoft.PowerShell.EditorServices.Hosting</AssemblyName>
77
</PropertyGroup>
88

9+
<!-- HACK: This is a temporary workaround of `dotnet publish` -->
10+
<Target Name="InjectNetStandardFacadesToPublishDirectory"
11+
BeforeTargets="ComputeResolvedFilesToPublishList"
12+
Condition="'@(_NETStandardLibraryNETFrameworkLib)' != ''">
13+
<ItemGroup>
14+
<_ResolvedCopyLocalPublishAssets
15+
Include="@(_NETStandardLibraryNETFrameworkLib)"
16+
Condition="'%(_NETStandardLibraryNETFrameworkLib.FileName)' != 'netfx.force.conflicts'"
17+
/>
18+
</ItemGroup>
19+
</Target>
20+
921
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1' ">
1022
<DefineConstants>$(DefineConstants);CoreCLR</DefineConstants>
1123
</PropertyGroup>

0 commit comments

Comments
 (0)