File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/PublicInterfaceGenerator Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 5
5
<!-- Do not include the generator as a lib dependency -->
6
6
<IncludeBuildOutput >false</IncludeBuildOutput >
7
7
<!-- 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 >
9
13
</PropertyGroup >
10
14
<PropertyGroup >
11
- <IsPackable >true</IsPackable >
12
15
<LangVersion >latest</LangVersion >
13
16
<ImplicitUsings >enable</ImplicitUsings >
14
17
<Nullable >enable</Nullable >
33
36
<ItemGroup >
34
37
<PackageReference Include =" Microsoft.CodeAnalysis.Analyzers" Version =" 3.11.0" PrivateAssets =" all" />
35
38
<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 " />
37
40
</ItemGroup >
38
41
<ItemGroup >
39
42
<!-- Package the generator in the analyzer directory of the nuget package -->
40
43
<None Include =" $(OutputPath)/$(AssemblyName).dll" Pack =" true" PackagePath =" analyzers/dotnet/cs" Visible =" false" />
44
+
41
45
<None Include =" ../../README.md" Pack =" true" PackagePath =" /" />
42
46
</ItemGroup >
43
47
<PropertyGroup >
You can’t perform that action at this time.
0 commit comments