Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在git bash和visual studio 17中使用本地devenv deploy命令?_Bash_Visual Studio_Windows 10 - Fatal编程技术网

如何在git bash和visual studio 17中使用本地devenv deploy命令?

如何在git bash和visual studio 17中使用本地devenv deploy命令?,bash,visual-studio,windows-10,Bash,Visual Studio,Windows 10,在我的工作中,我们有两个项目,其中一个需要在本地部署(如果我们在dev中),或者在Azure上在线部署。我想创建一个脚本,允许在MSDN文档中使用devenv命令和option/Deploy在本地发布此项目,在线部署不需要这样做。这只是为了节省我每天的开发时间 我不明白为什么命令行不起作用。。。 谢谢你的帮助! (Visual Studio 2017,git bash,c#) 命令行: devenv(devenv.exe的路径) 解决方案(指向.sln的路径) 项目(要部署的csproj路径)

在我的工作中,我们有两个项目,其中一个需要在本地部署(如果我们在dev中),或者在Azure上在线部署。我想创建一个脚本,允许在MSDN文档中使用devenv命令和option/Deploy在本地发布此项目,在线部署不需要这样做。这只是为了节省我每天的开发时间 我不明白为什么命令行不起作用。。。 谢谢你的帮助! (Visual Studio 2017,git bash,c#)

命令行:

  • devenv(devenv.exe的路径)
  • 解决方案(指向.sln的路径)
  • 项目(要部署的csproj路径)

    $devenv$solution/Deploy Debug/Project$Project/ProjectConfig Debug/Out returnFile

我得到了一些回报:

D:/Solutions/Core/Core.sln: line 1: $'\357\273\277': command not found
D:/Solutions/Core/Core.sln: line 2: Microsoft: command not found
D:/Solutions/Core/Core.sln: line 4: VisualStudioVersion: command not found
D:/Solutions/Core/Core.sln: line 5: MinimumVisualStudioVersion: command not found
D:/Solutions/Core/Core.sln: line 6: syntax error near unexpected token `"{2150E333-8FDC-42A3-9474-1A3956D46DE8}"'
D:/Solutions/Core/Core.sln: line 6: `Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Seedwork", "Seedwork", "{EBE07DC1-8E03-4235-995F-57AC26337525}"'

“对于命令行,我在Git bash中什么都没有”是什么意思?我使用命令行类型和选项/T,我唯一拥有的是自述文件,其中解释了命令和不同的选项这只是猜测,但你知道Git bash和cmd.exe使用完全不同的路径样式,对吗?例如,从git bash运行
C:\windows\notepad.exe
会产生bash:C:windowsnotepad.exe:command not found我编辑我的文章以给出精确性“对于命令行,我在git bash中没有任何内容”是什么意思?我使用命令行类型和选项/T,我只有一个自述文件,解释命令和不同的选项这只是猜测,但你知道git bash和cmd.exe使用完全不同的路径样式,对吗?例如,从git bash运行
C:\windows\notepad.exe
会产生bash:C:windowsnotepad.exe:command not found我编辑我的文章以给出精确性