Fehlersuche

This commit is contained in:
Naumann 2020-05-28 10:49:25 +02:00
parent 9697d3578a
commit 62f9ee905d
16 changed files with 129 additions and 10 deletions

View File

@ -6,6 +6,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.4" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="7.0.0" />
</ItemGroup>

View File

@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using BuecherwurmAPI.Data;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
@ -10,6 +11,7 @@ using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using AutoMapper;
namespace BuecherwurmAPI
{
@ -26,6 +28,8 @@ namespace BuecherwurmAPI
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddAutoMapper(AppDomain.CurrentDomain.GetAssemblies());
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.

Binary file not shown.

View File

@ -24,6 +24,7 @@
".NETCoreApp,Version=v3.1": {
"BuecherwurmAPI/1.0.0": {
"dependencies": {
"AutoMapper.Extensions.Microsoft.DependencyInjection": "7.0.0",
"Microsoft.EntityFrameworkCore.SqlServer": "3.1.4",
"Microsoft.AspNetCore.Antiforgery": "3.1.0.0",
"Microsoft.AspNetCore.Authentication.Abstractions": "3.1.0.0",
@ -293,6 +294,36 @@
"BuecherwurmAPI.dll": {}
}
},
"AutoMapper/9.0.0": {
"dependencies": {
"Microsoft.CSharp": "4.5.0",
"System.Reflection.Emit": "4.3.0"
},
"runtime": {
"lib/netstandard2.0/AutoMapper.dll": {
"assemblyVersion": "9.0.0.0",
"fileVersion": "9.0.0.0"
}
},
"compile": {
"lib/netstandard2.0/AutoMapper.dll": {}
}
},
"AutoMapper.Extensions.Microsoft.DependencyInjection/7.0.0": {
"dependencies": {
"AutoMapper": "9.0.0",
"Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.4"
},
"runtime": {
"lib/netstandard2.0/AutoMapper.Extensions.Microsoft.DependencyInjection.dll": {
"assemblyVersion": "0.0.0.0",
"fileVersion": "7.0.0.0"
}
},
"compile": {
"lib/netstandard2.0/AutoMapper.Extensions.Microsoft.DependencyInjection.dll": {}
}
},
"Microsoft.Bcl.AsyncInterfaces/1.1.1": {
"runtime": {
"lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll": {
@ -2753,6 +2784,20 @@
"serviceable": false,
"sha512": ""
},
"AutoMapper/9.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-xCqvoxT4HIrNY/xlXG9W+BA/awdrhWvMTKTK/igkGSRbhOhpl3Q8O8Gxlhzjc9JsYqE7sS6AxgyuUUvZ6R5/Bw==",
"path": "automapper/9.0.0",
"hashPath": "automapper.9.0.0.nupkg.sha512"
},
"AutoMapper.Extensions.Microsoft.DependencyInjection/7.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-szI4yeRIM7GWe9JyekW0dKYehPB0t6M+I55fPeCebN6PhS7zQZa0eG3bgOnOx+eP3caSNoE7KEJs2rk7MLsh8w==",
"path": "automapper.extensions.microsoft.dependencyinjection/7.0.0",
"hashPath": "automapper.extensions.microsoft.dependencyinjection.7.0.0.nupkg.sha512"
},
"Microsoft.Bcl.AsyncInterfaces/1.1.1": {
"type": "package",
"serviceable": true,

View File

@ -43,6 +43,10 @@
"frameworks": {
"netcoreapp3.1": {
"dependencies": {
"AutoMapper.Extensions.Microsoft.DependencyInjection": {
"target": "Package",
"version": "[7.0.0, )"
},
"Microsoft.EntityFrameworkCore.SqlServer": {
"target": "Package",
"version": "[3.1.4, )"

View File

@ -1 +1 @@
4d290d0ca17fbd21953f82fd21ecd2e0e16f437d
76f0f952fb5a762f5d130f45426b5cd8a13ece15

View File

@ -51,3 +51,5 @@ H:\Eigene Dateien\Ausbildungsmodule\BuecherwurmAPI\obj\Debug\netcoreapp3.1\stati
H:\Eigene Dateien\Ausbildungsmodule\BuecherwurmAPI\obj\Debug\netcoreapp3.1\BuecherwurmAPI.dll
H:\Eigene Dateien\Ausbildungsmodule\BuecherwurmAPI\obj\Debug\netcoreapp3.1\BuecherwurmAPI.pdb
H:\Eigene Dateien\Ausbildungsmodule\BuecherwurmAPI\obj\Debug\netcoreapp3.1\BuecherwurmAPI.genruntimeconfig.cache
H:\Eigene Dateien\Ausbildungsmodule\BuecherwurmAPI\bin\Debug\netcoreapp3.1\AutoMapper.dll
H:\Eigene Dateien\Ausbildungsmodule\BuecherwurmAPI\bin\Debug\netcoreapp3.1\AutoMapper.Extensions.Microsoft.DependencyInjection.dll

View File

@ -2,6 +2,32 @@
"version": 3,
"targets": {
".NETCoreApp,Version=v3.1": {
"AutoMapper/9.0.0": {
"type": "package",
"dependencies": {
"Microsoft.CSharp": "4.5.0",
"System.Reflection.Emit": "4.3.0"
},
"compile": {
"lib/netstandard2.0/AutoMapper.dll": {}
},
"runtime": {
"lib/netstandard2.0/AutoMapper.dll": {}
}
},
"AutoMapper.Extensions.Microsoft.DependencyInjection/7.0.0": {
"type": "package",
"dependencies": {
"AutoMapper": "9.0.0",
"Microsoft.Extensions.DependencyInjection.Abstractions": "2.0.0"
},
"compile": {
"lib/netstandard2.0/AutoMapper.Extensions.Microsoft.DependencyInjection.dll": {}
},
"runtime": {
"lib/netstandard2.0/AutoMapper.Extensions.Microsoft.DependencyInjection.dll": {}
}
},
"Microsoft.Bcl.AsyncInterfaces/1.1.1": {
"type": "package",
"compile": {
@ -596,7 +622,7 @@
"System.Threading.Tasks": "4.3.0"
},
"compile": {
"ref/netstandard1.5/_._": {}
"ref/netstandard1.5/System.IO.dll": {}
}
},
"System.IO.FileSystem/4.3.0": {
@ -733,7 +759,7 @@
"System.Runtime": "4.3.0"
},
"compile": {
"ref/netstandard1.5/_._": {}
"ref/netstandard1.5/System.Reflection.dll": {}
}
},
"System.Reflection.Emit/4.3.0": {
@ -746,7 +772,7 @@
"System.Runtime": "4.3.0"
},
"compile": {
"ref/netstandard1.1/_._": {}
"ref/netstandard1.1/System.Reflection.Emit.dll": {}
},
"runtime": {
"lib/netstandard1.3/System.Reflection.Emit.dll": {}
@ -760,7 +786,7 @@
"System.Runtime": "4.3.0"
},
"compile": {
"ref/netstandard1.0/_._": {}
"ref/netstandard1.0/System.Reflection.Emit.ILGeneration.dll": {}
},
"runtime": {
"lib/netstandard1.3/System.Reflection.Emit.ILGeneration.dll": {}
@ -801,7 +827,7 @@
"System.Runtime": "4.3.0"
},
"compile": {
"ref/netstandard1.0/_._": {}
"ref/netstandard1.0/System.Reflection.Primitives.dll": {}
}
},
"System.Reflection.TypeExtensions/4.3.0": {
@ -837,7 +863,7 @@
"Microsoft.NETCore.Targets": "1.1.0"
},
"compile": {
"ref/netstandard1.5/_._": {}
"ref/netstandard1.5/System.Runtime.dll": {}
}
},
"System.Runtime.Caching/4.5.0": {
@ -1071,7 +1097,7 @@
"System.Runtime": "4.3.0"
},
"compile": {
"ref/netstandard1.3/_._": {}
"ref/netstandard1.3/System.Text.Encoding.dll": {}
}
},
"System.Text.Encoding.CodePages/4.5.0": {
@ -1138,7 +1164,7 @@
"System.Runtime": "4.3.0"
},
"compile": {
"ref/netstandard1.3/_._": {}
"ref/netstandard1.3/System.Threading.Tasks.dll": {}
}
},
"System.Threading.Tasks.Extensions/4.3.0": {
@ -1256,6 +1282,36 @@
}
},
"libraries": {
"AutoMapper/9.0.0": {
"sha512": "xCqvoxT4HIrNY/xlXG9W+BA/awdrhWvMTKTK/igkGSRbhOhpl3Q8O8Gxlhzjc9JsYqE7sS6AxgyuUUvZ6R5/Bw==",
"type": "package",
"path": "automapper/9.0.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"automapper.9.0.0.nupkg.sha512",
"automapper.nuspec",
"lib/net461/AutoMapper.dll",
"lib/net461/AutoMapper.pdb",
"lib/net461/AutoMapper.xml",
"lib/netstandard2.0/AutoMapper.dll",
"lib/netstandard2.0/AutoMapper.pdb",
"lib/netstandard2.0/AutoMapper.xml"
]
},
"AutoMapper.Extensions.Microsoft.DependencyInjection/7.0.0": {
"sha512": "szI4yeRIM7GWe9JyekW0dKYehPB0t6M+I55fPeCebN6PhS7zQZa0eG3bgOnOx+eP3caSNoE7KEJs2rk7MLsh8w==",
"type": "package",
"path": "automapper.extensions.microsoft.dependencyinjection/7.0.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"automapper.extensions.microsoft.dependencyinjection.7.0.0.nupkg.sha512",
"automapper.extensions.microsoft.dependencyinjection.nuspec",
"lib/netstandard2.0/AutoMapper.Extensions.Microsoft.DependencyInjection.dll",
"lib/netstandard2.0/AutoMapper.Extensions.Microsoft.DependencyInjection.pdb"
]
},
"Microsoft.Bcl.AsyncInterfaces/1.1.1": {
"sha512": "yuvf07qFWFqtK3P/MRkEKLhn5r2UbSpVueRziSqj0yJQIKFwG1pq9mOayK3zE5qZCTs0CbrwL9M6R8VwqyGy2w==",
"type": "package",
@ -4880,6 +4936,7 @@
},
"projectFileDependencyGroups": {
".NETCoreApp,Version=v3.1": [
"AutoMapper.Extensions.Microsoft.DependencyInjection >= 7.0.0",
"Microsoft.EntityFrameworkCore.SqlServer >= 3.1.4"
]
},
@ -4927,6 +4984,10 @@
"frameworks": {
"netcoreapp3.1": {
"dependencies": {
"AutoMapper.Extensions.Microsoft.DependencyInjection": {
"target": "Package",
"version": "[7.0.0, )"
},
"Microsoft.EntityFrameworkCore.SqlServer": {
"target": "Package",
"version": "[3.1.4, )"

View File

@ -1,9 +1,11 @@
{
"version": 2,
"dgSpecHash": "0Hc6ftAuBi17RXVX7ZCzhfrIVPnCeLZL+gos89KUdY02RWU6H8xQxXe7IFtY+gXiaNtDfsTOeT9vDEUrzI2ewA==",
"dgSpecHash": "eY1VgpjSasHq3sEyVccFbGAhfJ9DyWXhEbCeNyhmUNb8I9xyjZXy2n6zivYLZ1W6WN/1lnjZS9w1uQAiFuZDLQ==",
"success": true,
"projectFilePath": "H:\\Eigene Dateien\\Ausbildungsmodule\\BuecherwurmAPI\\BuecherwurmAPI.csproj",
"expectedPackageFiles": [
"C:\\Users\\naumanfe\\.nuget\\packages\\automapper\\9.0.0\\automapper.9.0.0.nupkg.sha512",
"C:\\Users\\naumanfe\\.nuget\\packages\\automapper.extensions.microsoft.dependencyinjection\\7.0.0\\automapper.extensions.microsoft.dependencyinjection.7.0.0.nupkg.sha512",
"C:\\Users\\naumanfe\\.nuget\\packages\\microsoft.bcl.asyncinterfaces\\1.1.1\\microsoft.bcl.asyncinterfaces.1.1.1.nupkg.sha512",
"C:\\Users\\naumanfe\\.nuget\\packages\\microsoft.bcl.hashcode\\1.1.0\\microsoft.bcl.hashcode.1.1.0.nupkg.sha512",
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\microsoft.csharp\\4.5.0\\microsoft.csharp.4.5.0.nupkg.sha512",