File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/PublicInterfaceGenerator Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 38
38
<PackageReference Include =" Microsoft.CodeAnalysis.CSharp" Version =" 4.13.0" PrivateAssets =" all" />
39
39
<PackageReference Include =" ProgrammerAl.SourceGenerators.PublicInterfaceGenerator.Attributes" Version =" *" />
40
40
</ItemGroup >
41
+ <!-- Reference the attributes from the generator to compile against them -->
42
+ <!-- Ensure we specify PrivateAssets so the NuGet doesn't have any dependencies -->
43
+ <ItemGroup >
44
+ <ProjectReference Include =" ..\PublicInterfaceGenerator.Attributes\PublicInterfaceGenerator.Attributes.csproj" PrivateAssets =" All" />
45
+ </ItemGroup >
41
46
<ItemGroup >
42
47
<!-- Package the generator in the analyzer directory of the nuget package -->
43
48
<None Include =" $(OutputPath)/$(AssemblyName).dll" Pack =" true" PackagePath =" analyzers/dotnet/cs" Visible =" false" />
44
49
50
+ <!-- Pack the attributes dll in the lib\netstandard2.0 path so the library consuming this nuget can use it -->
51
+ <None Include =" $(OutputPath)/ProgrammerAl.SourceGenerators.PublicInterfaceGenerator.Attributes.dll" Pack =" true" PackagePath =" lib/netstandard2.0" Visible =" true" />
52
+
45
53
<None Include =" ../../README.md" Pack =" true" PackagePath =" /" />
46
54
</ItemGroup >
47
55
<PropertyGroup >
You can’t perform that action at this time.
0 commit comments