是否可以使用.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;
}
答案 0 :(得分:0)
不幸的是,到目前为止还不支持在这种类型的项目上运行msbuild。根据微软的说法,这个功能正在按计划进行:
到目前为止,只有像在命令行上使用devenv.exe构建项目这样的黑客才有可能:
http://www.dimodelo.com/blog/2014/automate-build-and-deployment-of-ssas-cubes-using-msbuild/