9
9
<DevelopmentDependency >true</DevelopmentDependency >
10
10
<EnforceExtendedAnalyzerRules >true</EnforceExtendedAnalyzerRules >
11
11
<IsRoslynComponent >true</IsRoslynComponent >
12
+ <RunAfterTargets >Build</RunAfterTargets >
12
13
13
14
<!-- Main package metadata -->
14
15
<PackageId >CodeOfChaos.GeneratorTools</PackageId >
28
29
29
30
<ItemGroup >
30
31
<InternalsVisibleTo Include =" Benchmarks.CodeOfChaos.GeneratorTools" />
31
- </ItemGroup >
32
+ </ItemGroup >
32
33
33
34
<!-- Ensure important files are packaged correctly -->
34
35
<ItemGroup Condition =" '$(Configuration)' != 'Benchmark'" >
39
40
40
41
<!-- Reference dependencies -->
41
42
<ItemGroup >
42
- <!-- Roslyn dependencies (kept private to avoid propagation to consumers) -->
43
43
<PackageReference Include =" IndexRange" Version =" 1.0.3" PrivateAssets =" all" GeneratePathProperty =" true" />
44
44
<PackageReference Include =" IsExternalInit" Version =" 1.0.3" PrivateAssets =" all" GeneratePathProperty =" true" />
45
45
<PackageReference Include =" Microsoft.CodeAnalysis.Analyzers" Version =" 3.11.0" >
46
- <PrivateAssets >all</PrivateAssets >
47
- <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
46
+ <PrivateAssets >all</PrivateAssets >
47
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
48
48
</PackageReference >
49
49
<PackageReference Include =" Microsoft.CodeAnalysis.Common" Version =" 4.12.0" PrivateAssets =" all" />
50
50
<PackageReference Include =" Microsoft.CodeAnalysis.CSharp" Version =" 4.12.0" PrivateAssets =" all" />
51
51
</ItemGroup >
52
52
53
- <!-- Ensure DLL is packaged as an analyzer -->
53
+ <!-- Include DLLs as analyzers -->
54
54
<ItemGroup >
55
- <Analyzer Include =" $(OutputPath)\$(AssemblyName).dll" Pack =" true" />
56
- <Analyzer Include =" $(PkgIsExternalInit)\lib\$(TragetFramework)\*.dll" Pack =" true" />
57
- <Analyzer Include =" $(PkgIndexRange)\lib\$(TragetFramework)\*.dll" Pack =" true" />
55
+ <None Include =" $(PkgIsExternalInit)\lib\$(TargetFramework)\*.dll" Pack =" true" PackagePath =" analyzers/dotnet/cs" Visible =" false" />
56
+ <None Include =" $(PkgIndexRange)\lib\$(TargetFramework)\*.dll" Pack =" true" PackagePath =" analyzers/dotnet/cs" Visible =" false" />
58
57
</ItemGroup >
59
58
60
59
</Project >
0 commit comments