|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Converting To .NET 2.0 Changes 'UserAppDataPath' Value...?in my Outlook add-in, I was using System.Windows.Forms.Application.UserAppDataPath to get the user roaming directory. however since moving from Visual Studio 2003 to 2005, I noticed the value returned by this property changed. namely, it went from 'C:\Documents and Settings\<user>\Application Data' to 'C:\Documents and Settings\<user>\Application Data\Microsoft Corporation\Microsoft Office Outlook\11.0.8010'. I know I can use Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) with VS 2005 to get what I want. still, I was just wondering why there's a difference in System.Windows.Forms.Application.UserAppDataPath between .NET 1.1 and 2.0. does anyone know? thx The only change I know of is that it will return a different value if
the application was deployed using ClickOnce. Bryan Phillips MCSD, MCDBA, MCSE Blog: http://bphillips76.spaces.live.com Show quote "A_StClai***@hotmail.com" <A_StClai***@hotmail.com> wrote in message news:1162236675.478270.232340@k70g2000cwa.googlegroups.com: > hi all, > > in my Outlook add-in, I was using > System.Windows.Forms.Application.UserAppDataPath to get the user > roaming directory. > > however since moving from Visual Studio 2003 to 2005, I noticed the > value returned by this property changed. namely, it went from > 'C:\Documents and Settings\<user>\Application Data' to 'C:\Documents > and Settings\<user>\Application Data\Microsoft Corporation\Microsoft > Office Outlook\11.0.8010'. > > I know I can use > Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) > with VS 2005 to get what I want. still, I was just wondering why > there's a difference in > System.Windows.Forms.Application.UserAppDataPath between .NET 1.1 and > 2.0. > > does anyone know? > > thx |
|||||||||||||||||||||||