Skip to content

Commit 65e50a5

Browse files
Variouis fixes for packaging as Analyzer.
1 parent 6cc494e commit 65e50a5

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

src/Moq.Analyzers/Moq.Analyzers.csproj

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
6+
<IncludeBuildOutput>false</IncludeBuildOutput>
7+
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
8+
9+
<DevelopmentDependency>true</DevelopmentDependency>
10+
<NoPackageAnalysis>true</NoPackageAnalysis>
611

712
<Description>PosInformatique.Moq.Analyzers is a library to verify syntax and code design when writing the unit tests using the Moq library.</Description>
813
<PackageIcon>Icon.png</PackageIcon>
9-
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1014
<PackageProjectUrl>https://github.com/PosInformatique/PosInformatique.Moq.Analyzers</PackageProjectUrl>
1115
<PackageReadmeFile>README.md</PackageReadmeFile>
1216
<PackageReleaseNotes>
@@ -15,7 +19,9 @@
1519
- MQ1000: Verify() and VerifyAll() methods should be called when instantiate a Mock&lt;T&gt; instances
1620
- MQ1001: The Mock&lt;T&gt; instance behavior should be defined to Strict mode.
1721
</PackageReleaseNotes>
18-
<PackageTags>moq analyzers unittest c# roselyn compiler source code</PackageTags>
22+
<PackageTags>moq analyzers unittest c# roselyn compiler source code mock</PackageTags>
23+
24+
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);_AddAnalyzersToOutput</TargetsForTfmSpecificContentInPackage>
1925

2026
</PropertyGroup>
2127

@@ -35,4 +41,10 @@
3541
</None>
3642
</ItemGroup>
3743

44+
<Target Name="_AddAnalyzersToOutput">
45+
<ItemGroup>
46+
<TfmSpecificPackageFile Include="$(OutputPath)\$(AssemblyName).dll" PackagePath="analyzers/dotnet/cs" />
47+
</ItemGroup>
48+
</Target>
49+
3850
</Project>

0 commit comments

Comments
 (0)