Visual Studio中:调试时重置用户设置 [英] Visual Studio: reset user settings when debugging
本文介绍了Visual Studio中:调试时重置用户设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在一个C#的WinForms应用程序内我有储存了多用户设置。
In a C# Winforms-App I have several user settings stored.
有没有一种简单的方法每次我开始调试从Visual Studio项目的时间来清除这些设置2008?
Is there an easy way to clear those settings each time I start debugging the project from Visual Studio 2008?
否则,它启动时总是从最后调试会话的设置。
Otherwise it always starts up with the settings from the last debug-session.
感谢您!
推荐答案
添加预生成的行动来删除:
Add a pre-build action to delete:
%USERPROFILE%\Local Settings\Application Data\ [AppName的] \ \ ... [版本] \user.config
或者如果你的版本号变化很多只是删除
or if your version number changes alot just delete
%USERPROFILE%\Local Settings\Application Data\\ \\ [AppName的] \
这篇关于Visual Studio中:调试时重置用户设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文