|
6 | 6 | <AssemblyName>Microsoft.EntityFrameworkCore.Analyzers</AssemblyName> |
7 | 7 | <RootNamespace>Microsoft.EntityFrameworkCore</RootNamespace> |
8 | 8 | <IncludeBuildOutput>false</IncludeBuildOutput> |
9 | | - <NuspecFile>$(MSBuildProjectName).nuspec</NuspecFile> |
| 9 | + <IncludeSymbols>true</IncludeSymbols> |
10 | 10 | <CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)..\..\rulesets\EFCore.noxmldocs.ruleset</CodeAnalysisRuleSet> |
11 | 11 | <ImplicitUsings>true</ImplicitUsings> |
12 | 12 | <EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules> |
13 | 13 | <NoWarn>$(NoWarn);NU5128</NoWarn> |
14 | 14 | <NoWarn>$(NoWarn);RS1038</NoWarn> <!-- Compiler extensions should be implemented in assemblies with compiler-provided references, #35752 --> |
| 15 | + |
| 16 | + <!-- Analyzer settings --> |
| 17 | +<!-- |
| 18 | + <DevelopmentDependency>true</DevelopmentDependency> |
| 19 | + <SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking> |
| 20 | +--> |
15 | 21 | </PropertyGroup> |
16 | 22 |
|
17 | 23 | <ItemGroup> |
|
34 | 40 | <PackageReference Update="NETStandard.Library" PrivateAssets="all" /> |
35 | 41 | </ItemGroup> |
36 | 42 |
|
37 | | - <Target Name="SetPackageProperties" BeforeTargets="InitializeStandardNuspecProperties" DependsOnTargets="Build"> |
38 | | - <PropertyGroup> |
39 | | - <!-- Make sure we create a symbols.nupkg. --> |
40 | | - <IncludeSymbols>true</IncludeSymbols> |
41 | | - </PropertyGroup> |
42 | | - |
43 | | - <ItemGroup> |
44 | | - <NuspecProperty Include="targetFramework=$(TargetFramework)" /> |
45 | | - <NuspecProperty Include="OutputBinary=$(OutputPath)$(AssemblyName).dll" /> |
46 | | - <NuspecProperty Include="OutputSymbol=$(OutputPath)$(AssemblyName).pdb" /> |
47 | | - </ItemGroup> |
48 | | - </Target> |
| 43 | + <!-- Package the analyzer DLL and PDB in the analyzers/dotnet/cs directory --> |
| 44 | + <ItemGroup> |
| 45 | + <None Include="$(OutputPath)$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" /> |
| 46 | + <None Include="$(OutputPath)$(AssemblyName).pdb" Pack="true" PackagePath="analyzers/dotnet/cs" /> |
| 47 | + <None Include="PACKAGE.md" Pack="true" PackagePath="docs" /> |
| 48 | + </ItemGroup> |
49 | 49 |
|
50 | 50 | <ItemGroup> |
51 | 51 | <AdditionalFiles Include="AnalyzerReleases.Shipped.md" /> |
|
0 commit comments