无法通过Jenkine构建我的项目(VS2013)。

编程入门 行业动态 更新时间:2024-10-11 15:16:20
本文介绍了无法通过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吗?如果是,您可以尝试用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 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)。

本文发布于:2023-11-08 06:26:25,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1568591.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:项目   Jenkine

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!