Initial commit

This commit is contained in:
Mark J Price 2022-02-10 09:49:38 +00:00
parent b05b747e9f
commit d5bde3c775
15 changed files with 114 additions and 0 deletions

View file

@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View file

@ -0,0 +1,3 @@
// See https://aka.ms/new-console-template for more information
Console.WriteLine(Environment.CurrentDirectory);
Console.WriteLine(Environment.OSVersion.VersionString);

View file

@ -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

View file

@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View file

@ -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;

View file

@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View file

@ -0,0 +1,3 @@
// See https://aka.ms/new-console-template for more information
Console.WriteLine(Environment.CurrentDirectory);
Console.WriteLine(Environment.OSVersion.VersionString);

View file

@ -0,0 +1,10 @@
{
"folders": [
{
"path": "HelloCS"
},
{
"path": "AboutMyEnvironment"
}
]
}

View file

@ -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);

View file

@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View file

@ -0,0 +1,3 @@
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, C#!");
throw new Exception();