A place that is often overlooked about miscellaneous files in VS

I searched the Internet for several hours and tried various methods, but I still couldn't solve it. Later, I re-researched and found the problem. I hope it can help people who are as anxious as me. 

Because I need to apply the Common2 project in MyPhotonServerDemo and miscellaneous files appear after the reference

If you delete the reference of Common2 and find that the miscellaneous file disappears after closing and reopening, you will encounter the same error as I encountered, that is, when creating a new project that needs to be referenced, the project type used by the original project is not consistent.

For example, I first used the c# class library .net, but later creating classes that need to be referenced does not use the class library .net. After that, the code file that references the .comm2 header file directly becomes a miscellaneous file

There is also an inconsistent target framework. Here both projects must be on a target framework.

 

 

 

 

Guess you like

Origin blog.csdn.net/m0_52608003/article/details/129363909