2

When I open my Unity scripts in Visual Studio 2022, I am greeted with this error:

Assembly-CSharp missing

I tried deleting all .csproj files before opening in VS and also tried reinstalling VS and Unity. The file being generated when I open VS after deleting it is giving me the incompatible error.

Not sure what to try now. Any ideas?

6
  • Not up-to-date with unity, sorry if dumb question, but what is "Assembly-CSharp", is it somehting builtin ? or a custom project ? an external library / nuget package ? Commented Oct 21 at 11:04
  • I tried deleting all .csproj files .... well, you shouldn't, they are part of the project. There is needed information for building your project there. Commented Oct 21 at 11:05
  • The file being generated when I open VS after what file ? Commented Oct 21 at 11:06
  • Have you installed Visual Studio 2022 with the required modules for Unity development ? (you can reopen the Visual Studio installer to check / modify ) Commented Oct 21 at 11:07
  • 2
    @Pac0 fyi: the Assembly-CSharp is the default assembly into which Unity compiles all custom scripts that are not within a specific assembly (defined by AssemblyDefinitions). All the .cspproj and .sln are generated by Unity and can safely be deleted Commented Oct 21 at 12:05

1 Answer 1

2

I was able to resolve this by using the "Reload Project" option from VS 2022 menu (not sure how I missed that). Thanks for the responses

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.