Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate McMaster <natemcmaster@users.noreply.github.com>2019-02-06 22:20:49 +0300
committerGitHub <noreply@github.com>2019-02-06 22:20:49 +0300
commit075612b98831ee91ed9dff255e66c77bb1abc03d (patch)
tree23d3cea814f56240e71c6caeec9cd98646224986 /startvs.cmd
parent94a4293cce735b3756661ef5a475c4944f57d64d (diff)
Install the .NET Core SDK into the repo root instead of UserProfile and 'install' copy of AspNetCore shared framework (#7293)
This is required to workaround several limitations in the way the .NET Core SDK finds shared frameworks and targeting packs. It allow tests to use shared frameworks and targeting packs. It also matches the patterns established in other aspnet and dotnet repos. This should reduce the friction required to adopt Arcade SDK. ## Changes * This moves the default location of the .NET Core SDK installation into `$repoRoot/.dotnet`. This location was already in use for CI builds. * Update the build step for Microsoft.AspNetCore.App to install the shared framework into the local copy of the .NET Core SDK ## Recommendations * Use the "startvs.cmd" script to launch Visual Studio. This will set required environment variables to make VS happier than if you just double click the .sln file. * Use "activate.sh/ps1" if you want to run `dotnet build`, `dotnet test` and other dotnet commands. These will set required environment variables, including PATH. * I recommend removing %USERPROFILE%/.dotnet to your PATH variable if you had added it manually before. This will no longer match what build tools will install. * `git clean -xfd -e .dotnet/` preserves the folder so you don’t have to re-download the SDK again.
Diffstat (limited to 'startvs.cmd')
-rw-r--r--startvs.cmd6
1 files changed, 1 insertions, 5 deletions
diff --git a/startvs.cmd b/startvs.cmd
index f3fa9216a3..d15843640b 100644
--- a/startvs.cmd
+++ b/startvs.cmd
@@ -2,12 +2,8 @@
:: This command launches a Visual Studio solution with environment variables required to use a local version of the .NET Core SDK.
-IF "%DOTNET_HOME%"=="" (
- set DOTNET_HOME=%USERPROFILE%\.dotnet
-)
-
:: This tells .NET Core to use the same dotnet.exe that build scripts use
-SET DOTNET_ROOT=%DOTNET_HOME%\x64
+SET DOTNET_ROOT=%~dp0.dotnet\x64
:: This tells .NET Core not to go looking for .NET Core in other places
SET DOTNET_MULTILEVEL_LOOKUP=0