小编ziy*_*sal的帖子

如何在Linux上解决xbuild'.NETPortable,Version = v4.0,Profile = Profile344'问题

我尝试按照以下说明编译我的项目,因此我得到以下错误.

我的剧本;

sudo apt-get install mono-complete  
mozroots --import --sync 
mkdir gthb  
cd gthb/  
git clone https://github.com/ziyasal/InfluxDB.Net.git
cd InfluxDB.Net/   
mono .nuget/NuGet.exe install NUnit.Runners 
mono .nuget/NuGet.exe restore InfluxDB.Net.sln 
xbuild
Run Code Online (Sandbox Code Playgroud)

输出;

XBuild Engine版本12.0 Mono,版本3.2.8.0版权所有(C)2005-2013各种Mono作者

Build build 01/06/2015 18:31:01


项目"/home/ziyasal/gthb/InfluxDB.Net/InfluxDB.Net.sln"(默认目标):目标ValidateSolutionConfiguration:构建解决方案配置"Debug | Any CPU".目标构建:项目"/home/ziyasal/gthb/InfluxDB.Net/InfluxDB.Net/InfluxDB.Net.csproj"(默认目标):目标RestorePackages:执行:mono --runtime = v4.0.30319"/ home /ziyasal/gthb/InfluxDB.Net/.nuget/NuGet.exe"install"/home/ziyasal/gthb/InfluxDB.Net/InfluxDB.Net/packages.config"-source""-RequireConsent -solutionDir"/ home/ziyasal /gthb/InfluxDB.Net/"恢复NuGet包...为了防止NuGet在构建期间下载包,打开Visual Studio Options对话框,单击Package Manager节点并取消选中'允许NuGet下载丢失的包'.Target PrepareForBuild:配置:调试平台:AnyCPU创建目录"bin/Debug /"创建目录"obj/Debug /"目标GetReferenceAssemblyPaths:/usr/lib/mono/xbuild/12.0/bin/Microsoft.Common.targets:warning:Unable找到与目标框架名字对象'.NETPortable,Version = v4.0,Profile = Profile344'对应的框架.框架ass embly引用将从GAC解决,这可能不是预期的行为./usr/lib/mono/xbuild/12.0/bin/Microsoft.Common.targets:错误:未安装PCL参考装配.任务"GetReferenceAssemblyPaths"执行 - FAILED在项目"/home/ziyasal/gthb/InfluxDB.Net/InfluxDB.Net/InfluxDB.Net.csproj"./ FAILED Done building project"/ home/ziyasal中完成构建目标"GetReferenceAssemblyPaths" /gthb/InfluxDB.Net/InfluxDB.Net/InfluxDB.Net.csproj".-- FAILED任务"MSBuild"执行 - FAILED在项目"/home/ziyasal/gthb/InfluxDB.Net/InfluxDB"中构建目标"Build" .Net.sln".-- FAILED Done building project"/home/ziyasal/gthb/InfluxDB.Net/InfluxDB.Net.sln".-- FAILED

建立失败.

警告:

/home/ziyasal/gthb/InfluxDB.Net/InfluxDB.Net.sln(默认目标) …

linux ubuntu mono xbuild portable-class-library

6
推荐指数
1
解决办法
5875
查看次数

标签 统计

linux ×1

mono ×1

portable-class-library ×1

ubuntu ×1

xbuild ×1