Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
259 views
in Technique[技术] by (71.8m points)

c# - WPF Single exe-使用应用程序和用户属性(Wpf single exe - using application and user properties)

I've recently upgraded my wpf application to core 3.0.

(我最近将wpf应用程序升级到了核心3.0。)

The application uses property settings to save and read specific application settings.

(该应用程序使用属性设置来保存和读取特定的应用程序设置。)

Properties.Settings.Default.AllowZoom = true. 

These properties are saved to a config file that the exe reads from.

(这些属性将保存到exe读取的配置文件中。)

This works fine, however if I build the application as a single exe it cannot read or write to the properties file.

(这很好,但是,如果我将应用程序构建为单个exe,则无法读取或写入属性文件。)

Anybody know a work around?

(有人知道可以解决吗?)

  ask by user1845029 translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...