无法通过Jenkine构建我的项目(VS2013)。 [英] Not able to build my project(VS2013) through Jenkine.

查看:329
本文介绍了无法通过Jenkine构建我的项目(VS2013)。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正面临着我的项目的构建问题,即在VS 2013中。
当我尝试执行构建命令时,b $ b $
(即如果使用cmd执行它正常工作或.bat文件)通过Jenkins。



我遇到了一些错误:



Microsoft Visual Studio 2013版本12.0.40629.0。

版权所有(C)Microsoft Corp.保留所有权利。



Visual Studio许可证已过期。



未注册的课程。

使用CLSID查找对象:{6C4024E7-5DEC-4EEC-B3F9-55B3F3AD1E9E}。



目前,我正在使用VS 2013专业版(许可版本目前未过期)&能够通过Microsoft Visual Studio解决方案(.sln)构建我的项目



请建议我解决此问题。

解决方案

你好ranjan621,


感谢你在这里发帖。


你有没有在Jenkins服务器上安装Visual Studio,然后登录Visual Studio并链接到MSDN帐户? Visual Studio已过期,"帐户设置"对话框将自动打开,以便添加许可证。否则请转到
文件>帐户设置并手动添加订阅密钥。这可能是问题所在。如果你已经做过那些,那么你的构建命令是通过Jenkins的?你在构建命令中使用devenv.com吗?如果是,您可以尝试用MSBuild替换

" C:\Program Files(x86)\ MSBuild\12.0 \\ \\Bin\MSBuild.exe" " Your.sln"   / t:rebuild / p:Configuration = Release  / p:VisualStudioVersion = 12.0 


希望这会有所帮助。


I am facing build issue with my project i.e. in VS 2013.

when I try to execute build command (i.e is working fine if it is executed with cmd or .bat file) trough Jenkins.

I faced some Error :

Microsoft Visual Studio 2013 Version 12.0.40629.0.
Copyright (C) Microsoft Corp. All rights reserved.

The license for Visual Studio has expired.

Class not registered.
Looking for object with CLSID: {6C4024E7-5DEC-4EEC-B3F9-55B3F3AD1E9E}.

Currently, I am using VS 2013 professional(licensed version it doesn't expired at this time) & able to build my project through Microsoft Visual Studio Solution (.sln)

Please suggest me to resolve to this issue.

解决方案

Hi ranjan621,

Thanks for posting here.

Have you install Visual Studio on the Jenkins server, then logged in Visual Studio and linked to MSDN account? Visual Studio is expired the Account Settings dialog will open automatically for the license to be added. Otherwise go to File > Account Settings and manually add the subscription key. That might be the problem. If you have did those already, what`s your build command trough Jenkins? Are you using devenv.com in your build command? If yes, you can try to replace it with MSBuild:

"C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe" "Your.sln"  /t:rebuild /p:Configuration=Release  /p:VisualStudioVersion=12.0

Hope this helps.


这篇关于无法通过Jenkine构建我的项目(VS2013)。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆