You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change updates the StartVS script in the following ways:
* Ported batch file to a PowerShell script. The batch file is still
there. It just runs the PowerShell script.
* Added a `-chooseVS` switch that displays a menu of Visual Studio
instances that are installed and allows the user to pick one to
launch.
* Added an `-includeRoslynDeps` switch that sets an environment variable
that controls whether Roslyn dependencies are included with the
Razor extension or not.
HelpMessage="Solution file to open. The default is 'Razor.sln'.")]
7
+
[string]$solutionFile=$null,
8
+
9
+
[Parameter(
10
+
Mandatory=$false,
11
+
HelpMessage="If specified, choose the Visual Studio version from a list before laucnhing. By default the newest and last installed Visual Studio instance will be launched.")]
12
+
[Switch]$chooseVS,
13
+
14
+
[Parameter(
15
+
Mandatory=$false,
16
+
HelpMessage="If specified, Roslyn dependencies will be included in the Razor extension when deployed.")]
17
+
[Switch]$includeRoslynDeps
18
+
)
19
+
20
+
if ($solutionFile-eq"") {
21
+
$solutionFile="Razor.sln"
22
+
}
23
+
24
+
if ($includeRoslynDeps) {
25
+
# Setting this environment variable ensures that the MSBuild will see it when
26
+
# building from inside Visual Studio.
27
+
$env:IncludeRoslynDeps=$true
28
+
}
29
+
30
+
$dotnetPath=Join-Path (Get-Location) ".dotnet"
31
+
32
+
# This tells .NET Core to use the same dotnet.exe that build scripts use
33
+
$env:DOTNET_ROOT=$dotnetPath
34
+
${env:DOTNET_ROOT(x86)}=Join-Path$dotnetPath"x86"
35
+
36
+
# This tells .NET Core not to go looking for .NET Core in other places
37
+
$env:DOTNET_MULTILEVEL_LOOKUP=0
38
+
39
+
# Put our local dotnet.exe on PATH first so Visual Studio knows which one to use
0 commit comments