From 1f4cf5658ff4ff5ba599423c8ecbad2103474cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=A2=A6=E6=B6=B5?= <3234558314@qq.com> Date: Mon, 11 Nov 2024 11:31:41 +0800 Subject: [PATCH] 11.11 --- .../20241111.md" | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 "\351\231\210\346\242\246\346\266\265/20241111.md" diff --git "a/\351\231\210\346\242\246\346\266\265/20241111.md" "b/\351\231\210\346\242\246\346\266\265/20241111.md" new file mode 100644 index 0000000..2cadee6 --- /dev/null +++ "b/\351\231\210\346\242\246\346\266\265/20241111.md" @@ -0,0 +1,50 @@ + +## 打开终端 + Ctrl+`:打开终端 + + 或 + 首先打开Vscode后,点击顶部菜单【终端】; + + 点击【新建终端】; + + 最后打开终端面板后,即可使用【终端】。 + +## 命令——查看dotnet版本号 + + dotnet --version + + 如果版本号位出现,说明未安装。 + +## 命令——新建mvc + + dotnet new mvc + +### 关闭https创建 + + dotnet new mvc --no-https + +### 取个名字创建 + +dotnet new mvc -n MVCSoft1 --no-https + +dotnet new mvc -o MVCSoft1 --no-https也一样,但是据说以前的版本-o不会创建新的文件夹,现在的版本会了 + +## 跑一下 + + dotnet run + +## 所有命令 + +- dotnet --version :查看版本 + +- dotnet run : 在没有调试的情况下,让它运行 + +- dotnet new mvc :创建模板 + +- dotnet new mvc -n 文件名 :在创建的文件夹中创建模板 + +- dotnet new mvc --no-https :关掉https,不会有不安全的显示 + +- dotnet new mvc -n 文件名 --no-https :在创建的文件夹中创建模板,不会有不安全的显示 + +- dotnet new mvc -o 文件名 --no-https :在创建的文件夹中创建模板,不会有不安全的显示 \ No newline at end of file -- Gitee