Initial Commit

This commit is contained in:
Andre Fuhry 2022-09-26 16:37:42 +02:00
parent fd1cab2aca
commit 1932b125b9
32 changed files with 357 additions and 0 deletions

18
Model/Point.cs Normal file
View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Spg.BasicDemo.Model
{
internal class Point
{
public int x { get; set; }
public int y { get; set; }
public int CalcDistance(Point otherPoint)
{
return x - otherPoint.x;
}
}
}

13
Model/SchoolClass.cs Normal file
View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Spg.BasicDemo.Model
{
internal class SchoolClass
{
public string FirstName { get; set; }
}
}

15
Model/Student.cs Normal file
View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Spg.BasicDemo.Model {
public class Student {
[Key]
public string FirstName { get; set; }
public string LastName { get; set; }
public long SozNumber { get; set; }
}
}

13
Model/StudentPart2.cs Normal file
View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Spg.BasicDemo.Model
{
public partial class StudentPart2
{
public int Id { get; set; }
}
}

27
Program.cs Normal file
View File

@ -0,0 +1,27 @@
// See https://aka.ms/new-console-template for more information
//Console.WriteLine("Hello, World!");
using Spg.BasicDemo.Model;
using System.Reflection;
string s = "Hello, world!";
Console.WriteLine(s);
Student student = new Student();
student.FirstName = "Martin";
student.LastName = "Schrutek";
student.Id = 1;
student.Id.ToString();
bool isEqual = student.Equals(new Student());
// Reflections
PropertyInfo[] properties = student.GetType().GetProperties();
foreach (PropertyInfo property in properties) {
Console.Out.WriteLine(property.Name);
}

10
Spg.BasicDemo.csproj Normal file
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,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"Spg.BasicDemo/1.0.0": {
"runtime": {
"Spg.BasicDemo.dll": {}
}
}
}
},
"libraries": {
"Spg.BasicDemo/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,9 @@
{
"runtimeOptions": {
"tfm": "net6.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
}
}
}

View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]

View File

@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Spg.BasicDemo")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Spg.BasicDemo")]
[assembly: System.Reflection.AssemblyTitleAttribute("Spg.BasicDemo")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

View File

@ -0,0 +1 @@
f6fe77efa5a00949b92fa3aa2c8ecdab42fe55fe

View File

@ -0,0 +1,10 @@
is_global = true
build_property.TargetFramework = net6.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Spg.BasicDemo
build_property.ProjectDir = C:\5BAIF\POS\Spg.BasicDemo\Spg.BasicDemo\

View File

@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;

Binary file not shown.

View File

@ -0,0 +1 @@
f859f888a51e1a4435b0c78c05e2d5e0bb4e7cbc

View File

@ -0,0 +1,15 @@
C:\5BAIF\POS\Spg.BasicDemo\Spg.BasicDemo\bin\Debug\net6.0\Spg.BasicDemo.exe
C:\5BAIF\POS\Spg.BasicDemo\Spg.BasicDemo\bin\Debug\net6.0\Spg.BasicDemo.deps.json
C:\5BAIF\POS\Spg.BasicDemo\Spg.BasicDemo\bin\Debug\net6.0\Spg.BasicDemo.runtimeconfig.json
C:\5BAIF\POS\Spg.BasicDemo\Spg.BasicDemo\bin\Debug\net6.0\Spg.BasicDemo.dll
C:\5BAIF\POS\Spg.BasicDemo\Spg.BasicDemo\bin\Debug\net6.0\Spg.BasicDemo.pdb
C:\5BAIF\POS\Spg.BasicDemo\Spg.BasicDemo\obj\Debug\net6.0\Spg.BasicDemo.csproj.AssemblyReference.cache
C:\5BAIF\POS\Spg.BasicDemo\Spg.BasicDemo\obj\Debug\net6.0\Spg.BasicDemo.GeneratedMSBuildEditorConfig.editorconfig
C:\5BAIF\POS\Spg.BasicDemo\Spg.BasicDemo\obj\Debug\net6.0\Spg.BasicDemo.AssemblyInfoInputs.cache
C:\5BAIF\POS\Spg.BasicDemo\Spg.BasicDemo\obj\Debug\net6.0\Spg.BasicDemo.AssemblyInfo.cs
C:\5BAIF\POS\Spg.BasicDemo\Spg.BasicDemo\obj\Debug\net6.0\Spg.BasicDemo.csproj.CoreCompileInputs.cache
C:\5BAIF\POS\Spg.BasicDemo\Spg.BasicDemo\obj\Debug\net6.0\Spg.BasicDemo.dll
C:\5BAIF\POS\Spg.BasicDemo\Spg.BasicDemo\obj\Debug\net6.0\refint\Spg.BasicDemo.dll
C:\5BAIF\POS\Spg.BasicDemo\Spg.BasicDemo\obj\Debug\net6.0\Spg.BasicDemo.pdb
C:\5BAIF\POS\Spg.BasicDemo\Spg.BasicDemo\obj\Debug\net6.0\Spg.BasicDemo.genruntimeconfig.cache
C:\5BAIF\POS\Spg.BasicDemo\Spg.BasicDemo\obj\Debug\net6.0\ref\Spg.BasicDemo.dll

Binary file not shown.

View File

@ -0,0 +1 @@
d35d0babfb8e51e1c8bae1ee8e3dad801a2da1c4

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,67 @@
{
"format": 1,
"restore": {
"C:\\5BAIF\\POS\\Spg.BasicDemo\\Spg.BasicDemo\\Spg.BasicDemo.csproj": {}
},
"projects": {
"C:\\5BAIF\\POS\\Spg.BasicDemo\\Spg.BasicDemo\\Spg.BasicDemo.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\5BAIF\\POS\\Spg.BasicDemo\\Spg.BasicDemo\\Spg.BasicDemo.csproj",
"projectName": "Spg.BasicDemo",
"projectPath": "C:\\5BAIF\\POS\\Spg.BasicDemo\\Spg.BasicDemo\\Spg.BasicDemo.csproj",
"packagesPath": "C:\\Users\\Andre\\.nuget\\packages\\",
"outputPath": "C:\\5BAIF\\POS\\Spg.BasicDemo\\Spg.BasicDemo\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\Andre\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.400\\RuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Andre\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.3.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\Andre\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

73
obj/project.assets.json Normal file
View File

@ -0,0 +1,73 @@
{
"version": 3,
"targets": {
"net6.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net6.0": []
},
"packageFolders": {
"C:\\Users\\Andre\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\5BAIF\\POS\\Spg.BasicDemo\\Spg.BasicDemo\\Spg.BasicDemo.csproj",
"projectName": "Spg.BasicDemo",
"projectPath": "C:\\5BAIF\\POS\\Spg.BasicDemo\\Spg.BasicDemo\\Spg.BasicDemo.csproj",
"packagesPath": "C:\\Users\\Andre\\.nuget\\packages\\",
"outputPath": "C:\\5BAIF\\POS\\Spg.BasicDemo\\Spg.BasicDemo\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\Andre\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.400\\RuntimeIdentifierGraph.json"
}
}
}
}

8
obj/project.nuget.cache Normal file
View File

@ -0,0 +1,8 @@
{
"version": 2,
"dgSpecHash": "VE6zsxQE4evfVM+qlK1zOyhq6Cg66kyXJtTzg60493e+PpaSQXCMthgPYWHdcsflDuO2yyytaydV9gQ/pGk+fw==",
"success": true,
"projectFilePath": "C:\\5BAIF\\POS\\Spg.BasicDemo\\Spg.BasicDemo\\Spg.BasicDemo.csproj",
"expectedPackageFiles": [],
"logs": []
}