Visual Studio,如何添加项目,但不保存对原始项目的更改?
我想将项目添加到解决方案并对其进行更改,但我不希望将这些更改保存到原始项目中(永远不再需要这些更改)。我该怎么做?
I want to add a project to a solution and make changes to it, but I don't want those changes to be saved to the original project (the changes will NEVER be needed again). How do I do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设您的意思是您不希望保存对原始解决方案的更改。
我只需备份解决方案文件,然后再将其放回去。如果您的解决方案位于源代码管理中,只需将其恢复即可。
您可以尝试将解决方案文件设置为只读,但我怀疑 Visual Studio 会抱怨。
I assume you mean you don't want the changes to the original solution to be saved.
I would simply take a backup of the solution file, and put it back again afterwards. If your solution is in source control, simply revert it.
You could try making the solution file read-only, but I suspect that Visual Studio will complain.