Skip to content

Commit 8699e66

Browse files
committed
improve package description and README.md
1 parent 8ad266f commit 8699e66

File tree

2 files changed

+45
-2
lines changed

2 files changed

+45
-2
lines changed

src/Smdn.MSBuild.ProjectAssets.Common/Smdn.MSBuild.ProjectAssets.Common.csproj

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ SPDX-License-Identifier: MIT
1414
</PropertyGroup>
1515

1616
<PropertyGroup Label="assembly attributes">
17-
<Description>A package of MSBuild asset files common to the various projects.</Description>
17+
<Description>Provides MSBuild project SDK that includes configurations commonly used by the various .NET projects.</Description>
1818
<CopyrightYear>2022</CopyrightYear>
1919
</PropertyGroup>
2020

2121
<PropertyGroup Label="package properties">
2222
<PackageTags>MSBuild;MSBuildSDK;project-assets;build-assets</PackageTags>
23+
<GenerateNupkgReadmeFileDependsOnTargets>$(GenerateNupkgReadmeFileDependsOnTargets);GenerateReadmeFileContent</GenerateNupkgReadmeFileDependsOnTargets>
2324
</PropertyGroup>
2425

2526
<ItemGroup>
@@ -37,4 +38,24 @@ SPDX-License-Identifier: MIT
3738
<None Include="Sdk\Sdk.props" Pack="true" PackagePath="Sdk\" />
3839
<None Include="Sdk\Sdk.targets" Pack="true" PackagePath="Sdk\" />
3940
</ItemGroup>
41+
42+
<Target Name="GenerateReadmeFileContent">
43+
<PropertyGroup>
44+
<PackageReadmeFileContent><![CDATA[# $(PackageId) $(PackageVersion)
45+
$(Description)
46+
47+
This package can be used as an [MSBuild project SDK](https://learn.microsoft.com/visualstudio/msbuild/how-to-use-project-sdk) and includes the following files:
48+
49+
- MSBuild files (`.props` and `.targets`)
50+
- Default configuration (items and properties) for .NET projects
51+
- Default configuration for code analyzers
52+
- Tools and MSBuild tasks for building and packaging
53+
- Other asset files
54+
- Default .editorconfig (including analyzer rule settings)
55+
- Icon images used in nupkg files, etc.
56+
57+
See [GitHub repository]($(RepositoryUrl)/tree/$(RepositoryBranch)/src/$(PackageId)/) for detail.
58+
]]></PackageReadmeFileContent>
59+
</PropertyGroup>
60+
</Target>
4061
</Project>

src/Smdn.MSBuild.ProjectAssets.Library/Smdn.MSBuild.ProjectAssets.Library.csproj

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ SPDX-License-Identifier: MIT
1313
</PropertyGroup>
1414

1515
<PropertyGroup Label="assembly attributes">
16-
<Description>A package of MSBuild asset files common to the library projects.</Description>
16+
<Description>Provides MSBuild project SDK that includes configurations commonly used by the library projects.</Description>
1717
<CopyrightYear>2022</CopyrightYear>
1818
</PropertyGroup>
1919

2020
<PropertyGroup Label="package properties">
2121
<PackageTags>MSBuild;MSBuildSDK;project-assets;build-assets</PackageTags>
22+
<GenerateNupkgReadmeFileDependsOnTargets>$(GenerateNupkgReadmeFileDependsOnTargets);GenerateReadmeFileContent</GenerateNupkgReadmeFileDependsOnTargets>
2223
</PropertyGroup>
2324

2425
<ItemGroup>
@@ -37,4 +38,25 @@ SPDX-License-Identifier: MIT
3738
<None Include="Sdk\Sdk.props" Pack="true" PackagePath="Sdk\" />
3839
<None Include="Sdk\Sdk.targets" Pack="true" PackagePath="Sdk\" />
3940
</ItemGroup>
41+
42+
<Target Name="GenerateReadmeFileContent">
43+
<PropertyGroup>
44+
<PackageReadmeFileContent><![CDATA[# $(PackageId) $(PackageVersion)
45+
$(Description)
46+
47+
**Note that the package [Smdn.MSBuild.ProjectAssets.Common](https://www.nuget.org/packages/Smdn.MSBuild.ProjectAssets.Common) must also be imported in order to use this package.**
48+
49+
This package can be used as an [MSBuild project SDK](https://learn.microsoft.com/visualstudio/msbuild/how-to-use-project-sdk) and includes the following files:
50+
51+
- MSBuild files (`.props` and `.targets`)
52+
- Default configuration (items and properties) for library projects
53+
- Default configuration for code analyzers
54+
- Tools and MSBuild tasks for building, testing and packaging
55+
- Other asset files
56+
- Default .editorconfig (including analyzer rule settings)
57+
58+
See [GitHub repository]($(RepositoryUrl)/tree/$(RepositoryBranch)/src/$(PackageId)/) for detail.
59+
]]></PackageReadmeFileContent>
60+
</PropertyGroup>
61+
</Target>
4062
</Project>

0 commit comments

Comments
 (0)