相对于2013年。继我之前提出的不能编辑文件而不导致崩溃的Q之后,Edit a cs file and the project wont build似乎是一个csproj问题。
我按照我发现的指示:
To edit a .csproj (or any other project file) directly from Visual Studio, do the following:
Right click the project in Solution Explorer
Select "Unload project"
Project is now unloaded
Right click the project again and select "Edit blah.csproj"
Make your changes and save them
Right click the project and select "Reload project" to apply the changes
但是,卸载项目不可用(请参阅图像)
这是为什么?
我已经做了一个完整的文件夹搜索和.csproj不存在?这怎么可能
发布于 2022-07-23 00:55:29
可能的答案,至少对于VS2022,这是我当前项目的解决方案资源管理器视图(C#中的超级复古RogueLike控制台游戏)
如果我单击解决方案资源管理器的顶层(“解决方案'RogueLike教程‘(一个项目中的一个)”),就会得到您显示的菜单,没有卸载项目选项:
但是,如果我将菜单中较低的一项转到"RogueLikeTutorial“(带有C#徽章),我将得到以下菜单,这是您正在寻找的菜单:
不知道五年前的VS 2013年是否是这样,但当我在VS 2022中遇到这个问题时,发现你的问题和评论帮助了我。希望这对任何未来的时间旅行者都有帮助!
https://stackoverflow.com/questions/46656182
复制相似问题