/// <summary> /// Generate folders and project.json's to wrap csproj's for xproj-csproj interop. /// </summary> /// <param name="args"> /// args[0]: path to a target solution /// </param> static void Main(string[] args) { var slnPath = args.Length >= 1 ? args[0] : @"path to a solution which you want to migrate from packages.config to project.json"; var sln = new Solution(slnPath); sln.GenerateWrapJson(); }
static void Main(string[] args) { var testDataPath = @"..\..\..\TestData"; var sourcePath = Path.Combine(testDataPath, "Source"); var tempPath = Path.Combine(testDataPath, "Temp"); Prepare(sourcePath, tempPath); var slnPath = Path.Combine(tempPath, "XprojInterop.sln"); var sln = new Solution(slnPath); sln.MigrateToProjectJson(); sln.GenerateWrapJson(); }