From e6053a7a939791113957df4dc4b7d39828e2f450 Mon Sep 17 00:00:00 2001 From: feilong Date: Wed, 15 Dec 2021 15:58:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BC#=E7=AC=AC1=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HelloWorld2.md" | 12 ++++++++++++ .../Variable.json" | 0 .../Variable.md" | 0 3 files changed, 12 insertions(+) create mode 100644 "data/1..NET\345\210\235\351\230\266/2.C#\350\257\255\346\263\225/2.C#\346\226\207\346\234\254\345\200\274\345\222\214\345\217\230\351\207\217/Variable.json" create mode 100644 "data/1..NET\345\210\235\351\230\266/2.C#\350\257\255\346\263\225/2.C#\346\226\207\346\234\254\345\200\274\345\222\214\345\217\230\351\207\217/Variable.md" diff --git "a/data/1..NET\345\210\235\351\230\266/2.C#\350\257\255\346\263\225/1.\347\274\226\345\206\231\347\254\254\344\270\200\344\270\252C#\344\273\243\347\240\201/HelloWorld2.md" "b/data/1..NET\345\210\235\351\230\266/2.C#\350\257\255\346\263\225/1.\347\274\226\345\206\231\347\254\254\344\270\200\344\270\252C#\344\273\243\347\240\201/HelloWorld2.md" index d12236f..e3a0394 100644 --- "a/data/1..NET\345\210\235\351\230\266/2.C#\350\257\255\346\263\225/1.\347\274\226\345\206\231\347\254\254\344\270\200\344\270\252C#\344\273\243\347\240\201/HelloWorld2.md" +++ "b/data/1..NET\345\210\235\351\230\266/2.C#\350\257\255\346\263\225/1.\347\274\226\345\206\231\347\254\254\344\270\200\344\270\252C#\344\273\243\347\240\201/HelloWorld2.md" @@ -16,6 +16,18 @@ namespace Program{ } ``` +.NET 6 下使用命令创建一个C#程序: + +```bash +dotnet new console --output sample +``` + +在 `sample/Program.cs` 里编写程序,然后执行下面的命令运行: + +```bash +dotnet run --project sample +``` + 在 C# 10.0 里以下代码不能正确运行的是? ## 答案 diff --git "a/data/1..NET\345\210\235\351\230\266/2.C#\350\257\255\346\263\225/2.C#\346\226\207\346\234\254\345\200\274\345\222\214\345\217\230\351\207\217/Variable.json" "b/data/1..NET\345\210\235\351\230\266/2.C#\350\257\255\346\263\225/2.C#\346\226\207\346\234\254\345\200\274\345\222\214\345\217\230\351\207\217/Variable.json" new file mode 100644 index 0000000..e69de29 diff --git "a/data/1..NET\345\210\235\351\230\266/2.C#\350\257\255\346\263\225/2.C#\346\226\207\346\234\254\345\200\274\345\222\214\345\217\230\351\207\217/Variable.md" "b/data/1..NET\345\210\235\351\230\266/2.C#\350\257\255\346\263\225/2.C#\346\226\207\346\234\254\345\200\274\345\222\214\345\217\230\351\207\217/Variable.md" new file mode 100644 index 0000000..e69de29 -- GitLab