当CentOS上构建.net自动化编译环境

        
我们知晓在Windows上我们死容易构建于MSBuild的自动化编译环境,那么在CentOS为是好的,主要是用Mono。
在此时我们选Jenkins+Gitlab+Mono于CentOS
6.5构建的环境。

1. 安装 Jenkins    
Jenkins,之前叫做Hudson,是基于Java开发的如出一辙栽持续集成工具,用于监控持续复的劳作,包括:持续的软件版本发布/测试项目。
监控外部调用执行的工作。
在CentOS中安装:

sudo wget -O /etc/yum.repos.d/jenkins.repo
http://pkg.jenkins-ci.org/redhat/jenkins.repo

sudo rpm –import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key

sudo yum install jenkins

2.  安装 Mono 3.10      
Mono是一个从事为开创.NET在Linux上使的开源工程。它富含了一个C#语言的编译器,一个CLR的运行时,和同样组类库,并落实了
ADO NET和ASP NET。该种的目标是创造同文山会海符合标准ECMA
(Ecma-334和Ecma-335)的.Net 工具, 包括C #编译器和共同语言(CL 即 Common
Language)执行平台(Platform).与微软的.Net不同,
Mono项目不仅可运作于Windows系统内,还得运行为Linux, FreeBSD, Unix,
Mac OS X和Solaris。

2.1 安装Mono需要的GDI+兼容API的库Libgdiplus

cd /usr/local/src/

wget
http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.tar.bz2

tar -jxvf libgdiplus-2.10.tar.bz2

cd libgdiplus-2.10

./configure –prefix=/usr

make

make install

2.2 源码安装Mono 3.10

cd /usr/local/src/

wget
http://origin-download.mono-project.com/sources/mono/mono-3.10.0.tar.bz2

tar -jxvf mono-3.10.0.tar.bz2

cd mono-3.10.0

./configure –prefix=/usr

make

make install

输入 mono -V 如发mono版本信息,则装成功.

3. 安装GitLab GitLab
是一个用于仓库管理体系的开源项目。使用Git作为代码管理工具,并在这个基础及加码建筑起来的web服务。
以这时为了有利于, 选用bitnami的购并好VM版GitLab,运行于Ubuntu 14.04

Gitlab VM

理所当然你吗得
在CentOS中手工安装GitLab,还可参照GitLab版本管理
Tips: Jenkins服务器和GitLab可以分别部署

4.  安装Jenkins 的插件

https://wiki.jenkins-ci.org/display/JENKINS/SCM+API+Plugin

https://wiki.jenkins-ci.org/display/JENKINS/MSTest+Plugin

https://wiki.jenkins-ci.org/display/JENKINS/xUnit+Plugin

https://wiki.jenkins-ci.org/display/JENKINS/MSBuild+Plugin

https://wiki.jenkins-ci.org/display/JENKINS/Git+Client+Plugin

https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin

5. 于shell中施行,导入如下证书:

$ sudo mozroots –import –machine –sync
$ sudo certmgr -ssl -m https://go.microsoft.com
$ sudo certmgr -ssl -m https://nugetgallery.blob.core.windows.net
$ sudo certmgr -ssl -m https://nuget.org

为避免

  Nuget with mono getting response stream (Write: The authentication
or decryption has failed.): SendFailure

 

布NuGet自动恢复
出于现在.net
的种类及解决方案还是利用NuGet来保管依赖了。同时于VS的类型被我们要开拓

图片 1

以品种中益时的NuGet.target, 
NuGet.exe

配置

Jenkins项目布局

图片 2

配置GIT Jenkins插件

图片 3

支持SSH

图片 4

要么用户称:

图片 5

加构建脚本触发器

图片 6

例如 下面的URL

http://10.1.1.36/jenkins/job/SouthAsiaDH/build?token=gitlab

使用Execute shell 来执行 xbuild

图片 7

因为Linux下是分轻重缓急写的,最好以

MONO_IOMAP=case xbuild ConsoleApplication1.sln

日增对应 单元测试 插件

图片 8

让GitLab 触发 Jenkins 机关编译

于Gitlab中对应的档次设置 webhook,如以下URL

http://10.1.1.36/jenkins/job/SouthAsiaDH/build?token=gitlab

图片 9

最终在控制台看到编译后底某项目之输出

Started by user peterliu

Building in workspace /var/lib/jenkins/jobs/myTestApp/workspace

> git rev-parse –is-inside-work-tree # timeout=10

Fetching changes from the remote Git repository

> git config remote.origin.url
http://10.1.1.19/liujunyuan/mytestapp.git # timeout=10

Fetching upstream changes from
http://10.1.1.19/liujunyuan/mytestapp.git

> git –version # timeout=10

> git fetch –tags –progress
http://10.1.1.19/liujunyuan/mytestapp.git
+refs/heads/*:refs/remotes/origin/*

> git rev-parse refs/remotes/origin/master^{commit} # timeout=10

> git rev-parse refs/remotes/origin/origin/master^{commit} #
timeout=10

Checking out Revision 600a7fba4db9b5ed77950b0b7d33230df1a93871
(refs/remotes/origin/master)

> git config core.sparsecheckout # timeout=10

> git checkout -f 600a7fba4db9b5ed77950b0b7d33230df1a93871

> git rev-list 600a7fba4db9b5ed77950b0b7d33230df1a93871 # timeout=10

[workspace] $ /bin/sh -xe /tmp/hudson1613431576788571686.sh

+ xbuild ConsoleApplication1.sln

XBuild Engine Version 3.2.1.0

Mono, Version 3.2.1.0

Copyright (C) Marek Sieradzki 2005-2008, Novell 2008-2011.

Build started 12/6/2014 12:33:31 AM.

__________________________________________________

Project
“/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1.sln”
(default target(s)):

Target ValidateSolutionConfiguration:

Building solution configuration “Debug|Any CPU”.

Target Build:

Project
“/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1/ConsoleApplication1.csproj”
(default target(s)):

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1/ConsoleApplication1.csproj:
warning : Project has unknown ToolsVersion ‘12.0’. Using the default
tools version ‘2.0’ instead.

Target PrepareForBuild:

Configuration: Debug Platform: AnyCPU

Target GetFrameworkPaths:

/usr/lib/mono/2.0/Microsoft.Common.targets: warning :
TargetFrameworkVersion ‘v4.5’ not supported by this toolset
(ToolsVersion: 2.0).

Target GenerateSatelliteAssemblies:

No input files were specified for target GenerateSatelliteAssemblies,
skipping.

Target CoreCompile:

Skipping target “CoreCompile” because its outputs are up-to-date.

Target _CopyAppConfigFile:

Skipping target “_CopyAppConfigFile” because its outputs are
up-to-date.

Done building project
“/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1/ConsoleApplication1.csproj”.

Project
“/var/lib/jenkins/jobs/myTestApp/workspace/xUnitTestProject/xUnitTestProject.csproj”
(default target(s)):

/var/lib/jenkins/jobs/myTestApp/workspace/xUnitTestProject/xUnitTestProject.csproj:
warning : Project has unknown ToolsVersion ‘12.0’. Using the default
tools version ‘2.0’ instead.

Target PrepareForBuild:

Configuration: Debug Platform: AnyCPU

Target GetFrameworkPaths:

/usr/lib/mono/2.0/Microsoft.Common.targets: warning :
TargetFrameworkVersion ‘v4.5’ not supported by this toolset
(ToolsVersion: 2.0).

Target RestorePackages:

Executing: mono –runtime=v4.0.30319
/var/lib/jenkins/jobs/myTestApp/workspace/.nuget/NuGet.exe install
“packages.config” -source “” -RequireConsent -o
“/var/lib/jenkins/jobs/myTestApp/workspace/packages”

Restoring NuGet packages…

To prevent NuGet from downloading packages during build, open the Visual
Studio Options dialog, click on the Package Manager node and uncheck
‘Allow NuGet to download missing packages’.

Target ResolveAssemblyReferences:

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference
‘mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089’ not resolved

For searchpath
/var/lib/jenkins/jobs/myTestApp/workspace/packages/xunit.1.9.2/lib/net20

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/packages/xunit.1.9.2/lib/net20/mscorlib’
as a file, but the file does not exist

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/packages/xunit.1.9.2/lib/net20/mscorlib.exe’
as a file, but the file does not exist

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/packages/xunit.1.9.2/lib/net20/mscorlib.dll’
as a file, but the file does not exist

For searchpath {CandidateAssemblyFiles}

Warning: {CandidateAssemblyFiles} not supported currently

For searchpath {HintPathFromItem}

HintPath attribute not found

For searchpath {TargetFrameworkDirectory}

For searchpath {PkgConfig}

Considered mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089, but could not find in any pkg-config
files.

For searchpath {GAC}

Considered mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089, but could not find in the GAC.

For searchpath {RawFileName}

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/xUnitTestProject/mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ as a
file, but the file does not exist

For searchpath bin/Debug/

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/xUnitTestProject/bin/Debug/mscorlib’
as a file, but the file does not exist

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/xUnitTestProject/bin/Debug/mscorlib.exe’
as a file, but the file does not exist

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/xUnitTestProject/bin/Debug/mscorlib.dll’
as a file, but the file does not exist

Target GenerateSatelliteAssemblies:

No input files were specified for target GenerateSatelliteAssemblies,
skipping.

Target CoreCompile:

Skipping target “CoreCompile” because its outputs are up-to-date.

Done building project
“/var/lib/jenkins/jobs/myTestApp/workspace/xUnitTestProject/xUnitTestProject.csproj”.

Project
“/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/MbUnitTest.csproj”
(default target(s)):

/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/MbUnitTest.csproj:
warning : Project has unknown ToolsVersion ‘12.0’. Using the default
tools version ‘2.0’ instead.

Target PrepareForBuild:

Configuration: Debug Platform: AnyCPU

Target GetFrameworkPaths:

/usr/lib/mono/2.0/Microsoft.Common.targets: warning :
TargetFrameworkVersion ‘v4.5’ not supported by this toolset
(ToolsVersion: 2.0).

Target RestorePackages:

Executing: mono –runtime=v4.0.30319
/var/lib/jenkins/jobs/myTestApp/workspace/.nuget/NuGet.exe install
“packages.config” -source “” -RequireConsent -o
“/var/lib/jenkins/jobs/myTestApp/workspace/packages”

Restoring NuGet packages…

To prevent NuGet from downloading packages during build, open the Visual
Studio Options dialog, click on the Package Manager node and uncheck
‘Allow NuGet to download missing packages’.

Target ResolveAssemblyReferences:

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference
‘mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089’ not resolved

For searchpath
/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40/mscorlib’
as a file, but the file does not exist

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40/mscorlib.exe’
as a file, but the file does not exist

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40/mscorlib.dll’
as a file, but the file does not exist

For searchpath {CandidateAssemblyFiles}

Warning: {CandidateAssemblyFiles} not supported currently

For searchpath /Common Files/microsoft
shared/VSTT/10.0/UITestExtensionPackages

Considered ‘/Common Files/microsoft
shared/VSTT/10.0/UITestExtensionPackages/mscorlib’ as a file, but the
file does not exist

Considered ‘/Common Files/microsoft
shared/VSTT/10.0/UITestExtensionPackages/mscorlib.exe’ as a file, but
the file does not exist

Considered ‘/Common Files/microsoft
shared/VSTT/10.0/UITestExtensionPackages/mscorlib.dll’ as a file, but
the file does not exist

For searchpath {HintPathFromItem}

HintPath attribute not found

For searchpath {TargetFrameworkDirectory}

For searchpath {PkgConfig}

Considered mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089, but could not find in any pkg-config
files.

For searchpath {GAC}

Considered mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089, but could not find in the GAC.

For searchpath {RawFileName}

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ as a
file, but the file does not exist

For searchpath bin/Debug/

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/bin/Debug/mscorlib’
as a file, but the file does not exist

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/bin/Debug/mscorlib.exe’
as a file, but the file does not exist

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/bin/Debug/mscorlib.dll’
as a file, but the file does not exist

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference
‘mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089’ not resolved

For searchpath
/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40

For searchpath {CandidateAssemblyFiles}

Warning: {CandidateAssemblyFiles} not supported currently

For searchpath /Common Files/microsoft
shared/VSTT/10.0/UITestExtensionPackages

For searchpath {HintPathFromItem}

HintPath attribute not found

For searchpath {TargetFrameworkDirectory}

For searchpath {PkgConfig}

Considered mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089, but could not find in any pkg-config
files.

For searchpath {GAC}

Considered mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089, but could not find in the GAC.

For searchpath {RawFileName}

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/mscorlib,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ as a
file, but the file does not exist

For searchpath bin/Debug/

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference
‘Gallio.GenericParsing, Version=1.1.1.13829, Culture=neutral,
PublicKeyToken=e3951cb1f39764e6’ not resolved

For searchpath
/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40/Gallio.GenericParsing’
as a file, but the file does not exist

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40/Gallio.GenericParsing.exe’
as a file, but the file does not exist

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40/Gallio.GenericParsing.dll’
as a file, but the file does not exist

For searchpath {CandidateAssemblyFiles}

Warning: {CandidateAssemblyFiles} not supported currently

For searchpath /Common Files/microsoft
shared/VSTT/10.0/UITestExtensionPackages

Considered ‘/Common Files/microsoft
shared/VSTT/10.0/UITestExtensionPackages/Gallio.GenericParsing’ as a
file, but the file does not exist

Considered ‘/Common Files/microsoft
shared/VSTT/10.0/UITestExtensionPackages/Gallio.GenericParsing.exe’ as a
file, but the file does not exist

Considered ‘/Common Files/microsoft
shared/VSTT/10.0/UITestExtensionPackages/Gallio.GenericParsing.dll’ as a
file, but the file does not exist

For searchpath {HintPathFromItem}

HintPath attribute not found

For searchpath {TargetFrameworkDirectory}

For searchpath {PkgConfig}

Considered Gallio.GenericParsing, Version=1.1.1.13829, Culture=neutral,
PublicKeyToken=e3951cb1f39764e6, but could not find in any pkg-config
files.

For searchpath {GAC}

Considered Gallio.GenericParsing, Version=1.1.1.13829, Culture=neutral,
PublicKeyToken=e3951cb1f39764e6, but could not find in the GAC.

For searchpath {RawFileName}

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/Gallio.GenericParsing,
Version=1.1.1.13829, Culture=neutral, PublicKeyToken=e3951cb1f39764e6’
as a file, but the file does not exist

For searchpath bin/Debug/

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/bin/Debug/Gallio.GenericParsing’
as a file, but the file does not exist

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/bin/Debug/Gallio.GenericParsing.exe’
as a file, but the file does not exist

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/bin/Debug/Gallio.GenericParsing.dll’
as a file, but the file does not exist

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference
‘mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089’ not resolved

For searchpath
/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40

For searchpath {CandidateAssemblyFiles}

Warning: {CandidateAssemblyFiles} not supported currently

For searchpath /Common Files/microsoft
shared/VSTT/10.0/UITestExtensionPackages

For searchpath {HintPathFromItem}

HintPath attribute not found

For searchpath {TargetFrameworkDirectory}

For searchpath {PkgConfig}

Considered mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089, but could not find in any pkg-config
files.

For searchpath {GAC}

Considered mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089, but could not find in the GAC.

For searchpath {RawFileName}

For searchpath bin/Debug/

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference
‘mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089’ not resolved

For searchpath
/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40

For searchpath {CandidateAssemblyFiles}

Warning: {CandidateAssemblyFiles} not supported currently

For searchpath /Common Files/microsoft
shared/VSTT/10.0/UITestExtensionPackages

For searchpath {HintPathFromItem}

HintPath attribute not found

For searchpath {TargetFrameworkDirectory}

For searchpath {PkgConfig}

Considered mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089, but could not find in any pkg-config
files.

For searchpath {GAC}

Considered mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089, but could not find in the GAC.

For searchpath {RawFileName}

For searchpath bin/Debug/

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference
‘NHamcrest, Version=1.2.1.0, Culture=neutral,
PublicKeyToken=31c3ea0b6fcf8c4a’ not resolved

For searchpath
/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40/NHamcrest’
as a file, but the file does not exist

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40/NHamcrest.exe’
as a file, but the file does not exist

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40/NHamcrest.dll’
as a file, but the file does not exist

For searchpath {CandidateAssemblyFiles}

Warning: {CandidateAssemblyFiles} not supported currently

For searchpath /Common Files/microsoft
shared/VSTT/10.0/UITestExtensionPackages

Considered ‘/Common Files/microsoft
shared/VSTT/10.0/UITestExtensionPackages/NHamcrest’ as a file, but the
file does not exist

Considered ‘/Common Files/microsoft
shared/VSTT/10.0/UITestExtensionPackages/NHamcrest.exe’ as a file, but
the file does not exist

Considered ‘/Common Files/microsoft
shared/VSTT/10.0/UITestExtensionPackages/NHamcrest.dll’ as a file, but
the file does not exist

For searchpath {HintPathFromItem}

HintPath attribute not found

For searchpath {TargetFrameworkDirectory}

For searchpath {PkgConfig}

Considered NHamcrest, Version=1.2.1.0, Culture=neutral,
PublicKeyToken=31c3ea0b6fcf8c4a, but could not find in any pkg-config
files.

For searchpath {GAC}

Considered NHamcrest, Version=1.2.1.0, Culture=neutral,
PublicKeyToken=31c3ea0b6fcf8c4a, but could not find in the GAC.

For searchpath {RawFileName}

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/NHamcrest,
Version=1.2.1.0, Culture=neutral, PublicKeyToken=31c3ea0b6fcf8c4a’ as a
file, but the file does not exist

For searchpath bin/Debug/

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/bin/Debug/NHamcrest’
as a file, but the file does not exist

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/bin/Debug/NHamcrest.exe’
as a file, but the file does not exist

Considered
‘/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/bin/Debug/NHamcrest.dll’
as a file, but the file does not exist

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference
‘mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089’ not resolved

For searchpath
/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40

For searchpath {CandidateAssemblyFiles}

Warning: {CandidateAssemblyFiles} not supported currently

For searchpath /Common Files/microsoft
shared/VSTT/10.0/UITestExtensionPackages

For searchpath {HintPathFromItem}

HintPath attribute not found

For searchpath {TargetFrameworkDirectory}

For searchpath {PkgConfig}

Considered mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089, but could not find in any pkg-config
files.

For searchpath {GAC}

Considered mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089, but could not find in the GAC.

For searchpath {RawFileName}

For searchpath bin/Debug/

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference
‘mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089’ not resolved

For searchpath
/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40

For searchpath {CandidateAssemblyFiles}

Warning: {CandidateAssemblyFiles} not supported currently

For searchpath /Common Files/microsoft
shared/VSTT/10.0/UITestExtensionPackages

For searchpath {HintPathFromItem}

HintPath attribute not found

For searchpath {TargetFrameworkDirectory}

For searchpath {PkgConfig}

Considered mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089, but could not find in any pkg-config
files.

For searchpath {GAC}

Considered mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089, but could not find in the GAC.

For searchpath {RawFileName}

For searchpath bin/Debug/

Target GenerateSatelliteAssemblies:

No input files were specified for target GenerateSatelliteAssemblies,
skipping.

Target CoreCompile:

Skipping target “CoreCompile” because its outputs are up-to-date.

Done building project
“/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/MbUnitTest.csproj”.

Done building project
“/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1.sln”.

Build succeeded.

Warnings:

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1.sln
(default targets) ->

(Build target) ->

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1/ConsoleApplication1.csproj
(default targets) ->

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1/ConsoleApplication1.csproj:
warning : Project has unknown ToolsVersion ‘12.0’. Using the default
tools version ‘2.0’ instead.

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1.sln
(default targets) ->

(Build target) ->

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1/ConsoleApplication1.csproj
(default targets) ->

/usr/lib/mono/2.0/Microsoft.Common.targets (GetFrameworkPaths target)
->

/usr/lib/mono/2.0/Microsoft.Common.targets: warning :
TargetFrameworkVersion ‘v4.5’ not supported by this toolset
(ToolsVersion: 2.0).

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1.sln
(default targets) ->

(Build target) ->

/var/lib/jenkins/jobs/myTestApp/workspace/xUnitTestProject/xUnitTestProject.csproj
(default targets) ->

/var/lib/jenkins/jobs/myTestApp/workspace/xUnitTestProject/xUnitTestProject.csproj:
warning : Project has unknown ToolsVersion ‘12.0’. Using the default
tools version ‘2.0’ instead.

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1.sln
(default targets) ->

(Build target) ->

/var/lib/jenkins/jobs/myTestApp/workspace/xUnitTestProject/xUnitTestProject.csproj
(default targets) ->

/usr/lib/mono/2.0/Microsoft.Common.targets (GetFrameworkPaths target)
->

/usr/lib/mono/2.0/Microsoft.Common.targets: warning :
TargetFrameworkVersion ‘v4.5’ not supported by this toolset
(ToolsVersion: 2.0).

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1.sln
(default targets) ->

(Build target) ->

/var/lib/jenkins/jobs/myTestApp/workspace/xUnitTestProject/xUnitTestProject.csproj
(default targets) ->

/usr/lib/mono/2.0/Microsoft.Common.targets (ResolveAssemblyReferences
target) ->

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference
‘mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089’ not resolved

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1.sln
(default targets) ->

(Build target) ->

/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/MbUnitTest.csproj
(default targets) ->

/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/MbUnitTest.csproj:
warning : Project has unknown ToolsVersion ‘12.0’. Using the default
tools version ‘2.0’ instead.

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1.sln
(default targets) ->

(Build target) ->

/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/MbUnitTest.csproj
(default targets) ->

/usr/lib/mono/2.0/Microsoft.Common.targets (GetFrameworkPaths target)
->

/usr/lib/mono/2.0/Microsoft.Common.targets: warning :
TargetFrameworkVersion ‘v4.5’ not supported by this toolset
(ToolsVersion: 2.0).

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1.sln
(default targets) ->

(Build target) ->

/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/MbUnitTest.csproj
(default targets) ->

/usr/lib/mono/2.0/Microsoft.Common.targets (ResolveAssemblyReferences
target) ->

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference
‘mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089’ not resolved

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference
‘mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089’ not resolved

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference
‘Gallio.GenericParsing, Version=1.1.1.13829, Culture=neutral,
PublicKeyToken=e3951cb1f39764e6’ not resolved

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference
‘mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089’ not resolved

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference
‘mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089’ not resolved

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference
‘NHamcrest, Version=1.2.1.0, Culture=neutral,
PublicKeyToken=31c3ea0b6fcf8c4a’ not resolved

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference
‘mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089’ not resolved

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference
‘mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089’ not resolved

15 Warning(s)

0 Error(s)

Time Elapsed 00:00:01.1224900

[xUnit] [INFO] – Starting to record.

[xUnit] [INFO] – Processing MbUnit-2.4 (default)

[xUnit] [INFO] – There are errors when processing test results.

[xUnit] [INFO] – Skipping tests recording.

Finished: SUCCESS

 

可望对君构建软件开发环境有赞助。

君可能感兴趣之章:

GitLab版本管理
自动化测试
软件开发的专业化

若是发生想念打听又多软件,系统 IT,企业信息化 资讯,请关注自我之微信订阅号:

图片 10

作者:Petter Liu
出处:http://www.cnblogs.com/wintersun/
正文版权归作者和博客园共有,欢迎转载,但未经作者同意要保留这个段子声明,且在篇章页面明显位置给出原文连接,否则保留追究法律责任的权利。
该篇也罢还要揭晓于自的独立博客中-Petter Liu
Blog。