Skip to content

Commit c763fc3

Browse files
committed
Changed nuget to reference the shared Attributes nuget
1 parent dc37e31 commit c763fc3

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

src/PublicInterfaceGenerator.Attributes/PublicInterfaceGenerator.Attributes.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,8 @@
2424
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" PrivateAssets="all" />
2525
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.13.0" PrivateAssets="all" />
2626
</ItemGroup>
27+
28+
<ItemGroup>
29+
<None Include="../../README.md" Pack="true" PackagePath="/" />
30+
</ItemGroup>
2731
</Project>

src/PublicInterfaceGenerator/PublicInterfaceGenerator.csproj

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<!-- Do not include the generator as a lib dependency -->
66
<IncludeBuildOutput>false</IncludeBuildOutput>
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>
9+
</PropertyGroup>
10+
<PropertyGroup>
711
<IsPackable>true</IsPackable>
812
<LangVersion>latest</LangVersion>
913
<ImplicitUsings>enable</ImplicitUsings>
@@ -25,24 +29,15 @@
2529
<RepositoryUrl>https://github.com/ProgrammerAL/public-interface-generator</RepositoryUrl>
2630
<RepositoryType>git</RepositoryType>
2731
<PackageTags>source generator</PackageTags>
28-
29-
<!--Mark the nuget as a dev dependency, so any projects using this nuget don't auto pull in this project-->
30-
<DevelopmentDependency>true</DevelopmentDependency>
3132
</PropertyGroup>
3233
<ItemGroup>
3334
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" PrivateAssets="all" />
3435
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.13.0" PrivateAssets="all" />
35-
</ItemGroup>
36-
<!-- Reference the attributes from the generator to compile against them -->
37-
<!-- Ensure we specify PrivateAssets so the NuGet doesn't have any dependencies -->
38-
<ItemGroup>
39-
<ProjectReference Include="..\PublicInterfaceGenerator.Attributes\PublicInterfaceGenerator.Attributes.csproj" PrivateAssets="All" />
36+
<PackageReference Include="ProgrammerAl.SourceGenerators.PublicInterfaceGenerator.Attributes" Version="*" />
4037
</ItemGroup>
4138
<ItemGroup>
4239
<!-- Package the generator in the analyzer directory of the nuget package -->
4340
<None Include="$(OutputPath)/$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
44-
<!-- Pack the attributes dll in the lib\netstandard2.0 path so the library consuming this nuget can use it -->
45-
<None Include="$(OutputPath)/ProgrammerAl.SourceGenerators.PublicInterfaceGenerator.Attributes.dll" Pack="true" PackagePath="lib/netstandard2.0" Visible="false" />
4641
<None Include="../../README.md" Pack="true" PackagePath="/" />
4742
</ItemGroup>
4843
<PropertyGroup>

0 commit comments

Comments
 (0)