Skip to content

Commit

Permalink
fix: Set KubeOps.Generator as a DevelopmentDependency (#834)
Browse files Browse the repository at this point in the history
Fixes: #698 
This will cause `dotnet add package` to add this to the PackageReference
automatically:
```
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
```
  • Loading branch information
gamingrobot authored Jan 6, 2025
1 parent 01d28dd commit 5a98290
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/KubeOps.Generator/KubeOps.Generator.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
<IsRoslynComponent>true</IsRoslynComponent>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<DevelopmentDependency>true</DevelopmentDependency>
</PropertyGroup>

<PropertyGroup>
Expand Down
5 changes: 4 additions & 1 deletion src/KubeOps.Generator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ which results in the following `csproj` reference:

```xml
<ItemGroup>
<PackageReference Include="KubeOps.Generator" Version="..." />
<PackageReference Include="KubeOps.Generator" Version="...">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
```

Expand Down

0 comments on commit 5a98290

Please sign in to comment.