I have a custom csProj.
I manually adds it to solution for more comfortable work with it.
csProj compiles to the DLL and places to my project Subfolder automaticaly.
But after restarting unity and VS my csProj disappears from solution.
My colleagues have such problems with Unity and Rider, but on my old computer with VS 2019 anything worked well.
May be I need to change something on preferences or VS setting.
I Have a visual studio community 2022 from microsoft.com, not from unity installer.
Nothing you add in Visual Studio is going to “stick.” Unity will always wipe out the solution and project files and regenerate new ones according to what is in the Unity side of your project.
You need to do 100% of your adding projects and references withiin Unity, then use Assets → Open C# Project to see it in Visual Studio.
Remember: you do NOT need any IDE or compiler to use Unity. It is NOT part of the development toolchain. Unity is the full toolchain. You could simply edit all scripts with Notepad or even vi if you want.
This may help you with intellisense and possibly other Visual Studio integration problems:
Sometimes the fix is as simple as doing Assets → Open C# Project from Unity. Other times it requires more.
Also, try update the VSCode package inside of Unity: Window → Package Manager → Search for Visual Studio Code Editor → Press the Update button