Scaffolding/startvs.cmd

24 строки
656 B
Batchfile
Исходник Обычный вид История

2024-05-08 21:38:09 +03:00
@ECHO OFF
SETLOCAL
:: This command launches a Visual Studio solution with environment variables required to use a local version of the .NET Core SDK.
:: This tells .NET Core to use the same dotnet.exe that build scripts use
SET DOTNET_ROOT=%~dp0.dotnet
SET DOTNET_ROOT(x86)=%~dp0.dotnet\x86
:: This tells .NET Core not to go looking for .NET Core in other places
SET DOTNET_MULTILEVEL_LOOKUP=0
:: Put our local dotnet.exe on PATH first so Visual Studio knows which one to use
SET PATH=%DOTNET_ROOT%;%PATH%
SET sln=%~1
IF "%sln%"=="" (
echo Solution not specified, using All.sln
SET sln=%~dp0All.sln
)
start "" "%sln%"