- Home /
Question by
marserMD · Dec 03, 2016 at 07:39 AM ·
editorcommand-linepreferences
Changing default scripts editor without launching unity
I have a server with CI running on it. And I would like to test our code generator, which feeds .sln to MSBuildWorkSpace.OpenSolutionAsync .
And here comes an interesting thing: If unity uses VS as default editor, it creates a valid solution.
...
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnityTest.CSharp", "UnityTest.CSharp.csproj", "{6E3EE1D8-8BBF-517D-49F7-72683258D145}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnityTest.CSharp.Editor", "UnityTest.CSharp.Editor.csproj", "{60D1E9F0-36D8-60FE-78B3-73D53B3393FB}"
EndProject
...
But if unity uses Mono as default editor, it makes a solution with two projects with identical names
Project("{B2371EF7-8CFE-E2EB-3103-FF566006AD2C}") = "UnityTest", "Assembly-CSharp.csproj", "{03FB2056-251D-5424-624C-AD3996B1095C}"
EndProject
Project("{B2371EF7-8CFE-E2EB-3103-FF566006AD2C}") = "UnityTest", "Assembly-CSharp-Editor.csproj", "{5BCC3040-CF24-59AA-FBEB-0FD0002ED0FC}"
EndProject
And thus it breaks our code generator tool, since it can only run with valid .sln projects.
So i'd like to set VS as default code editor. But i can't launch editor on server, since it doesn't have an opengl/directx compatible videocard.
Comment