Skip to content

Commit c31b65a

Browse files
kzucursoragent
andcommitted
Keep embedded project readmes out of the NuGet build folder.
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent de113cc commit c31b65a

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎src/Stunts.CodeAnalysis/Stunts.CodeAnalysis.csproj‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
</ItemGroup>
2424

2525
<ItemGroup>
26-
<!-- When not packed standalone, include the build targets/sources too -->
26+
<!-- When not packed standalone, include the build targets/sources too.
27+
The project readme is the package readme, not a build asset. -->
28+
<None Remove="readme.md" Condition="'$(IsPackable)' != 'true'" />
2729
<None Update="@(None)" PackFolder="build" FrameworkSpecific="true" Condition="'$(IsPackable)' != 'true'" />
2830
<InternalsVisibleTo Include="Stunts.UnitTests" />
2931
</ItemGroup>

‎src/Stunts.DynamicProxy/Stunts.DynamicProxy.csproj‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
</ItemGroup>
2626

2727
<ItemGroup>
28-
<!-- When not packed standalone, include the build targets/sources too -->
28+
<!-- When not packed standalone, include the build targets/sources too.
29+
The project readme is the package readme, not a build asset. -->
30+
<None Remove="readme.md" Condition="'$(IsPackable)' != 'true'" />
2931
<None Update="@(None)" PackFolder="build\netstandard2.0" Condition="'$(IsPackable)' != 'true'" />
3032
<PackageFile Include="@(None)" PackFolder="buildTransitive\netstandard2.0" Condition="'$(IsPackable)' != 'true'" />
3133
</ItemGroup>

‎src/Stunts.Package/Stunts.Package.msbuildproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ service.AddBehavior(...);
2222
<None Include="*.props;*.targets" Exclude="Stunts.Version.props" PackFolder="build\netstandard2.0" />
2323
<!-- Default items still include the unversioned file. Only the poked copy in obj should ship. -->
2424
<None Remove="Stunts.Version.props" />
25-
<PackageFile Include="@(None)" PackFolder="buildTransitive\netstandard2.0" />
25+
<PackageFile Include="@(None)" Exclude="@(None -> WithMetadataValue('Filename', 'readme'))" PackFolder="buildTransitive\netstandard2.0" />
2626
</ItemGroup>
2727
<ItemGroup>
2828
<PackageReference Update="NuGetizer" Version="$(DogfoodingVersion)" Visible="false" Condition="Exists('$(MSBuildThisFileDirectory)..\..\..\nugetizer\bin\')" />

0 commit comments

Comments
 (0)