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

Regenerate project files with user defined assemblies

Open HenrysHouses opened this issue 1 year ago • 2 comments

I have some user defined assemblies inside of my main project, when i regenerate the project files it will add the scripts that belongs to my user assemblies to the main unity c# assembly, and additionally, to my user assemblies. resulting in a duplicate reference error in all my scripts.

current workaround for this:

select another default editor, generate project files with it, reselect nvim as editor.

HenrysHouses avatar Nov 09 '25 20:11 HenrysHouses

I was having this same issue and pulled in the project generation from the Visual Studio Editor plugin.

If you want to test it out it's at https://github.com/kbvandergriffjr/nvim-unity.git#projectGeneration.

I'm not sure what the stance is here for pulling external code into the repo, but if it's needed/useful I can create a pull request with these changes.

kbvandergriffjr avatar Nov 11 '25 18:11 kbvandergriffjr

I've just had a very similar issue, as it seems. I don't have any user defined assemblies in my project but I get warnings about imported types conflicting with themselves.

I realized that the generated Assembly-CSharp.csproject file references itself. I removed the reference and that seems to have done the trick temporarilly.

I'm not sure if this is a seperate problem than what is described by @HenrysHouses. If so I can open a new issue for it.

TheGitBot avatar Feb 21 '26 23:02 TheGitBot