Skip to content

Commit 2d5aabd

Browse files
author
Oren Novotny
committed
Fix packaging
1 parent 6ee6b11 commit 2d5aabd

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Rx.NET/Source/src/System.Reactive/System.Reactive.csproj

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,26 @@
6666
</ItemGroup>
6767

6868
<PropertyGroup>
69-
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);RemoveNetCoreApp3FromNuGet</TargetsForTfmSpecificBuildOutput>
69+
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);RemoveNetCoreApp3FromNuGet</TargetsForTfmSpecificBuildOutput>
70+
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);AddNetCore3ToNuGet</TargetsForTfmSpecificContentInPackage>
7071
</PropertyGroup>
7172

7273
<!-- We remove the output from the nuget so it doesn't wind up in the \lib folder -->
7374
<Target Name="RemoveNetCoreApp3FromNuGet" DependsOnTargets="BuiltProjectOutputGroup;DocumentationProjectOutputGroup" Condition="'$(TargetFramework)' == 'netcoreapp3.0'">
74-
7575
<ItemGroup>
7676
<!-- Before clearing the output groups, add them to None for packing -->
77-
<None Include="@(BuiltProjectOutputGroupOutput);@(DocumentationProjectOutputGroupOutput)" PackagePath="build\netcoreapp3.0" Pack="true" />
77+
<ItemsToAddToNuGet Include="@(BuiltProjectOutputGroupOutput);@(DocumentationProjectOutputGroupOutput)" PackagePath="build\netcoreapp3.0" />
7878

7979
<BuiltProjectOutputGroupOutput Remove="@(BuiltProjectOutputGroupOutput)" />
8080
<DocumentationProjectOutputGroupOutput Remove="@(DocumentationProjectOutputGroupOutput)" />
8181
</ItemGroup>
82-
82+
</Target>
83+
84+
<Target Name="AddNetCore3ToNuGet" Condition="'$(TargetFramework)' == 'netcoreapp3.0'">
85+
<ItemGroup>
86+
<!-- Add the removed build output to the build\netcoreapp3.0 folder -->
87+
<TfmSpecificPackageFileWithRecursiveDir Include="@(ItemsToAddToNuGet)" PackagePath="build\netcoreapp3.0" />
88+
</ItemGroup>
8389
</Target>
8490

8591
<ItemGroup>

0 commit comments

Comments
 (0)