jetzt sollte der devcontainer dabei sein

main
David 2025-05-01 12:11:53 +02:00
parent bdff8d5165
commit cb39ba24b1
30 changed files with 379 additions and 0 deletions

View File

@ -0,0 +1,15 @@
{
"name": "C# Dev Container",
"image": "mcr.microsoft.com/dotnet/sdk:8.0",
"customizations": {
"vscode": {
"extensions": [
"ms-dotnettools.csharp",
"ms-vscode.cpptools"
]
}
},
"settings": {
"terminal.integrated.defaultProfile.linux": "bash"
}
}

26
csharp/.vscode/launch.json vendored 100644
View File

@ -0,0 +1,26 @@
{
"version": "0.2.0",
"configurations": [
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/dotnet/vscode-csharp/blob/main/debugger-launchjson.md
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/bin/Debug/net8.0/csharp.dll",
"args": [],
"cwd": "${workspaceFolder}",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach"
}
]
}

41
csharp/.vscode/tasks.json vendored 100644
View File

@ -0,0 +1,41 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/csharp.sln",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary;ForceNoAlign"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/csharp.sln",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary;ForceNoAlign"
],
"problemMatcher": "$msCompile"
},
{
"label": "watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"--project",
"${workspaceFolder}/csharp.sln"
],
"problemMatcher": "$msCompile"
}
]
}

View File

@ -0,0 +1,2 @@
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello von Ubuntu im Container!");

Binary file not shown.

View File

@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v8.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v8.0": {
"csharp/1.0.0": {
"runtime": {
"csharp.dll": {}
}
}
}
},
"libraries": {
"csharp/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,12 @@
{
"runtimeOptions": {
"tfm": "net8.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "8.0.0"
},
"configProperties": {
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}

View File

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

24
csharp/csharp.sln 100644
View File

@ -0,0 +1,24 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.2.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "csharp", "csharp.csproj", "{A939F64B-D70B-D390-265D-8771B4A7C0E5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A939F64B-D70B-D390-265D-8771B4A7C0E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A939F64B-D70B-D390-265D-8771B4A7C0E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A939F64B-D70B-D390-265D-8771B4A7C0E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A939F64B-D70B-D390-265D-8771B4A7C0E5}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {CFCEAF98-E6A1-4826-A598-EE46C6FF2A2E}
EndGlobalSection
EndGlobal

View File

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

Binary file not shown.

View File

@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// 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("csharp")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+bdff8d5165644e6bc55b5ad351ff706f78382bc0")]
[assembly: System.Reflection.AssemblyProductAttribute("csharp")]
[assembly: System.Reflection.AssemblyTitleAttribute("csharp")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

View File

@ -0,0 +1 @@
48ceed8635dc65e6623f5de011e8b228610b8f85fe2f572cbfe7103564154b61

View File

@ -0,0 +1,13 @@
is_global = true
build_property.TargetFramework = net8.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = csharp
build_property.ProjectDir = /home/werner/Desktop/Desktop/PR3/SGB/cSharp/csharp/
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =

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

View File

@ -0,0 +1,14 @@
/workspaces/cSharp/csharp/bin/Debug/net8.0/csharp
/workspaces/cSharp/csharp/bin/Debug/net8.0/csharp.deps.json
/workspaces/cSharp/csharp/bin/Debug/net8.0/csharp.runtimeconfig.json
/workspaces/cSharp/csharp/bin/Debug/net8.0/csharp.dll
/workspaces/cSharp/csharp/bin/Debug/net8.0/csharp.pdb
/workspaces/cSharp/csharp/obj/Debug/net8.0/csharp.GeneratedMSBuildEditorConfig.editorconfig
/workspaces/cSharp/csharp/obj/Debug/net8.0/csharp.AssemblyInfoInputs.cache
/workspaces/cSharp/csharp/obj/Debug/net8.0/csharp.AssemblyInfo.cs
/workspaces/cSharp/csharp/obj/Debug/net8.0/csharp.csproj.CoreCompileInputs.cache
/workspaces/cSharp/csharp/obj/Debug/net8.0/csharp.dll
/workspaces/cSharp/csharp/obj/Debug/net8.0/refint/csharp.dll
/workspaces/cSharp/csharp/obj/Debug/net8.0/csharp.pdb
/workspaces/cSharp/csharp/obj/Debug/net8.0/csharp.genruntimeconfig.cache
/workspaces/cSharp/csharp/obj/Debug/net8.0/ref/csharp.dll

Binary file not shown.

View File

@ -0,0 +1 @@
134b9499e6fe96be6b8b89db80bbaae86df4a47823b5e16fc3f024f81f4281de

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,66 @@
{
"format": 1,
"restore": {
"/home/werner/Desktop/Desktop/PR3/SGB/cSharp/csharp/csharp.csproj": {}
},
"projects": {
"/home/werner/Desktop/Desktop/PR3/SGB/cSharp/csharp/csharp.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/werner/Desktop/Desktop/PR3/SGB/cSharp/csharp/csharp.csproj",
"projectName": "csharp",
"projectPath": "/home/werner/Desktop/Desktop/PR3/SGB/cSharp/csharp/csharp.csproj",
"packagesPath": "/home/werner/.nuget/packages/",
"outputPath": "/home/werner/Desktop/Desktop/PR3/SGB/cSharp/csharp/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/werner/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net8.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/8.0.408/PortableRuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@ -0,0 +1,15 @@
<?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)' == '' ">/home/werner/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/werner/.nuget/packages/</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.11.1</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="/home/werner/.nuget/packages/" />
</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" />

View File

@ -0,0 +1,71 @@
{
"version": 3,
"targets": {
"net8.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net8.0": []
},
"packageFolders": {
"/home/werner/.nuget/packages/": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/werner/Desktop/Desktop/PR3/SGB/cSharp/csharp/csharp.csproj",
"projectName": "csharp",
"projectPath": "/home/werner/Desktop/Desktop/PR3/SGB/cSharp/csharp/csharp.csproj",
"packagesPath": "/home/werner/.nuget/packages/",
"outputPath": "/home/werner/Desktop/Desktop/PR3/SGB/cSharp/csharp/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/werner/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net8.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/8.0.408/PortableRuntimeIdentifierGraph.json"
}
}
}
}

View File

@ -0,0 +1,8 @@
{
"version": 2,
"dgSpecHash": "x2A9qk0ZSLY=",
"success": true,
"projectFilePath": "/home/werner/Desktop/Desktop/PR3/SGB/cSharp/csharp/csharp.csproj",
"expectedPackageFiles": [],
"logs": []
}