|
4 | 4 | <TargetFramework>netstandard2.0</TargetFramework>
|
5 | 5 | <!-- Do not include the generator as a lib dependency -->
|
6 | 6 | <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> |
7 | 11 | <IsPackable>true</IsPackable>
|
8 | 12 | <LangVersion>latest</LangVersion>
|
9 | 13 | <ImplicitUsings>enable</ImplicitUsings>
|
|
25 | 29 | <RepositoryUrl>https://github.com/ProgrammerAL/public-interface-generator</RepositoryUrl>
|
26 | 30 | <RepositoryType>git</RepositoryType>
|
27 | 31 | <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> |
31 | 32 | </PropertyGroup>
|
32 | 33 | <ItemGroup>
|
33 | 34 | <PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" PrivateAssets="all" />
|
34 | 35 | <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="*" /> |
40 | 37 | </ItemGroup>
|
41 | 38 | <ItemGroup>
|
42 | 39 | <!-- Package the generator in the analyzer directory of the nuget package -->
|
43 | 40 | <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" /> |
46 | 41 | <None Include="../../README.md" Pack="true" PackagePath="/" />
|
47 | 42 | </ItemGroup>
|
48 | 43 | <PropertyGroup>
|
|
0 commit comments