Is there a api or some thing that I can force unity to regenerate .csproj and .sln? including package .csproj for Entitiies or Collections
The default behavior of csproj generation is like it only update thoese csproj that has change, adding or removing source file. But if I delete the csproj itself for some reason, it is not considered dirty. so even if all .csproj and .sln is deleted. by double clicking a source Unity wont make new ones. By using Open in c# Project from context menue It generates only .csproj for assembly define in Asset folder, no including package assembly. My Preferences->External Tools-> Generate all .csproj files is Checked.
And the reason, I remove .csproj files is a TestRuner+Burst bug keep corrupting my .csproj. I am trying to figure out why.
But I really want to know if I can force unity to regenerate ALL .csproj by some UnityEditor Api or so.
Thanks for the hint.
I got it now.
Itâs nether UnityEditor version nor Rider Inject.
But Rider/VSCode Editor package version 1.2.0 up would have this
Thanks! This was the info I needed. After upgrading from 2020.3 to 2021.3 I couldnât see generate csproj button/settings. In the package manager I already had âVisual Studio Code Editorâ installed but I did not have âVisual Studio Editorâ. Installing both packages resolved the issue for me.