Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
258 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 Answer

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...