Skip to content

Commit

Permalink
Add ReadMe.md to Library projects, if it exists in src folder
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-hawker committed Sep 7, 2023
1 parent 5252507 commit dad5a03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ToolkitComponent.SourceProject.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<Version Condition="'$(Version)' == ''">$(MajorVersion).$(MinorVersion).$(DateForVersion)</Version>
<Version Condition="'$(PreviewVersion)' != ''">$(Version)-$(PreviewVersion)</Version>
<PackageId Condition="'$(PackageId)' == ''">$(PackageIdPrefix).$(PackageIdVariant).$(ToolkitComponentName)</PackageId>
<PackageReadmeFile Condition="Exists('$(MSBuildProjectDirectory)\ReadMe.md')">ReadMe.md</PackageReadmeFile>
</PropertyGroup>

<!-- Auto Generate our own Assembly Info -->
Expand Down Expand Up @@ -113,6 +114,8 @@

<ItemGroup>
<Compile Include="$(GeneratedAssemblyInfoPath)" />

<None Include="$(MSBuildProjectDirectory)\ReadMe.md" Pack="true" PackagePath="\" Condition="Exists('$(MSBuildProjectDirectory)\ReadMe.md')"/>
</ItemGroup>

<!-- Write out new auto-generated AssemblyInfo.g.cs file -->
Expand Down

0 comments on commit dad5a03

Please sign in to comment.