FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
aspnetcore/startvscode.sh at main · Deeployed-Peer/aspnetcore · GitHub
Deeployed-Peer
aspnetcore
Repository navigation
Code
Pull requests
3
(3)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
aspnetcore
/
startvscode.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
26 lines (19 loc) · 671 Bytes
Breadcrumbs
aspnetcore
/
startvscode.sh
Copy path
File metadata and controls
executable file
·
26 lines (19 loc) · 671 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!
/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
Back
|
FazBrowse Home
|
New Git URL