|
6 | 6 | <Nullable>enable</Nullable> |
7 | 7 | <ImplicitUsings>enable</ImplicitUsings> |
8 | 8 | <IsPackable>true</IsPackable> |
9 | | - <IncludeBuildOutput>true</IncludeBuildOutput> |
10 | | - <EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules> |
11 | 9 |
|
12 | 10 | <!-- NuGet Metadata --> |
13 | 11 | <PackageId>ProjectR</PackageId> |
|
21 | 19 | <PackageReadmeFile>README.md</PackageReadmeFile> |
22 | 20 | <PackageLicenseExpression>MIT</PackageLicenseExpression> |
23 | 21 | <LangVersion>latest</LangVersion> |
| 22 | + |
| 23 | + <!-- CRITICAL: This ensures the package is a development-time dependency and not deployed with the consuming project's output. --> |
| 24 | + <DevelopmentDependency>true</DevelopmentDependency> |
| 25 | + |
| 26 | + <!-- CRITICAL: This prevents the generator's DLL from being added to the 'lib' folder of the NuGet package. --> |
| 27 | + <IncludeBuildOutput>false</IncludeBuildOutput> |
| 28 | + |
| 29 | + <!-- Enables stricter analysis for Roslyn components. --> |
| 30 | + <EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules> |
24 | 31 | </PropertyGroup> |
25 | 32 |
|
26 | 33 | <ItemGroup> |
27 | 34 | <AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> |
28 | 35 | <_Parameter1>ProjectR.Tests</_Parameter1> |
29 | 36 | </AssemblyAttribute> |
| 37 | + <AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> |
| 38 | + <_Parameter1>ProjectR.Sample</_Parameter1> |
| 39 | + </AssemblyAttribute> |
30 | 40 | </ItemGroup> |
31 | 41 |
|
32 | 42 | <ItemGroup> |
33 | 43 | <None Include="../README.md" Pack="true" PackagePath="\" /> |
34 | 44 | </ItemGroup> |
35 | 45 |
|
36 | 46 | <ItemGroup> |
37 | | - <PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.8.0" /> |
38 | | - <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.8.0" /> |
39 | | - <PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.9" /> |
| 47 | + <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" PrivateAssets="all" /> |
| 48 | + <PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" PrivateAssets="all" /> |
| 49 | + <PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.1" /> |
40 | 50 | </ItemGroup> |
41 | | - |
42 | | - <PropertyGroup> |
43 | | - <IncludeBuildOutput>false</IncludeBuildOutput> |
44 | | - </PropertyGroup> |
45 | | - |
| 51 | + |
46 | 52 | <ItemGroup> |
47 | | - <Content Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="lib\netstandard2.0" /> |
48 | | - <Content Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers\dotnet\cs" Visible="false" /> |
| 53 | + <None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" /> |
49 | 54 | </ItemGroup> |
50 | 55 |
|
51 | 56 | </Project> |
0 commit comments