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 / .NET Framework / New Users / June 2007

Tip: Looking for answers? Try searching our database.

Customize Application Data Folder

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jtbjurstrom@yahoo.com - 18 Jun 2007 14:56 GMT
The folder that the framework creates under the Application Data
folder is not consistent.

Instead of:
.\Local Settings\Application Data\My Company\MyApp.exe_Url_<guid>
\1.0.0.0\user.config

I would like to have
.\Local Settings\Application Data\My Company\My App
\1.0.0.0\user.config

Basically I'm trying to remove the guid. If this isn't possible with
the .NET Framework then I'd at least like to know where this guid
comes from.

Thank you,
Jayson B.
Peter Duniho - 18 Jun 2007 18:28 GMT
> Basically I'm trying to remove the guid. If this isn't possible with
> the .NET Framework then I'd at least like to know where this guid
> comes from.

You can look at the Settings.Designer.cs file to see the implementation of  
that part of your application.  That should answer both the question of  
where the GUID comes from, as well as provide a suggestion for at least  
one way to change the behavior.

Pete
jtbjurstrom@yahoo.com - 18 Jun 2007 19:05 GMT
On Jun 18, 11:28 am, "Peter Duniho" <NpOeStPe...@nnowslpianmk.com>
wrote:
> > Basically I'm trying to remove the guid. If this isn't possible with
> > the .NET Framework then I'd at least like to know where this guid
[quoted text clipped - 6 lines]
>
> Pete

Thanks Peter,
I've checked that file out and all I see is a few attributes which
specify that the class was generated by a code generator and who that
code generator is.

[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]

[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator",
"8.0.0.0")]

Somewhere in ApplicationSettingsBase.Save() it determines the folders
to create. I know it gets the company folder under "Application Data"
from [assembly: AssemblyCompany("My Company")] in AssemblyInfo.cs and
the version folder name from [assembly: AssemblyVersion("1.0.0.0")],
also in AssemblyInfo.cs. But I cannot find where the the application
folder name comes from (i.e. ".\My Company\MyApp.exe_Url_<guidthing>
\1.0.0.0").

Jayson

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.