Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.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
Powershell MSBuild未生成包文件夹_Powershell_Msbuild - Fatal编程技术网

Powershell MSBuild未生成包文件夹

Powershell MSBuild未生成包文件夹,powershell,msbuild,Powershell,Msbuild,我正在从Powershell执行一个MSBuild(MSBuild.exe)-它部分工作,但是它没有创建“Packages”文件夹(我需要deploy.cmd)。然而,它正在创建“dev”文件夹并用几个文件填充它。有什么已知的原因导致这不起作用吗?我的脚本相当简单: $msbuild = "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe" $options = "/p:Configuration=dev /p:DeployT

我正在从Powershell执行一个MSBuild(MSBuild.exe)-它部分工作,但是它没有创建“Packages”文件夹(我需要deploy.cmd)。然而,它正在创建“dev”文件夹并用几个文件填充它。有什么已知的原因导致这不起作用吗?我的脚本相当简单:

$msbuild = "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe"
$options = "/p:Configuration=dev /p:DeployTarget=Package /p:DeployIisAppPath=TestProj /p:AllowUntrustedCertificate=True"

# create the build command and invoke it 
# note that if you want to debug, remove the "/noconsolelogger" 
# from the $options string
$clean = $msbuild + " C:\project\CMS.csproj " + $options + " /t:Clean"
$build = $msbuild + " C:\project\CMS.csproj " + $options + " /t:Build"

Invoke-Expression $clean
Invoke-Expression $build
write-host $build