Skip to content

Commit 249bf13

Browse files
Remove source csproj from text-only packages (#360)
1 parent 84a829e commit 249bf13

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/Directory.Build.targets

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@
5353
@(PotentialCompileSrc);
5454
**\*.csproj;
5555
@(NuGetGeneratedMetadataFile);
56-
"/>
56+
"
57+
Condition="'$(TextOnlyPackage)' != 'true'" />
58+
<StructureFile
59+
Include="**\*"
60+
Exclude="$(MSBuildProjectFullPath)"
61+
Condition="'$(TextOnlyPackage)' == 'true'"/>
5762

5863
<StaticAssetFile
5964
Include="@(StructureFile)"
@@ -109,7 +114,6 @@
109114

110115
<PropertyGroup>
111116
<NuspecFile>$(TFMPackTempOutputDir)@(NuspecFile)</NuspecFile>
112-
<NuspecFile Condition="'$(PackNuspecInPlace)' == 'true'">@(NuspecFile)</NuspecFile>
113117
</PropertyGroup>
114118
</Target>
115119

src/textOnlyPackages/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.props, $(MSBuildThisFileDirectory)..))" />
33

44
<PropertyGroup>
5-
<PackNuspecInPlace>true</PackNuspecInPlace>
5+
<TextOnlyPackage>true</TextOnlyPackage>
66

77
<TargetFramework>netstandard2.0</TargetFramework>
88
<IncludeBuildOutput>false</IncludeBuildOutput>

0 commit comments

Comments
 (0)