-
Notifications
You must be signed in to change notification settings - Fork 3
NuGetAutomaticPackagesRestore
Andrey Lipatkin edited this page Feb 8, 2015
·
3 revisions
Fails if there are references to nuget.targets from any .csproj file except those that are specified as exceptions.
For more details why old approach to NuGet automatic package restore is not recommended anymore please look here: https://docs.nuget.org/Consume/Package-Restore/Migrating-to-Automatic-Package-Restore
<Rules>
...
<NuGetAutomaticPackagesRestore enabled="true">
<Exception>
<Project>ProjectToExcludeFromCheck.csproj</Project>
</Exception>
<Exception>
<Project>AnotherProjectToExcludeFromCheck.csproj</Project>
</Exception>
</NuGetAutomaticPackagesRestore>
...
</Rules>
- Basic Rules
- FilesIncludedIntoProject
- SameNameForAssemblyAndRootNamespace
- SuppressWarnings
- TargetFrameworkProfile
- TargetFrameworkVersion
- TreatWarningsAsErrors
- WarningLevel
- NuGet Rules
- NuGetAutomaticPackagesRestore
- NuGetPackagesUsage
- NuGetPackageVersions
- ReferenceNuGetPackagesOnly
- SameNuGetPackageVersions
- StyleCop Rules
- StyleCopEnabled
- TreatStyleCopWarningsAsErrors