是否可以在 Jenkins 上构建 TwinCAT3 解决方案?
我已经用 msbuild 和 devenv.com 尝试过了。
msbuild:MSBuild 不支持 *.tspproj
devenv.com .tspproj:找不到该项目类型所基于的应用程序
您无法使用 MSBuild 构建 PLC 项目,因为它不是使用 MSBuild 构建的,而是通过 CodeSYS 编译器构建的。
不过你可以构建整个解决方案 https://github.com/tcunit/TcUnit/issues/7#issuecomment-559178327 using:
start /wait "" "%ProgramFiles(x86)%/Microsoft Visual Studio 12.0/Common7/IDE/devenv.exe" project.sln /Rebuild "Debug|TwinCAT RT (x86)" /Out logfile.log
.
2020 年 5 月 23 日编辑
或者您可以使用以下解决方案构建单个项目(请参阅 MSDN 文档 https://learn.microsoft.com/en-us/visualstudio/ide/reference/project-devenv-exe?view=vs-2019).
start /wait "" "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe" "C:\path\to\solution.sln" /Project "relative\path\to\PLC.plcproj" /Rebuild "Debug|TwinCAT RT (x86)" /Out logfile.log
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)