Author Posts

August 23, 2016 at 4:41 am

Hi all I have written the following code to build my projects of type .dwproj

 $SolutionPath = "C:\MyProj\TestDW"
 $ProjectName = "TestDW"
 $CubeProject = Join-Path -Path $SolutionPath -ChildPath "$TestDW.dwproj"
 $vsPath= (Get-Item  'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\devenv.exe').GetValue($name)
 $parameters = """$CubeProject"" /Build development /out C:\log\test.log"
 Start-Process -FilePath $vsPath -ArgumentList $parameters -Wait

But this is building all the reference projects that are available, so how can I build only the particular project excluding all the references

August 23, 2016 at 8:52 am

Modified as follows and creating individual log able to achieve as per required

$parameters = """$SolutionFile"" /Build development /project ""$SlnFilePath"" /out $logPath"
$vsPath= (Get-Item  'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\devenv.exe').GetValue($name)
Start-Process -FilePath $vsPath -ArgumentList $parameters -Wait