Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / February 2007

Tip: Looking for answers? Try searching our database.

Reload project file.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kai - 06 Feb 2007 15:18 GMT
Hi,

I need to use environment variables in the reference path. Changing the file
in an editor is not a good solution since every time I save the project file
inside Visual Studio it expands the reference path and removes my environment
variables again(only C++ projects).

I'm trying to write an addin to Visual studio that alters the project file
(.csproj, .vsproj) when the file is saved. When my addin has altered and
saved the file, Visual Studio displays a dialog telling me that the project
is altered outside of the environment.

Is there another way of changing the reference path withour getting this
annoying dialog? I know there is a setting in the options dialog, but I don't
want to turn this refresh dialog of completely.

Any suggestions?

--
Kai
WenYuan Wang - 07 Feb 2007 13:11 GMT
Hi Kai,

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.

We need to perform more research on this issue . We will reply here as soon
as possible.
If you have any more concerns on it, please feel free to post here.

Thanks for your understanding!
Best regards,
Wen Yuan
Kai - 07 Feb 2007 13:25 GMT
> 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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.