runtimeconfig.template.json per build configuration
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
Hello,
Currently we are developing a .NET app using WPF.
The requirement is to have a specified folder structure.
To achieve this we use `runtimeconfig.template.json` to specify the `additionalProbingPaths`.
The problem is that as it works for our release, the designer is complaining:
> Error:
he XAML Designer has exited unexpectedly. (Exit code: 8000808c)
>
>Description: A .NET Core application failed.
The event log gives us:
> Application: WpfSurface.exe
Path: Description: A .NET Core application failed.
Application: WpfSurface.exe
Path: C:\Users\$xxx\AppData\Local\Microsoft\VisualStudio\16.0_be93cc4c\Designer\Cache\11842567455x64DA\WpfSurface.exe
Message: Error:
An assembly specified in the application dependencies manifest (WpfSurface.deps.json) was not found:
package: 'Microsoft.Win32.Registry', version: '5.0.0'
path: 'runtimes/win/lib/netstandard2.0/Microsoft.Win32.Registry.dll'
If we remove the additional probing paths everything is ok.
I can add an msbuild task to remove/include the file per build.
This however is then not reloading when put back to `Debug` then removal of obj/bin folders needs to be done.
Is there a better way to do this? Are `runtimeconfig.template.json` files per configuration not supported?
Thank you in advance.
Contributor guide
Assessment
This issue has not been assessed yet.