mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2026-01-02 06:19:57 +01:00
Initial commit
This commit is contained in:
parent
b05b747e9f
commit
d5bde3c775
|
|
@ -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>
|
||||
3
vs4win/Chapter01/AboutMyEnvironment/Program.cs
Normal file
3
vs4win/Chapter01/AboutMyEnvironment/Program.cs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// See https://aka.ms/new-console-template for more information
|
||||
Console.WriteLine(Environment.CurrentDirectory);
|
||||
Console.WriteLine(Environment.OSVersion.VersionString);
|
||||
31
vs4win/Chapter01/Chapter01.sln
Normal file
31
vs4win/Chapter01/Chapter01.sln
Normal 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
|
||||
10
vs4win/Chapter01/HelloCS/HelloCS.csproj
Normal file
10
vs4win/Chapter01/HelloCS/HelloCS.csproj
Normal 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>
|
||||
4
vs4win/Chapter01/HelloCS/Program.cs
Normal file
4
vs4win/Chapter01/HelloCS/Program.cs
Normal 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;
|
||||
|
|
@ -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>
|
||||
3
vscode/Chapter01-vscode/AboutMyEnvironment/Program.cs
Normal file
3
vscode/Chapter01-vscode/AboutMyEnvironment/Program.cs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// See https://aka.ms/new-console-template for more information
|
||||
Console.WriteLine(Environment.CurrentDirectory);
|
||||
Console.WriteLine(Environment.OSVersion.VersionString);
|
||||
10
vscode/Chapter01-vscode/Chapter01.code-workspace
Normal file
10
vscode/Chapter01-vscode/Chapter01.code-workspace
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"folders": [
|
||||
{
|
||||
"path": "HelloCS"
|
||||
},
|
||||
{
|
||||
"path": "AboutMyEnvironment"
|
||||
}
|
||||
]
|
||||
}
|
||||
20
vscode/Chapter01-vscode/Chapter01.dib
Normal file
20
vscode/Chapter01-vscode/Chapter01.dib
Normal 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);
|
||||
10
vscode/Chapter01-vscode/HelloCS/HelloCS.csproj
Normal file
10
vscode/Chapter01-vscode/HelloCS/HelloCS.csproj
Normal 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>
|
||||
3
vscode/Chapter01-vscode/HelloCS/Program.cs
Normal file
3
vscode/Chapter01-vscode/HelloCS/Program.cs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// See https://aka.ms/new-console-template for more information
|
||||
Console.WriteLine("Hello, C#!");
|
||||
throw new Exception();
|
||||
Loading…
Reference in a new issue