Skip to content

Commit

Permalink
chore: Move globaljson in its own file
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Apr 4, 2024
1 parent 9b8e93a commit cddbb6b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
24 changes: 24 additions & 0 deletions src/NvGet/Helpers/GlobalJson.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using NuGet.Common;
using NuGet.Packaging.Core;
using NvGet.Contracts;
using NvGet.Entities;
using NvGet.Extensions;
using NuGet.Versioning;
using Uno.Extensions;
using Newtonsoft.Json;

namespace NvGet.Helpers
{
public class GlobalJson
{
[JsonProperty("msbuild-sdks")]
public Dictionary<string, string> MSBuildSdks { get; set; }
}
}
6 changes: 0 additions & 6 deletions src/NvGet/Helpers/SolutionHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,4 @@ private static async Task<PackageReference[]> GetGlobalJsonFileReferences(Cancel
.ToArray();
}
}

public class GlobalJson
{
[JsonProperty("msbuild-sdks")]
public Dictionary<string, string> MSBuildSdks { get; set; }
}
}

0 comments on commit cddbb6b

Please sign in to comment.