[英]How to update .sln (solution) file within Visual Studio 2019
I am clean build
-ing and rebuild
-ing the project I am working with and I keep getting errors that is is unable to find the path/folder/filename because I ended up updating the name within file explorer.我正在清理我正在使用的项目的
build
和rebuild
,但我不断收到无法找到路径/文件夹/文件名的错误,因为我最终在文件资源管理器中更新了名称。
I want to open the projectname.sln
file and update the file path manually.我想打开
projectname.sln
文件并手动更新文件路径。
My current workaround is to right click .sln
file and open with VS Code.我目前的解决方法是右键单击
.sln
文件并使用 VS Code 打开。 Do my edits and then save.做我的编辑然后保存。 After saving it causes a trigger to reload in Visual Studio
保存后会导致触发器在 Visual Studio 中重新加载
You have to unload project
by right-clicking on the project.您必须通过右键单击
unload project
来unload project
项目。
Once unloaded you can right-click and edit project.csproj
.卸载后,您可以右键单击并编辑
project.csproj
。
Update the paths that are causing the problem.更新导致问题的路径。
Save and reload.保存并重新加载。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.