Miscellaneous files in Visual Studio

I recently opened my game project and tried to place a new script on a Game Object. However it wouldn’t let me do this and said it needs to derive from monobehaviour and not assembly info. When in Visual studio it says miscellaneous file rather than C sharp assembly. I have tried changing my external editor to Visual studio and adding the exisitng file to the solution in visual studio but this did not work. This has happened to all scripts that worked before aswell. Can someone please help me find a solution



Look at your console. You have a bunch of errors you need to fix before Unity can even see your updated scripts. They mostly seem to be related to the fact that you have duplicate “PlayerMovement” scripts in your project.

1 Like

I have removed the duplicated movement script but the issue still persists. I am not sure how to fix the “PlayerFootsteps” error. I also had a look in the project file and found multiple C sharp assemblies and I am unsure if this is a problem.