Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/ProjectTemplates/scripts/startvs.cmd
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
@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 command launches a Visual Studio solution with environment variables required to use a local version of the .NET SDK.

:: This tells .NET Core to use the same dotnet.exe that build scripts use
:: This tells .NET 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
:: This tells .NET not to go looking for .NET in other places
SET DOTNET_MULTILEVEL_LOOKUP=0

:: Put our local dotnet.exe on PATH first so Visual Studio knows which one to use
Expand All @@ -23,7 +23,7 @@ IF "%sln%"=="" (
)

IF NOT EXIST "%DOTNET_ROOT%\dotnet.exe" (
echo .NET Core has not yet been installed. Run `%~dp0restore.cmd` to install tools
echo .NET has not yet been installed. Run `%~dp0restore.cmd` to install tools
exit /b 1
)

Expand Down
8 changes: 4 additions & 4 deletions startvs.cmd
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
@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 command launches a Visual Studio solution with environment variables required to use a local version of the .NET SDK.

:: This tells .NET Core to use the same dotnet.exe that build scripts use
:: This tells .NET 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
:: This tells .NET not to go looking for .NET in other places
SET DOTNET_MULTILEVEL_LOOKUP=0

:: Put our local dotnet.exe on PATH first so Visual Studio knows which one to use
Expand All @@ -23,7 +23,7 @@ IF "%sln%"=="" (
)

IF NOT EXIST "%DOTNET_ROOT%\dotnet.exe" (
echo .NET Core has not yet been installed. Run `%~dp0restore.cmd` to install tools
echo .NET has not yet been installed. Run `%~dp0restore.cmd` to install tools
exit /b 1
)

Expand Down
8 changes: 4 additions & 4 deletions startvscode.cmd
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
@ECHO OFF
SETLOCAL

:: This command launches a Visual Studio Code with environment variables required to use a local version of the .NET Core SDK.
:: This command launches a Visual Studio Code with environment variables required to use a local version of the .NET SDK.

:: This tells .NET Core to use the same dotnet.exe that build scripts use
:: This tells .NET 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
:: This tells .NET not to go looking for .NET in other places
SET DOTNET_MULTILEVEL_LOOKUP=0

:: Put our local dotnet.exe on PATH first so Visual Studio knows which one to use
Expand All @@ -19,7 +19,7 @@ SET TARGET=net10.0
SET folder=%~1

IF NOT EXIST "%DOTNET_ROOT%\dotnet.exe" (
echo .NET Core has not yet been installed. Run `%~dp0restore.cmd` to install tools
echo .NET has not yet been installed. Run `%~dp0restore.cmd` to install tools
exit /b 1
)

Expand Down
8 changes: 4 additions & 4 deletions startvscode.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env bash

# This command launches a Visual Studio code with environment variables required to use a local version of the .NET Core SDK.
# This command launches a Visual Studio code with environment variables required to use a local version of the .NET SDK.

# This tells .NET Core to use the same dotnet.exe that build scripts use
# 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"

# This tells .NET Core not to go looking for .NET Core in other places
# This tells .NET not to go looking for .NET in other places
export DOTNET_MULTILEVEL_LOOKUP=0

# Put our local dotnet on PATH first so Visual Studio knows which one to use
Expand All @@ -16,7 +16,7 @@ export PATH="$DOTNET_ROOT:$PATH"
export TARGET=net10.0

if [ ! -f "$DOTNET_ROOT/dotnet" ]; then
echo ".NET Core has not yet been installed. Run `./restore.sh` to install tools."
echo ".NET has not yet been installed. Run `./restore.sh` to install tools."
exit 1
fi

Expand Down
Loading