> According to your description, I understand that you want to know whether
> or not there is a way of changing the reference path without getting
> warning dailog. Please don't hesitate to correct me, if I have
> misunderstand anything here.
Hi,
My main problem is that I need to use environement variables in the assembly
reference path. To solve this I've written an addin that changes the hintpath
in the project file(.csproj). When my addin saves the file, Visual Studio
displays a warning dialog.
What I'm wondering about is:
1. Is there a way to override this warning dialog?
2. If not, is there another way of setting environment variables as the
assembly reference hintpath?
--
Kai
WenYuan Wang - 09 Feb 2007 06:22 GMT
Hi Kai,
Thanks for your reply.
I have searched on the internet these days, but I'm afraid the only way to
change the .csproj file without the warning dialog is the setting in option
dialog of VS (Detect when file is changed outside the environment).
I noticed VS saved the .csproj file when we closed this application. For
this reason the warning dialog will not appear if we changed reference in
VS. But if we change this file manually or by any other method, VS always
can detect this change and prompt a dialog (reload or cancel).
I also tried to achieve this by Macro. But it seems we cannot change the
path of reference. For these reason, if you don't want to get the warning
dialog, you should have to change the setting of option. I'm afraid there
is no other way to avoid these so far. I apologize for this.
Please feel free to reply me if there is anything we can help with. I'm
very glad to work with you.
Sincerely,
Wen Yuan