Skip to content

Commit 0336525

Browse files
committed
CI: fixing create solution
using vscode package to generate sln files
1 parent 64a9160 commit 0336525

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

Assets/Editor/CreateSolution.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
#if UNITY_EDITOR
22

3-
using Unity.CodeEditor;
3+
using System.IO;
44
using UnityEditor;
5+
using UnityEngine;
6+
using VSCodeEditor;
57

68
namespace GitTools
79
{
810
public static class Solution
911
{
1012
public static void Sync()
1113
{
12-
CodeEditor.Editor.CurrentCodeEditor.SyncAll();
14+
var projectGeneration = new ProjectGeneration(Directory.GetParent(Application.dataPath).FullName);
1315
AssetDatabase.Refresh();
16+
projectGeneration.GenerateAndWriteSolutionAndProjects();
1417
}
1518
}
1619
}

Assets/Editor/GitTools.asmdef

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "GitTools",
33
"rootNamespace": "",
44
"references": [
5-
"GUID:b93f844d45cfcc44fa2b0eed5c9ec6bb"
5+
"GUID:8b845b123ab418448a8be2935fa804e0"
66
],
77
"includePlatforms": [
88
"Editor"

0 commit comments

Comments
 (0)