/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
startvscode.sh
26 строк
671 B
dotnet-maestro[bot]
[main] Source code updates from dotnet/dotnet (#65006)
15 янв 2026, 20:59
Не верифицирован
15 янв 2026, 20:59
8d95457
Код
Авторство
О чём код?
#!/usr/bin/env bash # This command launches a Visual Studio code with environment variables required to use a local version of the .NET SDK. # This tells .NET to use the same dotnet.exe that build scripts use DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" export DOTNET_ROOT="$DIR/.dotnet" # Put our local dotnet on PATH first so Visual Studio knows which one to use export PATH="$DOTNET_ROOT:$PATH" # Sets TFW for Visual Studio Code usage export TARGET=net11.0 if [ ! -f "$DOTNET_ROOT/dotnet" ]; then echo ".NET has not yet been installed. Run `./restore.sh` to install tools." exit 1 fi if [[ $1 == "" ]]; then code . else code $1 fi exit 1