Skip to content

Commit 98dd086

Browse files
authored
Moved pragma warning restore to the correct location. (#5715)
1 parent f30f921 commit 98dd086

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NuGet.Clients/NuGet.CommandLine/Commands/ProjectFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,7 @@ private PackageDependency CreateDependencyFromProject(dynamic project, Dictionar
763763

764764
#pragma warning disable CS0612 // Type or member is obsolete
765765
if (!projectFactory.ProcessJsonFile(builder, project.DirectoryPath, null))
766+
#pragma warning restore CS0612 // Type or member is obsolete
766767
{
767768
projectFactory.ProcessNuspec(builder, null);
768769
}
@@ -773,7 +774,6 @@ private PackageDependency CreateDependencyFromProject(dynamic project, Dictionar
773774
string.Format(CultureInfo.CurrentCulture, NuGetResources.ProjectJsonPack_Deprecated, builder.Id),
774775
NuGetLogCode.NU5126));
775776
}
776-
#pragma warning restore CS0612 // Type or member is obsolete
777777

778778
VersionRange versionRange = null;
779779
if (dependencies.ContainsKey(builder.Id))

0 commit comments

Comments
 (0)