mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-11 18:20:26 +09:00
Respect -runtimeconfiguration with -vs switch (#33355)
When using the -vs switch, the -runtimeconfiguration value will now be respected so that building with mixed configurations between libraries and the runtime inside VS is possible.
This commit is contained in:
parent
6ef9af19c2
commit
08fa712f0f
1 changed files with 4 additions and 1 deletions
|
@ -14,7 +14,7 @@ Param(
|
|||
[string]$arch = [System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant(),
|
||||
[string]$subsetCategory,
|
||||
[string]$subset,
|
||||
[ValidateSet("Debug","Release","Checked")][string]$runtimeConfiguration,
|
||||
[ValidateSet("Debug","Release","Checked")][string]$runtimeConfiguration = "Debug",
|
||||
[ValidateSet("Debug","Release")][string]$librariesConfiguration,
|
||||
[Parameter(ValueFromRemainingArguments=$true)][String[]]$properties
|
||||
)
|
||||
|
@ -102,6 +102,9 @@ if ($vs) {
|
|||
# Put our local dotnet.exe on PATH first so Visual Studio knows which one to use
|
||||
$env:PATH=($env:DOTNET_ROOT + ";" + $env:PATH);
|
||||
|
||||
# Respect the RuntimeConfiguration variable for building inside VS with different runtime configurations
|
||||
$env:RUNTIMECONFIGURATION=$runtimeConfiguration
|
||||
|
||||
# Launch Visual Studio with the locally defined environment variables
|
||||
."$vs"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue