You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove dead code from PackageSpecReferenceDependencyProvider, and use PackageSpec's TargetFrameworkInformation in GetReferenceNearestTargetFrameworkTask (#7065)
Copy file name to clipboardExpand all lines: src/NuGet.Core/NuGet.ProjectModel/GlobalSuppressions.cs
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,6 @@
21
21
[assembly:SuppressMessage("Build","CA1062:In externally visible method 'void PackagesLockFileFormat.Write(TextWriter textWriter, PackagesLockFile lockFile)', validate parameter 'lockFile' is non-null before using it. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument.",Justification="<Pending>",Scope="member",Target="~M:NuGet.ProjectModel.PackagesLockFileFormat.Write(System.IO.TextWriter,NuGet.ProjectModel.PackagesLockFile)")]
22
22
[assembly:SuppressMessage("Build","CA1062:In externally visible method 'string PackagesLockFileUtilities.GetNuGetLockFilePath(PackageSpec project)', validate parameter 'project' is non-null before using it. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument.",Justification="<Pending>",Scope="member",Target="~M:NuGet.ProjectModel.PackagesLockFileUtilities.GetNuGetLockFilePath(NuGet.ProjectModel.PackageSpec)~System.String")]
23
23
[assembly:SuppressMessage("Build","CA1062:In externally visible method 'TargetFrameworkInformation PackageSpecExtensions.GetTargetFramework(PackageSpec project, NuGetFramework targetFramework)', validate parameter 'project' is non-null before using it. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument.",Justification="<Pending>",Scope="member",Target="~M:NuGet.ProjectModel.PackageSpecExtensions.GetTargetFramework(NuGet.ProjectModel.PackageSpec,NuGet.Frameworks.NuGetFramework)~NuGet.ProjectModel.TargetFrameworkInformation")]
24
-
[assembly:SuppressMessage("Build","CA1062:In externally visible method 'Library PackageSpecReferenceDependencyProvider.GetLibrary(LibraryRange libraryRange, NuGetFramework targetFramework)', validate parameter 'libraryRange' is non-null before using it. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument.",Justification="<Pending>",Scope="member",Target="~M:NuGet.ProjectModel.PackageSpecReferenceDependencyProvider.GetLibrary(NuGet.LibraryModel.LibraryRange,NuGet.Frameworks.NuGetFramework)~NuGet.LibraryModel.Library")]
25
24
[assembly:SuppressMessage("Build","CA1062:In externally visible method 'NuGetVersion PackageSpecUtility.SpecifySnapshot(string version, string snapshotValue)', validate parameter 'version' is non-null before using it. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument.",Justification="<Pending>",Scope="member",Target="~M:NuGet.ProjectModel.PackageSpecUtility.SpecifySnapshot(System.String,System.String)~NuGet.Versioning.NuGetVersion")]
26
25
[assembly:SuppressMessage("Build","CA1062:In externally visible method 'int LockFileDependencyComparerWithoutContentHash.GetHashCode(LockFileDependency obj)', validate parameter 'obj' is non-null before using it. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument.",Justification="<Pending>",Scope="member",Target="~M:NuGet.ProjectModel.ProjectLockFile.LockFileDependencyComparerWithoutContentHash.GetHashCode(NuGet.ProjectModel.LockFileDependency)~System.Int32")]
27
26
[assembly:SuppressMessage("Build","CA1062:In externally visible method 'void ProjectRestoreMetadata.FillClone(ProjectRestoreMetadata clone)', validate parameter 'clone' is non-null before using it. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument.",Justification="<Pending>",Scope="member",Target="~M:NuGet.ProjectModel.ProjectRestoreMetadata.FillClone(NuGet.ProjectModel.ProjectRestoreMetadata)")]
@@ -70,6 +69,5 @@
70
69
[assembly:SuppressMessage("Usage","CA2227:Collection properties should be read only",Justification="<Pending>",Scope="member",Target="~P:NuGet.ProjectModel.LockFile.CentralTransitiveDependencyGroups")]
71
70
[assembly:SuppressMessage("Usage","CA2227:Collection properties should be read only",Justification="IReadOnlySet<T> is only available in .NET 5+, so we need to use a HashSet<T> here.",Scope="member",Target="~P:NuGet.ProjectModel.RestoreAuditProperties.SuppressedAdvisories")]
72
71
[assembly:SuppressMessage("Design","CA1031:Do not catch general exception types",Justification="<Pending>",Scope="member",Target="~M:NuGet.ProjectModel.LockFileFormat.Utf8JsonRead(System.IO.Stream,NuGet.Common.ILogger,System.String,NuGet.ProjectModel.LockFileReadFlags)~NuGet.ProjectModel.LockFile")]
73
-
[assembly:SuppressMessage("Performance","CA1822:Mark members as static",Justification="<Pending>",Scope="member",Target="~M:NuGet.ProjectModel.PackageSpecReferenceDependencyProvider.AddLibraryProperties(NuGet.LibraryModel.Library,NuGet.ProjectModel.PackageSpec,NuGet.Frameworks.NuGetFramework)")]
74
72
[assembly:SuppressMessage("Performance","CA1822:Mark members as static",Justification="<Pending>",Scope="member",Target="~M:NuGet.ProjectModel.ProjectRestoreMetadata.GetSources(System.Collections.Generic.IList{NuGet.Configuration.PackageSource})~System.Collections.Generic.HashSet{System.String}")]
0 commit comments