【问题标题】:build error mono 3.4.0 centos构建错误单声道 3.4.0 centos
【发布时间】:2014-05-15 16:35:10
【问题描述】:

从下载中获取源代码

制作 && 制作安装

mkdir -p -- /usr/lib/mono/xbuild/Microsoft/Portable/v4.0
/usr/bin/install -c -c -m 644 targets/Microsoft.Portable.Common.targets /usr/lib/mono/xbuild/Microsoft/Portable/v4.0/Microsoft.Portable.Common.targets
/usr/bin/install: cannot stat `targets/Microsoft.Portable.Common.targets': No such file or directory

【问题讨论】:

    标签: mono centos


    【解决方案1】:

    mono 3.4 存档缺少名为 Microsoft.Portable.Common.targets 的文件,该文件应位于路径 mcs/tools/xbuild/targets/Microsoft.Portable.Common.targets 并具有以下内容:

    <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
        <Import Project="..\Microsoft.Portable.Core.props" />
        <Import Project="..\Microsoft.Portable.Core.targets" />
    </Project>
    

    看到这个错误: https://bugzilla.xamarin.com/show_bug.cgi?id=18690

    【讨论】:

      【解决方案2】:

      只是一个小注释(对我自己来说也是如此),我犯了一个错误,因为指定的路径我发现有点混乱。如果你安装在解压到 /usr/local/src/mono-3.4/ 中,你需要放入内容的文件路径是:

      /usr/local/src/mono-3.4/mcs/tools/xbuild/targets/Microsoft.Portable.Common.targets

      不是

      /usr/local/src/mono-3.4/mcs/tools/xbuild/targets/.content/Microsoft.Portable.Common.targets

      /usr/local/src/mono-3.4/mcs/tools/xbuild/targets/.content

      【讨论】:

      • 感谢您节省我自己解决这个问题的时间
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-03-11
      • 2013-02-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多