最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

obfuscation - What is the impact of changing the framework order in **appname.runtimeconfig.json** on the stability of a .NET 8

programmeradmin0浏览0评论

I am working on a .NET 8 WPF application that undergoes obfuscation using SmartAssembly. During the build, runtime.config.json is generated automatically, but SmartAssembly picks WindowsBase.dll from Microsoft.NETCore.App instead of Microsoft.WindowsDesktop.App, causing obfuscation errors. i.e. During obfuscation with SmartAssembly, WindowsBase.dll was being resolved from Microsoft.NETCore.App instead of Microsoft.WindowsDesktop.App, leading to an invalid symbol error.

To resolve this, I modified the framework order in runtime.config.json to ensure Microsoft.WindowsDesktop.App is listed before Microsoft.NETCore.App. This change resolved the obfuscation issue, but I want to confirm:

Is it safe to modify runtime.config.json manually post-build via a script? Can this impact runtime behavior on client machines, especially in framework-dependent deployments? Is there an official way to enforce framework resolution order during build instead of modifying runtime.config.json manually?

appName.rnutimeconfig.json file content changes

Environment: .NET 8.0 WPF Application Obfuscation Tool: SmartAssembly Windows 10/11 Deployment

发布评论

评论列表(0)

  1. 暂无评论