nulastudio / NetBeauty2

Move a .NET Framework/.NET Core app runtime components and dependencies into a sub-directory and make it beauty.
MIT License
419 stars 21 forks source link

发布时报错 cannot find a compatible rid for win-x64 #19

Closed zgliubo closed 3 years ago

zgliubo commented 3 years ago

请问需要怎么设置下吗, 谢谢

liesauer commented 3 years ago

添加或修改以下配置到csproj文件

<BeautyLogLevel>Info</BeautyLogLevel>

然后把完整日志发给我看下

zgliubo commented 3 years ago

running ncbeauty... checking runtime.*.json version... fetch online runtime compatibility version failed fixing C:\Users\fszx03\Desktop\Browser5\ConsoleApp2\bin\Release\net5.0\publish\ConsoleApp2.runtimeconfig.json C:\Users\fszx03\Desktop\Browser5\ConsoleApp2\bin\Release\net5.0\publish\ConsoleApp2.runtimeconfig.json fixed fixing C:\Users\fszx03\Desktop\Browser5\ConsoleApp2\bin\Release\net5.0\publish\ConsoleApp2.deps.json fxr v5.0.4/win-x64 detected in C:/Users/fszx03/Desktop/Browser5/ConsoleApp2/bin/Release/net5.0/publish/ConsoleApp2.deps.json patching hostfxr... read json failed: C:\Users\fszx03\AppData\Local\Temp/NetCoreBeauty/artifacts/runtime.compatibility.json : open C:\Users\fszx03\AppData\Local\Temp/NetCoreBeauty/artifacts/runtime.compatibility.json: The system cannot find the file specified. cannot find a compatible rid for win-x64

liesauer commented 3 years ago

添加以下配置

<GitCDN>https://gitee.com/liesauer/HostFXRPatcher</GitCDN>

然后把C:\Users\fszx03\AppData\Local\Temp/NetCoreBeauty文件夹清空,重新发布即可

liesauer commented 3 years ago

工具默认从GitHub获取配置信息,对于我们国内的用户可能会失败,所以要切换到国内的Gitee镜像库。

zgliubo commented 3 years ago

非常感谢您的热心解答. 怪我没认真看文档. 点个赞!

liesauer commented 3 years ago

我也更新了readme,在前面添加了提示,不然关于GitCDN的设置在很后的地方,不一定所有人都能注意到。