DotNetProjectFile.Analyzers 1.2.1

dotnet add package DotNetProjectFile.Analyzers --version 1.2.1
NuGet\Install-Package DotNetProjectFile.Analyzers -Version 1.2.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DotNetProjectFile.Analyzers" Version="1.2.1">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DotNetProjectFile.Analyzers --version 1.2.1
#r "nuget: DotNetProjectFile.Analyzers, 1.2.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DotNetProjectFile.Analyzers as a Cake Addin
#addin nuget:?package=DotNetProjectFile.Analyzers&version=1.2.1

// Install DotNetProjectFile.Analyzers as a Cake Tool
#tool nuget:?package=DotNetProjectFile.Analyzers&version=1.2.1

.NET project file analyzers

The package contains analyzers that analyze .NET project files.

MS Build project file rules

Resource file rules

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.1 3,361 2/28/2024
1.2.0 1,188 2/21/2024
1.1.0 9,508 9/19/2023
1.0.14 168 9/18/2023
1.0.13 698 9/4/2023
1.0.12 744 8/16/2023
1.0.11 461 8/9/2023
1.0.10 402 8/3/2023
1.0.9 686 7/21/2023
1.0.8 311 7/18/2023
1.0.7 2,353 7/16/2023
1.0.6 250 7/13/2023
1.0.5 208 7/10/2023
1.0.4 145 7/10/2023
1.0.3 163 7/10/2023
1.0.2 164 7/8/2023
1.0.1 196 7/7/2023
1.0.0 143 7/5/2023

v1.2.1
- Proj0021: Build actions should have a single task. (NEW RULE)
- Proj0022: Build action includes should exist. (NEW RULE)
- Proj0240: Enable package validation. (NEW RULE)
- Proj0241: Enable package baseline validation. (NEW RULE)
v1.2.0
- Proj0006: Directory.Build.Props is not required to be added as additional file. (FP)
- Proj0020: Item group should only contain nodes of a single type. (NEW RULE)
- Proj0600: Avoid <GeneratePackageOnBuild> if <IsPackable> is false. (NEW RULE)
v1.1.0
- Support of Directory.Build.props.
v1.0.14
- Proj0018: Fix false positive reports always triggering. (FP)
- Proj0018: Fix typo in message.
v1.0.13
- Proj0004: Only report when <NuGetAudit> is explicitly disabled. (FP)
v1.0.12
- Proj1200: Exclude private assets as project file dependency. (NEW RULE)
- Proj0015, Proj0016: Order references case-insensitive. (FP & FN)
v1.0.11
- Proj0015, Proj0016: Order references that are substrings of each other. (FP & FN)
- Proj1100: Avoid using Moq. (NEW RULE)
v1.0.10
- Proj0017: Can't create alias for static using directive. (NEW RULE)
- Proj0018: Order using directives by type. (NEW RULE)
- Proj0019: Order using directives alphabetically. (NEW RULE)
- Proj0202: Both <Description> and <PackageDescription> are fine. (FP)
- Improved message for Proj2002 to be more informative.
- Depend on Microsoft.CodeAnalysis.Workspaces.Common version 4.0.1.
v1.0.9
- Proj0016: Improve ordering of file paths. (FP & FN)
v1.0.8
- Proj0013: Include package references only once. (NEW RULE)
- Proj0014: Include project references only once. (NEW RULE)
- Proj0015: Order package references alphabetically. (NEW RULE)
- Proj0016: Order project references alphabetically. (NEW RULE)
- Proj0400: Define the project publishability explicitly. (NEW RULE)
- Support <Choose> nodes.
v1.0.7
- Proj0011: Define properties once. (NEW RULE)
- Proj0012: Reassign properties with different value. (NEW RULE)
- Proj0200: Define IsPackable explicitly. (NEW RULE)
- Proj0201: Define the project version explicitly. (NEW RULE)
- Proj0202: Define the project description explicitly. (NEW RULE)
- Proj0203: Define the project authors explicitly. (NEW RULE)
- Proj0204: Define the project tags explicitly. (NEW RULE)
- Proj0205: Define the project repository URL explicitly. (NEW RULE)
- Proj0206: Define the project URL explicitly. (NEW RULE)
- Proj0207: Define the project copyright explicitly. (NEW RULE)
- Proj0208: Define the project release notes explicitly. (NEW RULE)
- Proj0209: Define the project readme file explicitly. (NEW RULE)
- Proj0210: Define the project license explicitly. (NEW RULE)
- Proj0211: Avoid using deprecated license definition. (NEW RULE)
- Proj0212: Define the project icon file explicitly. (NEW RULE)
- Proj0213: Define the project icon URL explicitly. (NEW RULE)
- Proj0214: Define the NuGet project ID explicitly. (NEW RULE)
v1.0.6
- Proj0010: Define OutputType explicitly. (NEW RULE)
- Proj1001: Reported dependency with missing analyser is now nearest name match. (FP)
- Proj1001: Added 14 new package specific analyzers. (FN)
- Prop2000: Embed valid resource files. (NEW RULE)
- Prop2001: Define data in a resource file. (NEW RULE)
- Proj2002: Sort resource file values alphabetically. (NEW RULE)
- Proj2003: Add invariant fallback resources. (NEW RULE)
- Proj2004: Add invariant fallback values. (NEW RULE)
v1.0.5
- Proj1003: Sonar Analyzers defined in prop. (FP)
v1.0.4
- Proj1003: Use Sonar Analyzers. (NEW RULE)
v1.0.3
- Proj0007: <Import > is never an empty node. (FP)
v1.0.2
- Proj0006: Add additional files to improve static code analysis. (NEW RULE)
- Proj0007: Remove empty nodes. (NEW RULE)
- Proj0008: Remove folder nodes. (NEW RULE)
- Proj0009: Use the TragetFramework node for a single target framework. (NEW RULE)
- Proj1000: Use the .NET project file analyzers. (NEW RULE)
v1.0.1
- Proj0002: Added Microsoft.CodeAnalysis.Analyzers as analyzer to add. (FN)
- Proj0005: Define package reference assets as attributes. (NEW RULE)
- Proj1001: Dropped Qowaiv.Analyzers.CSharp. (FP)
v1.0.0
- Proj0001: MS Build project file could not be located. (NEW RULE)
- Proj0002: Upgrade legacy MS Build project file. (NEW RULE)
- Proj0003: Define usings explicit. (NEW RULE)
- Proj1001: Use analyzers for packages. (NEW RULE)