GitLab CI持续集成配置方案(补)
2.3 MSB4019CI服务器用msbuild命令编译时候,会出现MBS4019(想看到错误编号,只要把命令/verbosity:quiet 改成/verbosity=diagnostic即可)
错误:
error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\XXXX.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.)
打开https://images2015.cnblogs.com/blog/248387/201608/248387-20160816174206812-237656205.png,引起错误的原因是这句话
https://images2015.cnblogs.com/blog/248387/201608/248387-20160816174208265-1819368177.png
【解决办法】
1>安装Microsoft Visual Studio 2015 Shell (独立),Visual Studio 2015 Isolated Shell(需要有注册Connect账号)
2>把缺失的target拷贝上去,或者删除
2.4 powershell脚本 执行不成功的解决办法
1、将PowerShell的脚本内容保存到一个.ps1为后缀的文件中。 2、双击执行此ps1文件很有可能无法执行,提示:无法加载文件 D:\PowerShell\test\myfirst1.ps1,因为在此系统中禁止执行脚本。
3、运行get-executionpolicy,如果结果是Restricted,那表示禁止执行脚本。
4、执行如下命令,降低系统的安全性,允许执行脚本:set-executionpolicy -executionpolicy unrestricted
2.5 乱码问题
脚本加上这句可以解决中文乱码
Test:
script:
- chcp 65001
感谢 @Ellis_l
2.6 stuck问题
重新注册一下即可,register
页:
[1]