Visual Studio | 您所在的位置:网站首页 › 杂项文件 › Visual Studio |
This is a weird one. I have a C# Class Library project within my solution. If I open a .cs file within this project, the Project drop-down on the code editor shows that it belongs to 'Miscellaneous Files'. Other symptoms: if I go to the properties of the project and look at Assembly Information, all values are blank, despite the values existing in the AssemblyInfo.cs file. 两者都很烦人,但问题是 我在项目中的任何文件上都没有智能感知 我似乎无法在调试器中单步执行(它告诉我文件不属于解决方案,因此无法调试)。我试过了: Combing through the .csproj file and comparing to others in the solution (no joy) Re-creating the .csproj file and overwriting the old one (worked until I merged the branch into trunk, then the problem re-appeared) Banging my head on the keyboard (headache)谷歌什么也没发现。有人对这里发生的事情有任何想法吗? 最佳答案我如何解决我的问题: 转到在“解决方案资源管理器”中显示为“杂项文件”的文件。 右键单击文件,然后选择从项目中排除。 右键单击文件所在的项目/文件夹,然后单击添加现有项,然后将刚删除的文件添加回项目中。 |
CopyRight 2018-2019 实验室设备网 版权所有 |