nvim-unity icon indicating copy to clipboard operation
nvim-unity copied to clipboard

Project solution file format

Open SanTeeg0 opened this issue 1 year ago • 0 comments

It seems that project files generated with this unity package are not completely valid.

  1. I have created an empty Unity project
  2. Installed nvim-unity package using git url in Package Manager
  3. Selected Neovim Unity in the Preferences > External Tools
  4. Created an empty script
  5. Generated C# project
  6. Opened script and found that LSP isn't working as intended. In logs Omnisharp errors about not found valid solution file (sln)

Here are contents of solution file generated by nvim-unity:

Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp", "Assembly-CSharp.csproj", "{12345678-1234-1234-1234-123456789ABC}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
	EndGlobalSection
EndGlobal

A valid solution file:

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15

Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution

	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

SanTeeg0 avatar May 21 '25 10:05 SanTeeg0