Skip to content

Commit

Permalink
Include README in nuget packages
Browse files Browse the repository at this point in the history
  • Loading branch information
twogood committed Jan 11, 2025
1 parent f0eb883 commit a0b92ac
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
<PropertyGroup>
<LangVersion>default</LangVersion>
<TargetFramework>net8.0</TargetFramework>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Dapper" Version="2.1.35" />
<PackageReference Include="Dapper" Version="2.1.35"/>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Activout.DatabaseClient\Activout.DatabaseClient.csproj" />
<ProjectReference Include="..\Activout.DatabaseClient\Activout.DatabaseClient.csproj"/>
<None Include="README.md" Pack="true" PackagePath="\"/>
</ItemGroup>

</Project>
1 change: 1 addition & 0 deletions Activout.DatabaseClient.Dapper/README.md
4 changes: 3 additions & 1 deletion Activout.DatabaseClient/Activout.DatabaseClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
<PropertyGroup>
<LangVersion>default</LangVersion>
<TargetFramework>net8.0</TargetFramework>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ImpromptuInterface" Version="8.0.4" />
<PackageReference Include="ImpromptuInterface" Version="8.0.4"/>
<None Include="README.md" Pack="true" PackagePath="\"/>
</ItemGroup>

</Project>
1 change: 1 addition & 0 deletions Activout.DatabaseClient/README.md
9 changes: 3 additions & 6 deletions make-nuget.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
set -e
cd `dirname $0`
cd "$(dirname "$0")" || exit 1
VERSION=$1
if [ -z "$VERSION" ]; then
echo "Missing version on command line!" >&2
Expand All @@ -27,6 +27,8 @@ pack()
--include-symbols \
--include-source \
"$_CSPROJ"

ls -1 "$(dirname "$_CSPROJ")"/bin/Release/*."$VERSION".*nupkg
}

pack "Activout.DatabaseClient/Activout.DatabaseClient.csproj" \
Expand All @@ -35,8 +37,3 @@ pack "Activout.DatabaseClient/Activout.DatabaseClient.csproj" \
pack "Activout.DatabaseClient.Dapper/Activout.DatabaseClient.Dapper.csproj" \
"Activout Database Client - Dapper backend" \
"Dapper Backend for Activout.DatabaseClient."


echo "Markdown URL:"
echo "https://raw.githubusercontent.com/twogood/Activout.DatabaseClient/master/README.md"

0 comments on commit a0b92ac

Please sign in to comment.