|
1 |
| -<Project Sdk="Microsoft.NET.Sdk"> |
| 1 | +<Project Sdk="Microsoft.NET.Sdk"> |
2 | 2 |
|
3 |
| - <PropertyGroup> |
4 |
| - <ImplicitUsings>enable</ImplicitUsings> |
5 |
| - <Nullable>enable</Nullable> |
6 |
| - </PropertyGroup> |
| 3 | + <PropertyGroup> |
| 4 | + <ImplicitUsings>enable</ImplicitUsings> |
| 5 | + <Nullable>enable</Nullable> |
| 6 | + <IsRoslynComponent>true</IsRoslynComponent> |
| 7 | + </PropertyGroup> |
7 | 8 |
|
8 |
| - <PropertyGroup> |
9 |
| - <EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules> |
10 |
| - </PropertyGroup> |
| 9 | + <PropertyGroup> |
| 10 | + <EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules> |
| 11 | + </PropertyGroup> |
11 | 12 |
|
12 | 13 | <ItemGroup>
|
13 | 14 | <PackageReference Include="Microsoft.CodeAnalysis.CSharp" PrivateAssets="all" />
|
14 | 15 | <PackageReference Include="Microsoft.CodeAnalysis.Analyzers" PrivateAssets="all" />
|
15 | 16 | </ItemGroup>
|
16 | 17 |
|
17 |
| - <!-- |
| 18 | + <!-- |
18 | 19 | Source generators are built and packaged as analyzers and not "normal" NuGet libraries.
|
19 | 20 | -->
|
20 | 21 |
|
21 |
| - <PropertyGroup> |
22 |
| - <!-- Generators must target netstandard2.0. --> |
23 |
| - <TargetFramework>netstandard2.0</TargetFramework> |
24 |
| - <TargetFrameworks></TargetFrameworks> |
| 22 | + <PropertyGroup> |
| 23 | + <!-- Generators must target netstandard2.0. --> |
| 24 | + <TargetFramework>netstandard2.0</TargetFramework> |
| 25 | + <TargetFrameworks></TargetFrameworks> |
25 | 26 |
|
26 |
| - <!-- Do not include the generator as a lib dependency --> |
27 |
| - <IncludeBuildOutput>false</IncludeBuildOutput> |
| 27 | + <!-- Do not include the generator as a lib dependency --> |
| 28 | + <IncludeBuildOutput>false</IncludeBuildOutput> |
28 | 29 |
|
29 |
| - <!-- Suppress false-positive error NU5128 when packing analyzers with no lib/ref files. --> |
30 |
| - <SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking> |
| 30 | + <!-- Suppress false-positive error NU5128 when packing analyzers with no lib/ref files. --> |
| 31 | + <SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking> |
31 | 32 |
|
32 |
| - <!-- Suppress generation of symbol package (.snupkg). --> |
33 |
| - <IncludeSymbols>false</IncludeSymbols> |
| 33 | + <!-- Suppress generation of symbol package (.snupkg). --> |
| 34 | + <IncludeSymbols>false</IncludeSymbols> |
34 | 35 |
|
35 |
| - <!-- Additional NuGet package properties. --> |
36 |
| - <Description>This package contains source generators for interacting with Actor services using Dapr.</Description> |
37 |
| - <PackageTags>$(PackageTags);Actors</PackageTags> |
38 |
| - </PropertyGroup> |
| 36 | + <!-- Additional NuGet package properties. --> |
| 37 | + <Description>This package contains source generators for interacting with Actor services using Dapr.</Description> |
| 38 | + <PackageTags>$(PackageTags);Actors</PackageTags> |
| 39 | + </PropertyGroup> |
39 | 40 |
|
40 |
| - <ItemGroup> |
41 |
| - <!-- Package the generator in the analyzer directory of the NuGet package --> |
42 |
| - <None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" /> |
43 |
| - </ItemGroup> |
| 41 | + <ItemGroup> |
| 42 | + <!-- Package the generator in the analyzer directory of the NuGet package --> |
| 43 | + <None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" /> |
| 44 | + </ItemGroup> |
| 45 | + |
| 46 | + <ItemGroup> |
| 47 | + <AdditionalFiles Include="AnalyzerReleases.Shipped.md" /> |
| 48 | + <AdditionalFiles Include="AnalyzerReleases.Unshipped.md" /> |
| 49 | + </ItemGroup> |
| 50 | + |
| 51 | + <ItemGroup> |
| 52 | + <InternalsVisibleTo Include="$(AssemblyName).Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b1f597635c44597fcecb493e2b1327033b29b1a98ac956a1a538664b68f87d45fbaada0438a15a6265e62864947cc067d8da3a7d93c5eb2fcbb850e396c8684dba74ea477d82a1bbb18932c0efb30b64ff1677f85ae833818707ac8b49ad8062ca01d2c89d8ab1843ae73e8ba9649cd28666b539444dcdee3639f95e2a099bb2"/> |
| 53 | + </ItemGroup> |
44 | 54 |
|
45 | 55 | </Project>
|
0 commit comments