# Build dwproj with devenv

**URL:** https://forums.powershell.org/t/build-dwproj-with-devenv/7048
**Category:** PowerShell Help
**Created:** [August 22, 2016, 11:11pm UTC](https://forums.powershell.org/t/build-dwproj-with-devenv/7048 "2016-08-22T23:11:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![krishna-chaitanya](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@krishna-chaitanya](https://forums.powershell.org/u/krishna-chaitanya)
#### Post date: [August 22, 2016, 11:11pm UTC](https://forums.powershell.org/t/build-dwproj-with-devenv/7048/1 "2016-08-22T23:11:52Z")

</div>

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

---

<div class="post-metadata">

### Author: ![krishna-chaitanya](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@krishna-chaitanya](https://forums.powershell.org/u/krishna-chaitanya)
#### Post date: [August 23, 2016, 3:22am UTC](https://forums.powershell.org/t/build-dwproj-with-devenv/7048/2 "2016-08-23T03:22:30Z")

</div>

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
```

---

<div class="post-metadata">

### Author: ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)
#### Post date: [May 16, 2024, 8:40pm UTC](https://forums.powershell.org/t/build-dwproj-with-devenv/7048/3 "2024-05-16T20:40:42Z")

</div>


