Verzeichnisstruktur geändert

This commit is contained in:
HuskyTeufel
2021-08-05 09:18:07 +02:00
parent 4d26bb007e
commit e041283a39
7 changed files with 47310 additions and 4 deletions

2
.vscode/launch.json vendored
View File

@@ -5,7 +5,7 @@
"name": ".NET Core Launch (console)", "name": ".NET Core Launch (console)",
"type": "coreclr", "type": "coreclr",
"request": "launch", "request": "launch",
"preLaunchTask": "build", "preLaunchTask": "buildprogramm",
"program": "${workspaceFolder}/XMLProgramm/bin/Debug/net5.0/XMLProgramm.dll", "program": "${workspaceFolder}/XMLProgramm/bin/Debug/net5.0/XMLProgramm.dll",
"args": [], "args": [],
"cwd": "${workspaceFolder}", "cwd": "${workspaceFolder}",

12
.vscode/tasks.json vendored
View File

@@ -1,6 +1,18 @@
{ {
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{
"label": "buildprogramm",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/XMLProgramm/XMLProgramm.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{ {
"label": "build", "label": "build",
"command": "dotnet", "command": "dotnet",

View File

@@ -8,7 +8,7 @@ using System.Xml;
namespace XMLParser namespace XMLParser
{ {
public class XMLParser public class XMLParse
{ {
private List<AbwassertechnischeAnlage> stammdaten = null; private List<AbwassertechnischeAnlage> stammdaten = null;
private List<InspizierteAbwassertechnischeAnlage> inspektionsdaten = null; private List<InspizierteAbwassertechnischeAnlage> inspektionsdaten = null;
@@ -19,7 +19,7 @@ namespace XMLParser
public List<KanalObjekt> KanalObjekte { get => kanalObjekte; private set => kanalObjekte = value; } public List<KanalObjekt> KanalObjekte { get => kanalObjekte; private set => kanalObjekte = value; }
public XMLParser(string xmlfile) public XMLParse(string xmlfile)
{ {
KanalObjekte = new List<KanalObjekt>(); KanalObjekte = new List<KanalObjekt>();
stammdaten = new List<AbwassertechnischeAnlage>(); stammdaten = new List<AbwassertechnischeAnlage>();

View File

@@ -11,7 +11,7 @@ namespace XMLParserTest
[TestMethod] [TestMethod]
public void TestMethod1() public void TestMethod1()
{ {
XMLParser.XMLParser xml = new XMLParser.XMLParser("input.xml"); XMLParser.XMLParse xml = new XMLParser.XMLParse("input.xml");
IEnumerable<string> datumsDistinct = xml.KanalObjekte.Select(x => x.Inspektionsdaten.OptischeInspektion.Inspektionsdatum).Distinct(); IEnumerable<string> datumsDistinct = xml.KanalObjekte.Select(x => x.Inspektionsdaten.OptischeInspektion.Inspektionsdatum).Distinct();
foreach(string aktuellDatum in datumsDistinct) { foreach(string aktuellDatum in datumsDistinct) {
var m = xml.KanalObjekte.FindAll(x => x.Inspektionsdaten.OptischeInspektion.Inspektionsdatum.Equals(aktuellDatum)); var m = xml.KanalObjekte.FindAll(x => x.Inspektionsdaten.OptischeInspektion.Inspektionsdatum.Equals(aktuellDatum));

View File

@@ -1,4 +1,5 @@
using System; using System;
using XMLParser;
namespace XMLProgramm namespace XMLProgramm
{ {
@@ -7,6 +8,7 @@ namespace XMLProgramm
static void Main(string[] args) static void Main(string[] args)
{ {
Console.WriteLine("Hello World!"); Console.WriteLine("Hello World!");
XMLParse ser = new XMLParse("input.xml");
} }
} }
} }

View File

@@ -1,5 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<ProjectReference Include="..\XMLParser\XMLParser.csproj" />
</ItemGroup>
<ItemGroup>
<Content Update="input.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework> <TargetFramework>net5.0</TargetFramework>

47282
input.xml Normal file

File diff suppressed because it is too large Load Diff