Build dwproj with devenv

Tagged: 

This topic contains 1 reply, has 1 voice, and was last updated by Profile photo of Krishna Chaitanya Krishna Chaitanya 3 months, 2 weeks ago.

  • Author
    Posts
  • #51563
    Profile photo of Krishna Chaitanya
    Krishna Chaitanya
    Participant

    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

  • #51576
    Profile photo of Krishna Chaitanya
    Krishna Chaitanya
    Participant

    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
    

You must be logged in to reply to this topic.