-
Notifications
You must be signed in to change notification settings - Fork 3
NuGetPackageVersions
Andrey Lipatkin edited this page Feb 13, 2015
·
8 revisions
This verification fails if version of NuGet package doesn't match specified criteria.
Control and consistency.
<Rules>
...
<NuGetPackageVersions enabled="true">
<Package id="first-package-id" version="1.0.0" />
<Package id="second-package-id" version="[2.0.3]" />
<Package id="third-package-id" version="[1.5.0, 2.0.0)" prerelease="false"/>
</NuGetPackageVersions>
...
</Rules>More details about version ranges can be found here: http://docs.nuget.org/create/versioning#Specifying-Version-Ranges-in-.nuspec-Files
Note that you can use new NuGetPackageUpdatesDetector tool to find gaps in rules: https://github.com/Litee/NuGetPackageUpdatesDetector
- Basic Rules
- FilesIncludedIntoProject
- SameNameForAssemblyAndRootNamespace
- SuppressWarnings
- TargetFrameworkProfile
- TargetFrameworkVersion
- TreatWarningsAsErrors
- WarningLevel
- NuGet Rules
- NuGetAutomaticPackagesRestore
- NuGetPackagesUsage
- NuGetPackageVersions
- ReferenceNuGetPackagesOnly
- SameNuGetPackageVersions
- StyleCop Rules
- StyleCopEnabled
- TreatStyleCopWarningsAsErrors