2010-12-06 3 views
2

Settings.settings 파일이있는 VS2010 솔루션이 있습니다. 사용자 설정은 로컬 설정 폴더에 저장되며 이러한 설정은 로밍되지 않으므로 문제가됩니다..NET PerUserRoaming 위치에 구성 설정 저장

현재 설정 파일에 자동으로 저장됩니다 :

Dim config_new As System.Configuration.Configuration = System.Configuration.ConfigurationManager.OpenExeConfiguration(System.Configuration.ConfigurationUserLevel.PerUserRoaming) 
Console.WriteLine("User config path: {0}", config_new.FilePath) 

(:

Dim config_initial As System.Configuration.Configuration = System.Configuration.ConfigurationManager.OpenExeConfiguration(System.Configuration.ConfigurationUserLevel.PerUserRoamingAndLocal) 
Console.WriteLine("Local user config path: {0}", config_initial.FilePath) 

(C:\Documents and Settings\%username%\Local Settings\Application Data\%company%\%application%.exe_Url_%hash%\%version%\user.config)

에 의해 식별 된 파일 경로에이 파일을 저장하는 방법은 없나요 C:\Documents and Settings\%username%\Application Data\%company%\%application%.exe_Url_%hash%\%version%\user.config)

나는 0을 사용하여 저축하고 있습니다.또는 응용 프로그램이 현재 종료 될 때 자동으로 실행됩니다.

+0

설정할 수있는 옵션은 다음 있습니다. 이렇게하면이 앱의 사용자 설정이 워크 스테이션에서 워크 스테이션으로 이동하지 않습니다. 이것은 당신이 편한 결과입니까? –

+0

증거를 읽을 때 나는 그것이 틀린 길을 돌았다는 것을 알지 못했다. 현재 로밍하지 않으며 응용 프로그램 설정을 로밍해야합니다. – Seph

답변

3

대답은 here입니다. Visual Studio에서 응용 프로그램 설정 화면을 열고 개별 설정을 선택한 다음 속성 창으로 이동하십시오. 이것은 로밍 프로파일의 함수이다 RoamingTrue

enter image description here

관련 문제