Skip to content

Commit

Permalink
Finishing nuget package setup
Browse files Browse the repository at this point in the history
Next up is github publish action or something
  • Loading branch information
scottbilas committed Nov 11, 2023
1 parent 98405d2 commit 7c5a0d8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/Core/Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@
<GeneratePackageOnBuild>$(_IsPublishing)</GeneratePackageOnBuild>
<Title>Some OK core utility functions</Title>
<RepositoryUrl>https://github.com/scottbilas/OkTools</RepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
</PropertyGroup>
<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="/" />
<None Include="../../LICENSE.md" Pack="true" PackagePath="/" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="PInvoke.Kernel32" />
Expand Down
3 changes: 3 additions & 0 deletions src/Core/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# OkTools.Core

Some OK core utilities.
4 changes: 3 additions & 1 deletion targets/Library.targets
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
<!-- jetbrains annotations -->

<ItemGroup>
<PackageReference Include="JetBrains.Annotations" />
<PackageReference Include="JetBrains.Annotations">
<PrivateAssets>all</PrivateAssets> <!-- keep out of nuget packages -->
</PackageReference>
<Using Include="JetBrains.Annotations" />
</ItemGroup>

Expand Down

0 comments on commit 7c5a0d8

Please sign in to comment.