SORU
23 Ocak 2010, CUMARTESİ


Visual Studio ilkesi kullanabileceğim bir Komut İstemi?

Bir süre Beta 2 kullanıyorum ve punt için öyle fındık VS2010 Komut satırında çalıştırırken cmd.exe sürüş oldu. Güzel bir vsvars2008 vardı.Visual Studio için ps1 komut dosyası, 2008. Herkes bir vsvars2010.falan ps1 benzer?

CEVAP
23 Ocak 2010, CUMARTESİ


Buradan liberal çalmak: http://allen-mack.blogspot.com/2008/03/replace-visual-studio-command-prompt.html Bu iş bulabildim. Profilim aşağıdaki eklendi.ps1 ve tüm dünya ile.

#Set environment variables for Visual Studio Command Prompt
pushd 'c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC'
cmd /c "vcvarsall.bat&set" |
foreach {
  if ($_ -match "=") {
    $v = $_.split("="); set-item -force -path "ENV:\$($v[0])"  -value "$($v[1])"
  }
}
popd
write-host "`nVisual Studio 2010 Command Prompt variables set." -ForegroundColor Yellow

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Disney Pets and Animals

    Disney Pets

    29 ŞUBAT 2012
  • listedabive

    listedabive

    30 Ocak 2007
  • MusicDeluxeTV

    MusicDeluxeT

    14 Mayıs 2010