问题1、ObjectNotFound: (git:String) [], CommandNotFoundException
乱码
设置Unicode UTF-8 提供全球语言支持。也可以直接把系统语言改成英语
问题2、
The term ‘git’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spe
lling of the name, or if a path was included, verify that the path is correct and try again.
At C:\WINDOWS\TEMP\build_script523212989\script.ps1:197 char:3
- & “git” “config” “-f” "E:\workspace\builds\sDk4VGpz\0\weaiove\backend …
-
+ CategoryInfo : ObjectNotFound: (git:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
原因:git环境变量设置错误,一定要设到系统级环境变量
一定要设到系统级环境变量
一定要设到系统级环境变量
一定要设到系统级环境变量
一定要设到系统级环境变量
一定要设到系统级环境变量
一定要设到系统级环境变量
可参考
https://www.cnblogs.com/TeemoHQ/p/9298946.html
问题3:
msbuild ouputpath msmsbuild ouputpath 丢失 roslyn
https://www.cnblogs.com/lgq168/p/9473346.html
增加/t:Rebuild参数重新构建就好了
- $webcollectionOfArgs = @($web,"/t:Rebuild","/t:Compile","/t:_CopyWebApplication","/p:Configuration=Debug","/p:WebProjectOutputDir=E:\\workspace\\aqwy\\backend\\pulish\\pm1\\web","/p:OutputPath=E:\\workspace\\aqwy\\backend\\pulish\\pm1\\web\\bin")
- msbuild $webcollectionOfArgs
问题三:
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: Get https://registry-vpc.cn-beijing.aliyuncs.com/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
解决:https://registry-vpc.cn-beijing.aliyuncs.com/ 是私有地址,只能内网访问不能公网访问的
WARNING! Using --password via the CLI is insecure. Use --password-stdin. 这个不用理会他,在windows上登录用这个是有问题,一开始以为是这个问题结果在这个上纠结了很久,最后调整程password后都正常了