![如何用 dotnet45 替换 dotnet40?](https://linux22.com/image/1550972/%E5%A6%82%E4%BD%95%E7%94%A8%20dotnet45%20%E6%9B%BF%E6%8D%A2%20dotnet40%EF%BC%9F.png)
我正在尝试dotnet40
通过安装winetricks
,但出现以下错误:
$ winetricks dotnet45
Executing w_do_call dotnet45
------------------------------------------------------
error: dotnet45 conflicts with dotnet40, which is already installed.
------------------------------------------------------
我该如何删除dotnet40
以便安装dotnet45
包?
我在 macOS 上使用 wine-2.0.4。
答案1
答案2
对我来说,从 wine 卸载后,安装 dotnet452 仍然存在问题。在 Linux 终端中运行的这个命令对我有用:
winetricks --force dotnet452
答案3
从干净的 wineprefix 开始:
$ WINEARCH=win32 WINEPREFIX=~/.wine32 winecfg
然后在新的 wineprefix 上安装 dot45
$ env WINEARCH=win32 WINEPREFIX=~/.wine32 winetricks dotnet45