jenkins好像用的蛮广泛的,很多家公司都在用,这里就发一些最近在一台新节点上部署Asp.net网站遇到的问题:
首先来说说环境,除了按照jenkins之外,我们还需要按照 .net 2.0 4.0之类的按照你项目来,我这里是4.0,然后建议安装一个MS SDK,很多东西都能装上,如果没装,可能会出现下面的错误:
error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
error MSB3091: Task failed because "AxImp.exe" was not found, or the correct Microsoft Windows SDK is not installed. The task is looking for "AxImp.exe" in the "bin" subdirectory beneath the location specified in the InstallationFolder value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A. You may be able to solve the problem by doing one of the following: 1) Install the Microsoft Windows SDK. 2) Install Visual Studio 2010. 3) Manually set the above registry key to the correct location. 4) Pass the correct location into the "ToolPath" parameter of the task. [
环境配置差异导致找不到文件:
(GetAspNetMergePath target) -> C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Transform\Microsoft.Web.Publishing.AspNetCompileMerge.targets(132,5): error : Can't find the valid AspnetMergePath
解决方法是找到jenkins部署机器上的真实路径,比如我的是:
C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0 Tools
只要将这个路径放在Jenkins的编译指令中就可以了,比如我的:
/t:Rebuild /property:Configuration=Release;PublishProfile=jenkins-DB2Eshang;DeployOnBuild=true;VisualStudioVersion=12.0 /property:TargetFrameworkVersion=v4.5 /p:AspnetMergePath="C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0 Tools
相关推荐
Centos7+Docker+Jenkins+ASP.NET Core 2.0自动化发布与部署的实现
Centos+Docker+ Jenkins+ ASP.NET Core 2.0自动化发布与部署的实现
主要给大家介绍了关于ASP.NET Core+Docker+Jenkins实现持续集成的相关资料,文中通过示例代码介绍的非常详细,对大家学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
Docker-Windows-Server-Jenkins:DevOps Dockerized Windows Server Core Jenkins,ASP.NET 4.8,.NET Core 3.1
jenkins配置.net 6.0项目
Jenkins 版本编译配置,详解Jenkins 版本编译配置文档
dotnet-sdk-plugin 这是的插件,可方便地使用 ,特别是.NET Core和.NET 5.0的SDK。 这包括: 将命名的SDK配置为全局工具,并通过下载自动安装声明式管道的“ tools部分中的dotnetsdk 构建包装,以为特定的.NET SDK...
Jenkins持续集成 & .NET cmd创建日期时间文件夹.rar
主要介绍了基于Jenkins搭建.NET Core持续集成环境过程图解,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下
jenkins服务器自动编译和部署
主要介绍了jenkins部署.net平台自动化构建的方法步骤,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
第一章 部署准备1.1 目的像 java 项目一样,研发人员只需要提交前端 js 源代码到 svn,即可使用 jenkins 编译打包并部署,而不需要手工编译。
windowsserver2008R2环境SVN(源代码管理器:jenkins通过插件从源代码管理器下载代码)Jenkins(主角)地址:http://ftp.yz.yamagata-u.ac.jp/pub/misc/jenkins/windows-stable/jenkins-2.19.1.zip;JDK1.7以上....
jenkins自动化部署VS,SVN配置,linux,master slave的搭建过程描述
主要介绍了基于Jenkins搭建.NET FrameWork持续集成环境,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下