Visual studio “触发”;“不调试启动”;壳内
每天,在开始编写代码之前,我必须在不调试许多VisualStudio解决方案的情况下打开并开始 为了自动化这个耗时的过程,我创建了一个Shell脚本,它只需打开VisualStudio解决方案 对于每个解决方案,我如何还“触发”了“启动而不调试”命令 以下是我的脚本:Visual studio “触发”;“不调试启动”;壳内,visual-studio,shell,Visual Studio,Shell,每天,在开始编写代码之前,我必须在不调试许多VisualStudio解决方案的情况下打开并开始 为了自动化这个耗时的过程,我创建了一个Shell脚本,它只需打开VisualStudio解决方案 对于每个解决方案,我如何还“触发”了“启动而不调试”命令 以下是我的脚本: Set-ExecutionPolicy Bypass -Scope CurrentUser $listOfProjects = ( 'F:\Work\Solution1.sln', 'F:\Work\Soluti
Set-ExecutionPolicy Bypass -Scope CurrentUser
$listOfProjects = (
'F:\Work\Solution1.sln',
'F:\Work\Solution2.sln',
'F:\Work\Solution3.sln',
'F:\Work\Solution4.sln'
)
foreach($item in $listOfProjects)
{
# open the solution
$proc = Start-Process $item
$proc.WaitForExit()
# trigger "Start Without Debugging" ?
}
Set-ExecutionPolicy Restricted -Scope CurrentUser
启动而不调试只是运行一个可执行文件。为什么不直接运行可执行文件,而不是通过VS循环运行?是的,但哪个是可执行文件?有很多方法可以解决这个问题-手动,或者通过构建项目并搜索包含
projectname->exe
的行,或者使用msbuild脚本,在其中导入其他项目并检查其TargetPath
属性是什么