File tree Expand file tree Collapse file tree 1 file changed +18
-7
lines changed
src/PublicInterfaceGenerator Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change 36
36
<ItemGroup >
37
37
<PackageReference Include =" Microsoft.CodeAnalysis.Analyzers" Version =" 3.11.0" PrivateAssets =" all" />
38
38
<PackageReference Include =" Microsoft.CodeAnalysis.CSharp" Version =" 4.13.0" PrivateAssets =" all" />
39
+
40
+ <!-- Generator dependencies -->
41
+ <PackageReference Include =" ProgrammerAl.SourceGenerators.PublicInterfaceGenerator.Attributes" Version =" *" GeneratePathProperty =" true" PrivateAssets =" all" />
39
42
</ItemGroup >
40
- <!-- Reference the attributes from the generator to compile against them -->
41
- <!-- Ensure we specify PrivateAssets so the NuGet doesn't have any dependencies -->
42
- <ItemGroup >
43
- <ProjectReference Include =" ..\PublicInterfaceGenerator.Attributes\PublicInterfaceGenerator.Attributes.csproj" OutputItemType =" Analyzer" ReferenceOutputAssembly =" true" />
44
- </ItemGroup >
43
+
44
+ <PropertyGroup >
45
+ <GetTargetPathDependsOn >$(GetTargetPathDependsOn);GetDependencyTargetPaths</GetTargetPathDependsOn >
46
+ </PropertyGroup >
47
+
48
+ <Target Name =" GetDependencyTargetPaths" >
49
+ <ItemGroup >
50
+ <TargetPathWithTargetPlatformMoniker Include =" $(PKGProgrammerAl_SourceGenerators_PublicInterfaceGenerator_Attributes)\lib\netstandard2.0\ProgrammerAl.SourceGenerators.PublicInterfaceGenerator.Attributes.dll" IncludeRuntimeDependency =" false" />
51
+ </ItemGroup >
52
+ </Target >
53
+
45
54
<ItemGroup >
46
55
<!-- Package the generator in the analyzer directory of the nuget package -->
47
- <None Include =" $(OutputPath)/$(AssemblyName).dll" Pack =" true" PackagePath =" analyzers/dotnet/cs" Visible =" false" />
56
+ <!-- < None Include="$(OutputPath)/$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" /> -- >
48
57
49
58
<!-- Pack the attributes dll in the lib\netstandard2.0 path so the library consuming this nuget can use it -->
50
- <None Include =" $(OutputPath)/ProgrammerAl.SourceGenerators.PublicInterfaceGenerator.Attributes.dll" Pack =" true" PackagePath =" lib/netstandard2.0" Visible =" true" />
59
+ <!--
60
+ <None Include="$(OutputPath)/ProgrammerAl.SourceGenerators.PublicInterfaceGenerator.Attributes.dll" Pack="true" PackagePath="lib/netstandard2.0" Visible="true" />-->
51
61
52
62
<None Include =" ../../README.md" Pack =" true" PackagePath =" /" />
53
63
</ItemGroup >
64
+
54
65
<PropertyGroup >
55
66
<NuGetAudit >true</NuGetAudit >
56
67
<NuGetAuditMode >all</NuGetAuditMode >
You can’t perform that action at this time.
0 commit comments