17 Star 71 Fork 21

Microsoft/AspNetCore

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
startvscode.sh 792 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/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 tells .NET Core 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
export DOTNET_MULTILEVEL_LOOKUP=0
# 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=net10.0
if [ ! -f "$DOTNET_ROOT/dotnet" ]; then
echo ".NET Core has not yet been installed. Run `./restore.sh` to install tools."
exit 1
fi
if [[ $1 == "" ]]; then
code .
else
code $1
fi
exit 1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/microsoft/AspNetCore.git
[email protected]:microsoft/AspNetCore.git
microsoft
AspNetCore
AspNetCore
main

搜索帮助