Build dwproj with devenv

Welcome Forums General PowerShell Q&A Build dwproj with devenv

Viewing 1 reply thread
  • Author
    Posts
    • #51563
      Participant
      Topics: 9
      Replies: 16
      Points: 0
      Rank: Member

      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
      Participant
      Topics: 9
      Replies: 16
      Points: 0
      Rank: Member

      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
      
Viewing 1 reply thread
  • The topic ‘Build dwproj with devenv’ is closed to new replies.