在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
当然您也可以 在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
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的项目中我们需要打开
在项目中增加最新的NuGet.target, NuGet.exe
配置
Jenkins项目配置
配置GIT Jenkins插件
支持SSH
或用户名:
增加构建脚本触发器
例如 下面的URL
http://10.1.1.36/jenkins/job/SouthAsiaDH/build?token=gitlab
使用Execute shell 来执行 xbuild
因为Linux下是区分大小写的,最好使用
MONO_IOMAP=case xbuild ConsoleApplication1.sln
增加对应 单元测试 插件
让GitLab 触发 Jenkins 自动编译
在Gitlab中对应的项目设置 webhook,如以下URL
http://10.1.1.36/jenkins/job/SouthAsiaDH/build?token=gitlab
最后在控制台看到编译后的某个项目的输出
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
希望对您构建软件开发环境有帮助。
你可能感兴趣的文章:
如有想了解更多软件,系统 IT,企业信息化 资讯,请关注我的微信订阅号:
作者:Petter Liu
出处:http://www.cnblogs.com/wintersun/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
该文章也同时发布在我的独立博客中-Petter Liu Blog。
在CentOS上构建.net自动化编译环境的更多相关文章
- CentOS上部署Django+Nginx+Uwsgi环境
在CentOS上部署Django+Nginx+Uwsgi环境 奇谭 2016-09-01 评论 Linux python django nginx uwsgi VirtualEnv的作用:创建隔 ...
- 构建Jenkins自动化编译管理环境
今天研究了一下Jenkins,有了一个粗浅的认识,顺手把构建的过程说一下,后续慢慢补充: (1)Secure CRT 连接到Linux服务器 要注意的一点是,要搞好一个文件传输的路子,否则不好传东西. ...
- 在主机上如何构建openwrt的编译环境?
答: 请参考官方文档
- 在CENTOS上源码搭建LNMP环境
前言 1.操作前提: CentOS Linux release 7.5.1804: sudo用户(需要root权限): 2.需要安装的组件: nginx稳定版:nginx-1.14.0: MariaD ...
- 在CentOS上以源码编译的方式安装Greenplum数据库
集群组成: 一台主机,一台从节点. 系统环境: 操作系统:CentOS 7,64位,7.4.1708(/etc/redhat-release中查看) CPU:AMD Fx-8300 8核 内存:8GB ...
- centos上安装配置java WEB环境_java(转)
趁着十一期间,好好的写写随笔来记录自己所学.所践和所得,不足之处,欢迎各位拍砖~~~ 工具:Xftp 5.Xshell 5 一.安装jdk 1. 使用Xftp 5把jdk-8u65-linux-x64 ...
- CentOS下安装go语言编译环境
1.下载Go语言的安装包 这里给大家一个百度的分享连接http://pan.baidu.com/s/1qY3xPaG下载到CentOS的系统之中 $ tar -xzf go1.5.2.linux-xx ...
- 在Linux CentOS上搭建Jmeter压测环境
本文的主要内容是介绍如何在Linux CentOS 服务器上面搭建Jmeter的压测环境整个详细的流程,来满足我们日常工作中对于压力测试环境搭建.压力测试执行过程的需求. 一.首先我们要准备四个东西, ...
- CentOS上搭建java WEB开发环境Tomcat+MySQL+JDK
对于初学者来说,想在linux系统上搭建一个java web服务器,不知道什么方案可行, 这篇文章主要是告诉这些基础和概念相对薄弱的同学,这样搭建是可行的,大体上没问 题的,出问题也是细节问题.所以此 ...
随机推荐
- 理解CSS外边距margin
前面的话 margin是盒模型几个属性中一个非常特殊的属性.简单举几个例子:只有margin不显示当前元素背景,只有margin可以设置为负值,margin和宽高支持auto,以及margin具有 ...
- C#与C++的发展历程第三 - C#5.0异步编程巅峰
系列文章目录 1. C#与C++的发展历程第一 - 由C#3.0起 2. C#与C++的发展历程第二 - C#4.0再接再厉 3. C#与C++的发展历程第三 - C#5.0异步编程的巅峰 C#5.0 ...
- redux学习
redux学习: 1.应用只有一个store,用于保存整个应用的所有的状态数据信息,即state,一个state对应一个页面的所需信息 注意:他只负责保存state,接收action, 从store. ...
- Python标准库--typing
作者:zhbzz2007 出处:http://www.cnblogs.com/zhbzz2007 欢迎转载,也请保留这段声明.谢谢! 1 模块简介 Python 3.5 增加了一个有意思的库--typ ...
- ASP.NET MVC5+EF6+EasyUI 后台管理系统(76)-微信公众平台开发-网页授权
前言 网页授权是:应用或者网站请求你用你的微信帐号登录,同意之后第三方应用可以获取你的个人信息 网上说了一大堆参数,实际很难理解和猜透,我们以实际的代码来演示比较通俗易懂 配置 实现之前我们必须配置用 ...
- 前端自动化构建工具gulp记录
一.安装 1)安装nodejs 通过nodejs的npm安装gulp,插件也可以通过npm安装.windows系统是个.msi工具,只要一直下一步即可,软件会自动在写入环境变量中,这样就能在cmd命令 ...
- nodejs利用ajax实现网页无刷新上传图片
nodejs利用ajax实现网页无刷新上传图片 标签(空格分隔): nodejs 通常情况下上传图片是要通过提交form表单来实现的,但是这又不可避免的产生了网页转. 利用ajax技术和FormDat ...
- Oracle 10g安装教程
首先下载安装文件,打开后文件结构如图所示: 安装之前请关闭Windows防火墙并断开网络. xp系统下直接双击运行(本经验以XP系统安装为例进行讲述). 如果是在win7上安装,如图:在setup文件 ...
- 用 eric6 与 PyQt5 实现python的极速GUI编程(系列04)---- PyQt5自带教程:地址簿(address book)
[引子] 在PyQt5自带教程中,地址簿(address book)程序没有完全实现界面与业务逻辑分离. 本文我打算用eric6+PyQt5对其进行改写,以实现界面与逻辑完全分离. [概览] 1.界面 ...
- java的poi技术读取Excel数据到MySQL
这篇blog是介绍java中的poi技术读取Excel数据,然后保存到MySQL数据中. 你也可以在 : java的poi技术读取和导入Excel了解到写入Excel的方法信息 使用JXL技术可以在 ...