powershell - 使用PowerShell自动构建dwproj

标签 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

最佳答案

不幸的是,到目前为止,尚不支持在此类项目上运行msbuild。根据Microsoft的说法,此功能按计划进行:

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/

关于powershell - 使用PowerShell自动构建dwproj,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41096064/

相关文章:

powershell - 你能用powershell在应用程序之间切换吗

c# - 无法使用 Microsoft.Build 库发布网站

visual-studio - 为 COM 互操作注册 x64 程序集

msbuild - 如何使用 MSBuild 将文件复制到需要密码的网络共享?

powershell - Powershell:多次解析和复制

powershell - 获取工作表列中的行数

visual-studio - Visual Studio 2008 是否支持特定于配置(调试/发布版本)的引用?

c# - 将 MSbuild 文件从 4.0 降级到 3.5

powershell - 使用空用户名创建PSCredential

winforms - Powershell输入框