1

我正在尝试在 VS2019 中发布一个网站,但它失败了

The command "dotnet bundle" exited with code -2147450730. 

我在这个问题上没有找到太多。

4

1 回答 1

0

构建输出窗口应该有关于错误的详细信息:

Build started...
1>It was not possible to find any compatible framework version
1>The framework 'Microsoft.NETCore.App', version '2.0.0-preview1-002111-00' (x64) was not found.
1>  - The following frameworks were found:
1>      6.0.2 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
1>
1>You can resolve the problem by installing the specified framework and/or SDK.
1>
1>The specified framework can be found at:
1>  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=2.0.0-preview1-002111-00&arch=x64&rid=win10-x64

安装缺少的框架后,它对我有用:https ://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=2.0.0-preview1-002111-00&arch=x64&rid=win10-x64

于 2022-02-22T02:50:38.757 回答