Skip to content
Snippets Groups Projects
Select Git revision
  • 5b53e7ce1c20b679070d474e845dc032fd553ba3
  • master default protected
  • dev_moritz
  • 0.2.0
  • 0.1.0
5 results

10-VSDevEnv.ps1

Blame
  • Moritz Maxeiner's avatar
    calrama authored
    5b53e7ce
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    10-VSDevEnv.ps1 407 B
    # SPDX-License-Identifier: AGPL-3.0-or-later
    
    #
    # Sets up Visual Studio Development environment
    #
    function VSDevEnv {
        pushd "C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/Common7/Tools"
        cmd /c "VsDevCmd.bat $args & set" |
        foreach {
            if ($_ -match "=") {
                $v = $_.split("="); set-item -force -path "ENV:\$($v[0])"  -value "$($v[1])"
            }
        }
        popd
    }