Skip to content

Commit 5a98290

Browse files
authored
fix: Set KubeOps.Generator as a DevelopmentDependency (#834)
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> ```
1 parent 01d28dd commit 5a98290

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/KubeOps.Generator/KubeOps.Generator.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
66
<IsRoslynComponent>true</IsRoslynComponent>
77
<GenerateDocumentationFile>false</GenerateDocumentationFile>
8+
<DevelopmentDependency>true</DevelopmentDependency>
89
</PropertyGroup>
910

1011
<PropertyGroup>

src/KubeOps.Generator/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ which results in the following `csproj` reference:
1616

1717
```xml
1818
<ItemGroup>
19-
<PackageReference Include="KubeOps.Generator" Version="..." />
19+
<PackageReference Include="KubeOps.Generator" Version="...">
20+
<PrivateAssets>all</PrivateAssets>
21+
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
22+
</PackageReference>
2023
</ItemGroup>
2124
```
2225

0 commit comments

Comments
 (0)