New Year
This commit is contained in:
parent
905305ef0d
commit
c00065c1bc
13 changed files with 176 additions and 7 deletions
26
Emne 3/StudentAdmin/.vscode/launch.json
vendored
Normal file
26
Emne 3/StudentAdmin/.vscode/launch.json
vendored
Normal 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}/StudentAdmin/bin/Debug/net8.0/StudentAdmin.dll",
|
||||
"args": [],
|
||||
"cwd": "${workspaceFolder}/StudentAdmin",
|
||||
// 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
Emne 3/StudentAdmin/.vscode/tasks.json
vendored
Normal file
41
Emne 3/StudentAdmin/.vscode/tasks.json
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "build",
|
||||
"command": "dotnet",
|
||||
"type": "process",
|
||||
"args": [
|
||||
"build",
|
||||
"${workspaceFolder}/StudentAdmin.sln",
|
||||
"/property:GenerateFullPaths=true",
|
||||
"/consoleloggerparameters:NoSummary;ForceNoAlign"
|
||||
],
|
||||
"problemMatcher": "$msCompile"
|
||||
},
|
||||
{
|
||||
"label": "publish",
|
||||
"command": "dotnet",
|
||||
"type": "process",
|
||||
"args": [
|
||||
"publish",
|
||||
"${workspaceFolder}/StudentAdmin.sln",
|
||||
"/property:GenerateFullPaths=true",
|
||||
"/consoleloggerparameters:NoSummary;ForceNoAlign"
|
||||
],
|
||||
"problemMatcher": "$msCompile"
|
||||
},
|
||||
{
|
||||
"label": "watch",
|
||||
"command": "dotnet",
|
||||
"type": "process",
|
||||
"args": [
|
||||
"watch",
|
||||
"run",
|
||||
"--project",
|
||||
"${workspaceFolder}/StudentAdmin.sln"
|
||||
],
|
||||
"problemMatcher": "$msCompile"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -16,9 +16,9 @@ internal class Karakter
|
|||
public void SkrivUtInfo(Karakter karakter)
|
||||
{
|
||||
Console.WriteLine(
|
||||
$"Student: {karakter.Student}\n" +
|
||||
$"Fag: {karakter.Fag}" +
|
||||
$"Karakter: {karakter.KarakterVerdi}\n"
|
||||
);
|
||||
$"Student: {karakter.Student}\n" +
|
||||
$"Fag: {karakter.Fag}" +
|
||||
$"Karakter: {karakter.KarakterVerdi}\n"
|
||||
);
|
||||
}
|
||||
}
|
|
@ -1,3 +1 @@
|
|||
// See https://aka.ms/new-console-template for more information
|
||||
|
||||
Console.WriteLine("Hello, World!");
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue