Verzeichnisstruktur geändert
This commit is contained in:
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@@ -5,7 +5,7 @@
|
||||
"name": ".NET Core Launch (console)",
|
||||
"type": "coreclr",
|
||||
"request": "launch",
|
||||
"preLaunchTask": "build",
|
||||
"preLaunchTask": "buildprogramm",
|
||||
"program": "${workspaceFolder}/XMLProgramm/bin/Debug/net5.0/XMLProgramm.dll",
|
||||
"args": [],
|
||||
"cwd": "${workspaceFolder}",
|
||||
|
||||
12
.vscode/tasks.json
vendored
12
.vscode/tasks.json
vendored
@@ -1,6 +1,18 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "buildprogramm",
|
||||
"command": "dotnet",
|
||||
"type": "process",
|
||||
"args": [
|
||||
"build",
|
||||
"${workspaceFolder}/XMLProgramm/XMLProgramm.csproj",
|
||||
"/property:GenerateFullPaths=true",
|
||||
"/consoleloggerparameters:NoSummary"
|
||||
],
|
||||
"problemMatcher": "$msCompile"
|
||||
},
|
||||
{
|
||||
"label": "build",
|
||||
"command": "dotnet",
|
||||
|
||||
@@ -8,7 +8,7 @@ using System.Xml;
|
||||
|
||||
namespace XMLParser
|
||||
{
|
||||
public class XMLParser
|
||||
public class XMLParse
|
||||
{
|
||||
private List<AbwassertechnischeAnlage> stammdaten = null;
|
||||
private List<InspizierteAbwassertechnischeAnlage> inspektionsdaten = null;
|
||||
@@ -19,7 +19,7 @@ namespace XMLParser
|
||||
|
||||
public List<KanalObjekt> KanalObjekte { get => kanalObjekte; private set => kanalObjekte = value; }
|
||||
|
||||
public XMLParser(string xmlfile)
|
||||
public XMLParse(string xmlfile)
|
||||
{
|
||||
KanalObjekte = new List<KanalObjekt>();
|
||||
stammdaten = new List<AbwassertechnischeAnlage>();
|
||||
@@ -11,7 +11,7 @@ namespace XMLParserTest
|
||||
[TestMethod]
|
||||
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();
|
||||
foreach(string aktuellDatum in datumsDistinct) {
|
||||
var m = xml.KanalObjekte.FindAll(x => x.Inspektionsdaten.OptischeInspektion.Inspektionsdatum.Equals(aktuellDatum));
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using XMLParser;
|
||||
|
||||
namespace XMLProgramm
|
||||
{
|
||||
@@ -7,6 +8,7 @@ namespace XMLProgramm
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Hello World!");
|
||||
XMLParse ser = new XMLParse("input.xml");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\XMLParser\XMLParser.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Update="input.xml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
|
||||
Reference in New Issue
Block a user