diff --git a/vs4win/Chapter 1/ch01.txt b/vs4win/Chapter 1/ch01.txt deleted file mode 100644 index e69de29..0000000 diff --git a/vs4win/Chapter01/AboutMyEnvironment/AboutMyEnvironment.csproj b/vs4win/Chapter01/AboutMyEnvironment/AboutMyEnvironment.csproj new file mode 100644 index 0000000..74abf5c --- /dev/null +++ b/vs4win/Chapter01/AboutMyEnvironment/AboutMyEnvironment.csproj @@ -0,0 +1,10 @@ + + + + Exe + net6.0 + enable + enable + + + diff --git a/vs4win/Chapter01/AboutMyEnvironment/Program.cs b/vs4win/Chapter01/AboutMyEnvironment/Program.cs new file mode 100644 index 0000000..8346810 --- /dev/null +++ b/vs4win/Chapter01/AboutMyEnvironment/Program.cs @@ -0,0 +1,3 @@ +// See https://aka.ms/new-console-template for more information +Console.WriteLine(Environment.CurrentDirectory); +Console.WriteLine(Environment.OSVersion.VersionString); diff --git a/vs4win/Chapter01/Chapter01.sln b/vs4win/Chapter01/Chapter01.sln new file mode 100644 index 0000000..165fe90 --- /dev/null +++ b/vs4win/Chapter01/Chapter01.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.32112.339 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloCS", "HelloCS\HelloCS.csproj", "{331F2841-C82A-4ED2-A844-1F720766ADB3}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AboutMyEnvironment", "AboutMyEnvironment\AboutMyEnvironment.csproj", "{660BBB7B-4200-4114-ABA3-3A2A6289BEB1}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {331F2841-C82A-4ED2-A844-1F720766ADB3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {331F2841-C82A-4ED2-A844-1F720766ADB3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {331F2841-C82A-4ED2-A844-1F720766ADB3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {331F2841-C82A-4ED2-A844-1F720766ADB3}.Release|Any CPU.Build.0 = Release|Any CPU + {660BBB7B-4200-4114-ABA3-3A2A6289BEB1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {660BBB7B-4200-4114-ABA3-3A2A6289BEB1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {660BBB7B-4200-4114-ABA3-3A2A6289BEB1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {660BBB7B-4200-4114-ABA3-3A2A6289BEB1}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {DDC4883B-D245-46C2-94A6-C658235D7297} + EndGlobalSection +EndGlobal diff --git a/vs4win/Chapter01/HelloCS/HelloCS.csproj b/vs4win/Chapter01/HelloCS/HelloCS.csproj new file mode 100644 index 0000000..74abf5c --- /dev/null +++ b/vs4win/Chapter01/HelloCS/HelloCS.csproj @@ -0,0 +1,10 @@ + + + + Exe + net6.0 + enable + enable + + + diff --git a/vs4win/Chapter01/HelloCS/Program.cs b/vs4win/Chapter01/HelloCS/Program.cs new file mode 100644 index 0000000..40856f1 --- /dev/null +++ b/vs4win/Chapter01/HelloCS/Program.cs @@ -0,0 +1,4 @@ +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, C#!"); +throw new Exception(); // so we can see the hidden class and method name +int z; \ No newline at end of file diff --git a/vs4win/Chapter 2/ch02.txt b/vs4win/Chapter02/ch02.txt similarity index 100% rename from vs4win/Chapter 2/ch02.txt rename to vs4win/Chapter02/ch02.txt diff --git a/vscode/Chapter 1/ch01.txt b/vscode/Chapter 1/ch01.txt deleted file mode 100644 index e69de29..0000000 diff --git a/vscode/Chapter 2/ch02.txt b/vscode/Chapter 2/ch02.txt deleted file mode 100644 index e69de29..0000000 diff --git a/vscode/Chapter01-vscode/AboutMyEnvironment/AboutMyEnvironment.csproj b/vscode/Chapter01-vscode/AboutMyEnvironment/AboutMyEnvironment.csproj new file mode 100644 index 0000000..74abf5c --- /dev/null +++ b/vscode/Chapter01-vscode/AboutMyEnvironment/AboutMyEnvironment.csproj @@ -0,0 +1,10 @@ + + + + Exe + net6.0 + enable + enable + + + diff --git a/vscode/Chapter01-vscode/AboutMyEnvironment/Program.cs b/vscode/Chapter01-vscode/AboutMyEnvironment/Program.cs new file mode 100644 index 0000000..8346810 --- /dev/null +++ b/vscode/Chapter01-vscode/AboutMyEnvironment/Program.cs @@ -0,0 +1,3 @@ +// See https://aka.ms/new-console-template for more information +Console.WriteLine(Environment.CurrentDirectory); +Console.WriteLine(Environment.OSVersion.VersionString); diff --git a/vscode/Chapter01-vscode/Chapter01.code-workspace b/vscode/Chapter01-vscode/Chapter01.code-workspace new file mode 100644 index 0000000..deb8b0e --- /dev/null +++ b/vscode/Chapter01-vscode/Chapter01.code-workspace @@ -0,0 +1,10 @@ +{ + "folders": [ + { + "path": "HelloCS" + }, + { + "path": "AboutMyEnvironment" + } + ] +} \ No newline at end of file diff --git a/vscode/Chapter01-vscode/Chapter01.dib b/vscode/Chapter01-vscode/Chapter01.dib new file mode 100644 index 0000000..414494d --- /dev/null +++ b/vscode/Chapter01-vscode/Chapter01.dib @@ -0,0 +1,20 @@ +#!markdown + +# Chapter 1 - Hello, C#! Welcome, .NET! +Mixing *rich* **text** and code is cool! + +#!csharp + +#!about + +#!csharp + +Console.WriteLine("Hello, .NET Interactive!") + +#!csharp + +int number = 8; + +#!csharp + +Console.WriteLine(number); diff --git a/vscode/Chapter01-vscode/HelloCS/HelloCS.csproj b/vscode/Chapter01-vscode/HelloCS/HelloCS.csproj new file mode 100644 index 0000000..74abf5c --- /dev/null +++ b/vscode/Chapter01-vscode/HelloCS/HelloCS.csproj @@ -0,0 +1,10 @@ + + + + Exe + net6.0 + enable + enable + + + diff --git a/vscode/Chapter01-vscode/HelloCS/Program.cs b/vscode/Chapter01-vscode/HelloCS/Program.cs new file mode 100644 index 0000000..735033f --- /dev/null +++ b/vscode/Chapter01-vscode/HelloCS/Program.cs @@ -0,0 +1,3 @@ +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, C#!"); +throw new Exception(); \ No newline at end of file