Skip to content

Commit 29e4aab

Browse files
committed
Added NoPackageAnalysis to csproj
1 parent c763fc3 commit 29e4aab

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/PublicInterfaceGenerator/PublicInterfaceGenerator.csproj

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@
55
<!-- Do not include the generator as a lib dependency -->
66
<IncludeBuildOutput>false</IncludeBuildOutput>
77
<!--Mark the nuget as a dev dependency, so any projects using this nuget don't auto pull in this project-->
8-
<DevelopmentDependency>true</DevelopmentDependency>
8+
<DevelopmentDependency>true</DevelopmentDependency>
9+
<IsPackable>true</IsPackable>
10+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
11+
<!--Skip Package Analysis because it'll complain we don't have any files at the "lib/netstandard2.0" path, which is okay because this is a source generator-->
12+
<NoPackageAnalysis>true</NoPackageAnalysis>
913
</PropertyGroup>
1014
<PropertyGroup>
11-
<IsPackable>true</IsPackable>
1215
<LangVersion>latest</LangVersion>
1316
<ImplicitUsings>enable</ImplicitUsings>
1417
<Nullable>enable</Nullable>
@@ -33,11 +36,12 @@
3336
<ItemGroup>
3437
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" PrivateAssets="all" />
3538
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.13.0" PrivateAssets="all" />
36-
<PackageReference Include="ProgrammerAl.SourceGenerators.PublicInterfaceGenerator.Attributes" Version="*" />
39+
<PackageReference Include="ProgrammerAl.SourceGenerators.PublicInterfaceGenerator.Attributes" Version="*" GeneratePathProperty="true" />
3740
</ItemGroup>
3841
<ItemGroup>
3942
<!-- Package the generator in the analyzer directory of the nuget package -->
4043
<None Include="$(OutputPath)/$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
44+
4145
<None Include="../../README.md" Pack="true" PackagePath="/" />
4246
</ItemGroup>
4347
<PropertyGroup>

0 commit comments

Comments
 (0)