首页 新闻 会员 周边

使用 BundleMinifier 遇到的一个问题:The command "dotnet bundle" exited with code 131.

0
悬赏园豆:20 [已解决问题] 解决于 2017-11-13 17:56

环境:


使用环境:Linux Ubuntu 16.04.3 LTS
BundlerMinifier 版本 : 2.4.401

问题描述:


在Linux上我使用脚本中包含 dotnet publish 来发布的项目,但是在发布时就会遇到下面的这个问题

It was not possible to find any compatible framework version
  The specified framework 'Microsoft.NETCore.App', version '1.0.0' was not found.
    - Check application dependencies and target a framework version installed at:
        /
    - Alternatively, install the framework version '1.0.0'.
 error MSB3073: The command "dotnet bundle" exited with code 131.

但是,我如果直接进入web目录,进行发布的话,就不会有这个问题,请问这个是什么原因?

附录:


BundlerMinifier Github 地址:BundlerMinifier

BUTTERAPPLE的主页 BUTTERAPPLE | 老鸟四级 | 园豆:3190
提问于:2017-11-01 11:28
< >
分享
最佳答案
1

.csproj 中 DotNetCliToolReference 中引用的 BundlerMinifier.Core 要与  PackageReference 中引用的版本号一致

收获园豆:20
dudu | 高人七级 |园豆:30994 | 2017-11-01 12:12

把版本号改成一样确实就可以了!

BUTTERAPPLE | 园豆:3190 (老鸟四级) | 2017-11-13 17:56
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册