Settings for a WPF app goes into new folders for every publish of click-once
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
### Description
On each publish we get a new folder.
### Reproduction Steps
Create a minimal WPF app in .net8, publish it as a clickonce to IIS and install from IIS.
Say that my App Data folder for the Company `${CompanyName}` is:
`C:\Users\${UserName}\AppData\Local\${CompanyName}`
Then inside that folder we get new subfolders when saving user settings in the following format:
```
WpfApp1_Path_mhp42l3wrf1iq0iczitfpwjmqjuqowdp\data\${Version}
WpfApp1_Url_0hil1mzikc4mwep0qb23dmk11i23h1aj\data\${Version}
WpfApp1_Url_jmiaz0vxapsp3h0wc2fnpf4bopt0peau\data\${Version}
```
### Expected behavior
The expected behaviour would be that the old settings are copied or read on startup.
### Actual behavior
You do not get any of the old user settings.
### Regression?
This is a regression. It works in .NET Framework. Perhaps it is related to how .net Framework clickonce applications store user data in a special folder.
### Known Workarounds
Use https://github.com/Bluegrams/SettingsProviders
### Configuration
.net 8
Windows
### Other information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.