Skip to content

Commit 4ab0b0b

Browse files
Copilotroji
andcommitted
Remove EFCore.Analyzers.nuspec and configure MSBuild packaging
Co-authored-by: roji <1862641+roji@users.noreply.github.com>
1 parent fd8ab36 commit 4ab0b0b

File tree

2 files changed

+13
-31
lines changed

2 files changed

+13
-31
lines changed

src/EFCore.Analyzers/EFCore.Analyzers.csproj

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,18 @@
66
<AssemblyName>Microsoft.EntityFrameworkCore.Analyzers</AssemblyName>
77
<RootNamespace>Microsoft.EntityFrameworkCore</RootNamespace>
88
<IncludeBuildOutput>false</IncludeBuildOutput>
9-
<NuspecFile>$(MSBuildProjectName).nuspec</NuspecFile>
9+
<IncludeSymbols>true</IncludeSymbols>
1010
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)..\..\rulesets\EFCore.noxmldocs.ruleset</CodeAnalysisRuleSet>
1111
<ImplicitUsings>true</ImplicitUsings>
1212
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
1313
<NoWarn>$(NoWarn);NU5128</NoWarn>
1414
<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+
-->
1521
</PropertyGroup>
1622

1723
<ItemGroup>
@@ -34,18 +40,12 @@
3440
<PackageReference Update="NETStandard.Library" PrivateAssets="all" />
3541
</ItemGroup>
3642

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>
4949

5050
<ItemGroup>
5151
<AdditionalFiles Include="AnalyzerReleases.Shipped.md" />

src/EFCore.Analyzers/EFCore.Analyzers.nuspec

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)