DotNetProjectFile.Analyzers
1.4.1
See the version list below for details.
dotnet add package DotNetProjectFile.Analyzers --version 1.4.1
NuGet\Install-Package DotNetProjectFile.Analyzers -Version 1.4.1
<PackageReference Include="DotNetProjectFile.Analyzers" Version="1.4.1"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add DotNetProjectFile.Analyzers --version 1.4.1
#r "nuget: DotNetProjectFile.Analyzers, 1.4.1"
// Install DotNetProjectFile.Analyzers as a Cake Addin #addin nuget:?package=DotNetProjectFile.Analyzers&version=1.4.1 // Install DotNetProjectFile.Analyzers as a Cake Tool #tool nuget:?package=DotNetProjectFile.Analyzers&version=1.4.1
.NET project file analyzers
The package contains analyzers that analyze .NET project files.
MS Build project file rules
- Proj0001 MS Build project file could not be located
- Proj0002 Upgrade legacy MS Build project files
- Proj0003 Define usings explicit
- Proj0004 Run NuGet security audits automatically
- Proj0005 Define package reference assets as attributes
- Proj0006 Add additional files to improve static code analysis
- Proj0007 Remove empty nodes
- Proj0008 Remove folder nodes
- Proj0009 Use the TragetFramework node for a single target framework
- Proj0010 Define OutputType explicitly
- Proj0011 Define properties once
- Proj0012 Reassign properties with different value
- Proj0013 Include package references only once
- Proj0014 Include project references only once
- Proj0015 Order package references alphabetically
- Proj0016 Order project references alphabetically
- Proj0017 Can't create alias for static using directive
- Proj0018 Order using directives by type
- Proj0019 Order using directives alphabetically
- Proj0020 Item group should only contain nodes of a single type
- Proj0021 Build actions should have a single task
- Proj0022 Build action includes should exist
- Proj0023 Use forward slashes in paths
- Proj0024 Order package versions alphabetically
Packaging
- Proj0200 Define IsPackable explicitly
- Proj0201 Define the project version explicitly
- Proj0202 Define the project description explicitly
- Proj0203 Define the project authors explicitly
- Proj0204 Define the project tags explicitly
- Proj0205 Define the project repository URL explicitly
- Proj0206 Define the project URL explicitly
- Proj0207 Define the project copyright explicitly
- Proj0208 Define the project release notes explicitly
- Proj0209 Define the project readme file explicitly
- Proj0210 Define the project license explicitly
- Proj0211 Avoid using deprecated license definition
- Proj0212 Define the project icon file explicitly
- Proj0213 Define the project icon URL explicitly
- Proj0214 Define the NuGet project ID explicitly
- Proj0240 Enable package validation
- Proj0241 Enable package baseline validation
- Proj0242 Generate NuGet packages conditionally
- Proj0600 Avoid generating packages on build if not packable
Publishing
Central Package Management
- Proj0800 Configure Central Package Management
- Proj0801 Include 'Directory.Packages.props'
- Proj0802 Enable Central Package Management centrally
- Proj0803 Only use VersionOverride when CPM is enabled
- Proj0804 Only use Version when CPM is not enabled
- Proj0805 Define version for PackageReference
- Proj0806 VersionOverride should change the version
- Proj0807 Use Directory.Packages.props only for Central Package Management
Analyzers
- Proj1000 Use the .NET project file analyzers
- Proj1001 Use analyzers for packages
- Proj1002 Use Microsoft's analyzers
- Proj1003 Use Sonar analyzers
Formatting
Other
- Proj1100 Avoid using Moq
- Proj1101 Package references should have stable versions
- Proj1200 Exclude private assets as project file dependency
Resource file rules
Product | Versions 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. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on DotNetProjectFile.Analyzers:
Repository | Stars |
---|---|
phmonte/Buildalyzer
A utility to perform design-time builds of .NET projects without having to think too hard about it.
|
Version | Downloads | Last updated | |
---|---|---|---|
1.5.0 | 185 | 11/14/2024 | |
1.4.8 | 511 | 11/12/2024 | |
1.4.7 | 871 | 11/4/2024 | |
1.4.6 | 3,215 | 10/9/2024 | |
1.4.5 | 631 | 10/2/2024 | |
1.4.4 | 1,942 | 9/13/2024 | |
1.4.3 | 238 | 9/11/2024 | |
1.4.2 | 470 | 9/6/2024 | |
1.4.1 | 667 | 9/3/2024 | |
1.4.0 | 200 | 9/2/2024 | |
1.3.1 | 415 | 8/28/2024 | |
1.3.0 | 210 | 8/27/2024 | |
1.2.4 | 841 | 8/14/2024 | |
1.2.3.2 | 236 | 8/13/2024 | |
1.2.3.1 | 134 | 8/13/2024 | |
1.2.3 | 136 | 8/13/2024 | |
1.2.2 | 2,489 | 6/28/2024 | |
1.2.1 | 5,956 | 2/28/2024 | |
1.2.0 | 1,203 | 2/21/2024 | |
1.1.0 | 9,560 | 9/19/2023 | |
1.0.14 | 197 | 9/18/2023 | |
1.0.13 | 723 | 9/4/2023 | |
1.0.12 | 756 | 8/16/2023 | |
1.0.11 | 471 | 8/9/2023 | |
1.0.10 | 426 | 8/3/2023 | |
1.0.9 | 712 | 7/21/2023 | |
1.0.8 | 328 | 7/18/2023 | |
1.0.7 | 2,831 | 7/16/2023 | |
1.0.6 | 278 | 7/13/2023 | |
1.0.5 | 233 | 7/10/2023 | |
1.0.4 | 171 | 7/10/2023 | |
1.0.3 | 204 | 7/10/2023 | |
1.0.2 | 187 | 7/8/2023 | |
1.0.1 | 228 | 7/7/2023 | |
1.0.0 | 185 | 7/5/2023 |
v1.4.1
- Proj1101: Resolve version in project files only. (FP)
- Proj1701: Use <![CDATA[ for large texts. (NEW RULE)
- Proj1702: Omit XML declarations. (NEW RULE)
- Bound Directory.Build.props and Directory.Packages.props to other props files. (BUG)
v1.4.0
- Proj0800: Configure CPM. (NEW RULE)
- Proj0801: Include CPM file. (NEW RULE)
- Proj0802: Enable Central Package Management centrally. (NEW RULE)
- Proj0803: Only use VersionOverride when CPM is enabled. (NEW RULE)
- Proj0804: Only use Version when CPM is not enabled. (NEW RULE)
- Proj0805: Define version for PackageReference. (NEW RULE)
- Proj0806: VersionOverride should change the version (NEW RULE)
- Proj0807: Use only Directory.Packages.props for Central Package Management (NEW RULE)
- Proj1101: Report on <PackageVersion> too. (FN)
- Proj1101: Report on <PackageReference VersionOverride> too. (FN)
- Proj2100: Indent RESX. (NEW RULE)
v1.3.1
- Proj1101: Package references should have stable versions. (NEW RULE)
v1.3.0
- Proj0024: Order package versions alphabetically. (NEW RULE)
- Proj1700: Indent XML. (NEW RULE)
- Use AdditionalFileAction rather than CompilationAction for AdditionalFiles.
- Improve XML node position determination.
v1.2.4
- Support #pragma warning disable/restore.
- Proj0242: Generate NuGet packages conditionally. (NEW RULE)
v1.2.3
- Use special IOFile and IOPath to communicate with the file system.
- Proj0023: Use forward slashes in paths. (NEW RULE)
- Proj1002: Use Microsoft's .NET analyzers. (NEW RULE)
v1.2.2
- Proj0009: TargetFrameworks allowed when overriding imports. (FP)
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)