使用PowerShell自动构建dwproj

时间:2016-12-12 07:33:20

标签: powershell msbuild

是否可以使用.DWPROJ而不是msbuild自动构建devenv个扩展程序。使用devenv

构建解决方案时,我遇到的许可问题很少

我目前的做法如下

function BuildCube($SlnFileName, $SlnFilePath)
{    
    $parameters = """$SlnFilePath"" /Build"
    $vsPath= (Get-Item  'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\devenv.exe').GetValue($name)
    Start-Process -FilePath $vsPath -ArgumentList $parameters -Wait      
    Write-Progress -Id 20275 -Activity $SlnFileName  -Status "Done building." -PercentComplete 100;
}

尝试使用msbuild时遇到的异常 enter image description here

1 个答案:

答案 0 :(得分:0)

不幸的是,到目前为止还不支持在这种类型的项目上运行msbuild。根据微软的说法,这个功能正在按计划进行:

https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/11536152-support-ssas-ssis-ssrs-in-msbuild

到目前为止,只有像在命令行上使用devenv.exe构建项目这样的黑客才有可能:

http://www.dimodelo.com/blog/2014/automate-build-and-deployment-of-ssas-cubes-using-msbuild/

相关问题