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 / Setup / November 2007

Tip: Looking for answers? Try searching our database.

Text files in project folders do not update

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Erich H. Franke - 11 Oct 2007 18:55 GMT
Hi,

I want to include a (text) log file in the project explorer, so that I can
review the results after a debug session. I did "Add existing element" and
obtained the file, the same way as I did it with godd old VS6.

But in VS2005, the displayed content will NOT update, when the file on disk
changes. It seems that VS2005 will COPY the file content at the time, the
symbol is inserted in the project explorer. The only way to "update" the view
is to delete the symbol and to re-insert it in the project explorer, which
can not be the right way.

In VS6, this worked perfectly well.

Any suggestions?

Best regards

Erich
Steven Cheng[MSFT] - 12 Oct 2007 04:15 GMT
Hi Erich,

As for the existing text file not get updating issue, would you tell me
what's the project type you're using? Are you using a .NET managed project
or C++ project or other particular project type?

Based on my testing, for .NET projects(like C# or VB.NET project), if you
add an existing file(txt or other ...) into it, it will make a copy and put
the new copy into its project folder rather than link to the original file.
I think that's why you won't get updated when you've modified the original
file externally.

If the above is your case, you can consider the following means to resolve
it:

** add another new project in your solution, the project type could be a
"empty project" (you can find it in C++ project category)

** in the c++ empty project, you can add the existing external file into
it. And there, the file will be linked to its original path rather than
copied into project folder.

** whenever you modified the original file outside the project, it will get
updated(if you've opened it in document explorer)

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================
   

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------

>From: =?Utf-8?B?RXJpY2ggSC4gRnJhbmtl?= <spook@community.nospam>
>Subject: Text files in project folders do not update
>Date: Thu, 11 Oct 2007 10:55:04 -0700

>Hi,
>
[quoted text clipped - 15 lines]
>
>Erich
Steven Cheng[MSFT] - 16 Oct 2007 15:24 GMT
Hi Erich,

Any progress on this issue or does the info in my last reply help some?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

>Organization: Microsoft
>Date: Fri, 12 Oct 2007 03:15:31 GMT

>Hi Erich,
>
[quoted text clipped - 79 lines]
>>
>>Erich
Erich H. Franke - 17 Nov 2007 15:19 GMT
Dear Steven,

sorry I am late with my answer, but I just returned from a business trip -
and - alas - I simply forgot my password and was therefore unable to assign
the newsgroup... :)

Indeed, it was a C# project and suspected, that a copying of some kind took
place.

Your hint was very helpful, however. I can happily live with this workaround.

Thanks again for your help

Erich

AFUSOFT Kommunikationstechnik GmbH

> Hi Erich,
>
[quoted text clipped - 102 lines]
> >>
> >>Erich

Rate this thread:







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.