Console programm hinzugefügt
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -3,3 +3,5 @@
|
||||
/XMLParserTest/bin/Debug/*
|
||||
/XMLParserTest/obj/Debug/*
|
||||
/XMLParserTest/obj/*
|
||||
/XMLProgramm/bin/*
|
||||
/XMLProgramm/obj/*
|
||||
|
||||
13
.vscode/launch.json
vendored
13
.vscode/launch.json
vendored
@@ -1,11 +1,22 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": ".NET Core Launch (console)",
|
||||
"type": "coreclr",
|
||||
"request": "launch",
|
||||
"preLaunchTask": "build",
|
||||
"program": "${workspaceFolder}/XMLProgramm/bin/Debug/net5.0/XMLProgramm.dll",
|
||||
"args": [],
|
||||
"cwd": "${workspaceFolder}",
|
||||
"stopAtEntry": false,
|
||||
"console": "internalConsole"
|
||||
},
|
||||
{
|
||||
// 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/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
|
||||
"name": ".NET Core Launch (console)",
|
||||
"name": ".NET Core Launch TEST (console)",
|
||||
"type": "coreclr",
|
||||
"request": "launch",
|
||||
"preLaunchTask": "build",
|
||||
|
||||
@@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XMLParser", "XMLParser\XMLP
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XMLParserTest", "XMLParserTest\XMLParserTest.csproj", "{089D18AE-F5F0-4371-BC0A-AEF00FBBFB55}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XMLProgramm", "XMLProgramm\XMLProgramm.csproj", "{641D9B83-D358-4015-9873-E5787DFC70D1}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@@ -44,5 +46,17 @@ Global
|
||||
{089D18AE-F5F0-4371-BC0A-AEF00FBBFB55}.Release|x64.Build.0 = Release|Any CPU
|
||||
{089D18AE-F5F0-4371-BC0A-AEF00FBBFB55}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{089D18AE-F5F0-4371-BC0A-AEF00FBBFB55}.Release|x86.Build.0 = Release|Any CPU
|
||||
{641D9B83-D358-4015-9873-E5787DFC70D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{641D9B83-D358-4015-9873-E5787DFC70D1}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{641D9B83-D358-4015-9873-E5787DFC70D1}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{641D9B83-D358-4015-9873-E5787DFC70D1}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{641D9B83-D358-4015-9873-E5787DFC70D1}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{641D9B83-D358-4015-9873-E5787DFC70D1}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{641D9B83-D358-4015-9873-E5787DFC70D1}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{641D9B83-D358-4015-9873-E5787DFC70D1}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{641D9B83-D358-4015-9873-E5787DFC70D1}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{641D9B83-D358-4015-9873-E5787DFC70D1}.Release|x64.Build.0 = Release|Any CPU
|
||||
{641D9B83-D358-4015-9873-E5787DFC70D1}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{641D9B83-D358-4015-9873-E5787DFC70D1}.Release|x86.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Diagnostics;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
@@ -11,9 +12,9 @@ namespace XMLParserTest
|
||||
public void TestMethod1()
|
||||
{
|
||||
XMLParser.XMLParser xml = new XMLParser.XMLParser("input.xml");
|
||||
var d = xml.KanalObjekte.Select(x => x.Inspektionsdaten.OptischeInspektion.Inspektionsdatum).Distinct();
|
||||
foreach(var s in d) {
|
||||
var m = xml.KanalObjekte.FindAll(x => x.Inspektionsdaten.OptischeInspektion.Inspektionsdatum.Equals(s));
|
||||
IEnumerable<string> datumsDistinct = xml.KanalObjekte.Select(x => x.Inspektionsdaten.OptischeInspektion.Inspektionsdatum).Distinct();
|
||||
foreach(string aktuellDatum in datumsDistinct) {
|
||||
var m = xml.KanalObjekte.FindAll(x => x.Inspektionsdaten.OptischeInspektion.Inspektionsdatum.Equals(aktuellDatum));
|
||||
Debugger.Break();
|
||||
}
|
||||
}
|
||||
|
||||
12
XMLProgramm/Program.cs
Normal file
12
XMLProgramm/Program.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
|
||||
namespace XMLProgramm
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Hello World!");
|
||||
}
|
||||
}
|
||||
}
|
||||
8
XMLProgramm/XMLProgramm.csproj
Normal file
8
XMLProgramm/XMLProgramm.csproj
Normal file
@@ -0,0 +1,8 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user