File tree 16 files changed +49
-48
lines changed
16 files changed +49
-48
lines changed Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp3.1 </TargetFramework >
4
+ <TargetFramework >net5.0 </TargetFramework >
5
5
<DockerComposeProjectPath >..\..\..\docker-compose.dcproj</DockerComposeProjectPath >
6
6
<DockerDefaultTargetOS >Linux</DockerDefaultTargetOS >
7
7
<DockerfileContext >..\..\..</DockerfileContext >
8
8
</PropertyGroup >
9
9
10
10
<ItemGroup >
11
11
<PackageReference Include =" Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version =" 1.10.8" />
12
- <PackageReference Include =" Ocelot" Version =" 15 .0.6 " />
12
+ <PackageReference Include =" Ocelot" Version =" 16 .0.1 " />
13
13
</ItemGroup >
14
14
15
15
</Project >
Original file line number Diff line number Diff line change 1
1
# See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
2
2
3
- FROM mcr.microsoft.com/dotnet/core/ aspnet:3.1 -buster-slim AS base
3
+ FROM mcr.microsoft.com/dotnet/aspnet:5.0 -buster-slim AS base
4
4
WORKDIR /app
5
5
EXPOSE 80
6
6
7
- FROM mcr.microsoft.com/dotnet/core/ sdk:3.1 -buster AS build
7
+ FROM mcr.microsoft.com/dotnet/sdk:5.0 -buster-slim AS build
8
8
WORKDIR /src
9
9
COPY ["src/ApiGateway/APIGateway/APIGateway.csproj" , "src/ApiGateway/APIGateway/" ]
10
10
RUN dotnet restore "src/ApiGateway/APIGateway/APIGateway.csproj"
@@ -18,4 +18,4 @@ RUN dotnet publish "APIGateway.csproj" -c Release -o /app/publish
18
18
FROM base AS final
19
19
WORKDIR /app
20
20
COPY --from=publish /app/publish .
21
- ENTRYPOINT ["dotnet" , "APIGateway.dll" ]
21
+ ENTRYPOINT ["dotnet" , "APIGateway.dll" ]
Original file line number Diff line number Diff line change 1
1
{
2
- "ReRoutes " : [
2
+ "Routes " : [
3
3
//Catalog API
4
4
{
5
5
"DownstreamPathTemplate" : " /api/v1/Catalog" ,
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp3.1 </TargetFramework >
4
+ <TargetFramework >net5.0 </TargetFramework >
5
5
<DockerComposeProjectPath >..\..\..\docker-compose.dcproj</DockerComposeProjectPath >
6
6
<DockerDefaultTargetOS >Linux</DockerDefaultTargetOS >
7
7
<DockerfileContext >..\..\..</DockerfileContext >
8
8
</PropertyGroup >
9
9
10
10
<ItemGroup >
11
- <PackageReference Include =" AutoMapper.Extensions.Microsoft.DependencyInjection" Version =" 7.0 .0" />
11
+ <PackageReference Include =" AutoMapper.Extensions.Microsoft.DependencyInjection" Version =" 8.1 .0" />
12
12
<PackageReference Include =" Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version =" 1.10.8" />
13
13
<PackageReference Include =" Newtonsoft.Json" Version =" 12.0.3" />
14
- <PackageReference Include =" StackExchange.Redis" Version =" 2.1.30 " />
15
- <PackageReference Include =" Swashbuckle.AspNetCore" Version =" 5.4.1 " />
14
+ <PackageReference Include =" StackExchange.Redis" Version =" 2.2.4 " />
15
+ <PackageReference Include =" Swashbuckle.AspNetCore" Version =" 5.6.3 " />
16
16
</ItemGroup >
17
17
18
18
<ItemGroup >
Original file line number Diff line number Diff line change 1
1
# See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
2
2
3
- FROM mcr.microsoft.com/dotnet/core/ aspnet:3.1 -buster-slim AS base
3
+ FROM mcr.microsoft.com/dotnet/aspnet:5.0 -buster-slim AS base
4
4
WORKDIR /app
5
5
EXPOSE 80
6
6
7
- FROM mcr.microsoft.com/dotnet/core/ sdk:3.1 -buster AS build
7
+ FROM mcr.microsoft.com/dotnet/sdk:5.0 -buster-slim AS build
8
8
WORKDIR /src
9
9
COPY ["src/Basket/Basket.API/Basket.API.csproj" , "src/Basket/Basket.API/" ]
10
+ COPY ["src/Common/EventBusRabbitMQ/EventBusRabbitMQ.csproj" , "src/Common/EventBusRabbitMQ/" ]
10
11
RUN dotnet restore "src/Basket/Basket.API/Basket.API.csproj"
11
12
COPY . .
12
13
WORKDIR "/src/src/Basket/Basket.API"
@@ -18,4 +19,4 @@ RUN dotnet publish "Basket.API.csproj" -c Release -o /app/publish
18
19
FROM base AS final
19
20
WORKDIR /app
20
21
COPY --from=publish /app/publish .
21
- ENTRYPOINT ["dotnet" , "Basket.API.dll" ]
22
+ ENTRYPOINT ["dotnet" , "Basket.API.dll" ]
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp3.1 </TargetFramework >
4
+ <TargetFramework >net5.0 </TargetFramework >
5
5
<DockerComposeProjectPath >..\..\..\docker-compose.dcproj</DockerComposeProjectPath >
6
6
<DockerDefaultTargetOS >Linux</DockerDefaultTargetOS >
7
7
<DockerfileContext >..\..\..</DockerfileContext >
8
8
</PropertyGroup >
9
9
10
10
<ItemGroup >
11
11
<PackageReference Include =" Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version =" 1.10.8" />
12
- <PackageReference Include =" MongoDB.Driver" Version =" 2.10 .4" />
13
- <PackageReference Include =" Swashbuckle.AspNetCore" Version =" 5.4.1 " />
12
+ <PackageReference Include =" MongoDB.Driver" Version =" 2.11 .4" />
13
+ <PackageReference Include =" Swashbuckle.AspNetCore" Version =" 5.6.3 " />
14
14
</ItemGroup >
15
15
16
16
Original file line number Diff line number Diff line change 1
1
# See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
2
2
3
- FROM mcr.microsoft.com/dotnet/core/ aspnet:3.1 -buster-slim AS base
3
+ FROM mcr.microsoft.com/dotnet/aspnet:5.0 -buster-slim AS base
4
4
WORKDIR /app
5
5
EXPOSE 80
6
6
7
- FROM mcr.microsoft.com/dotnet/core/ sdk:3.1 -buster AS build
7
+ FROM mcr.microsoft.com/dotnet/sdk:5.0 -buster-slim AS build
8
8
WORKDIR /src
9
9
COPY ["src/Catalog/Catalog.API/Catalog.API.csproj" , "src/Catalog/Catalog.API/" ]
10
10
RUN dotnet restore "src/Catalog/Catalog.API/Catalog.API.csproj"
@@ -18,4 +18,4 @@ RUN dotnet publish "Catalog.API.csproj" -c Release -o /app/publish
18
18
FROM base AS final
19
19
WORKDIR /app
20
20
COPY --from=publish /app/publish .
21
- ENTRYPOINT ["dotnet" , "Catalog.API.dll" ]
21
+ ENTRYPOINT ["dotnet" , "Catalog.API.dll" ]
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp3.1 </TargetFramework >
4
+ <TargetFramework >net5.0 </TargetFramework >
5
5
</PropertyGroup >
6
6
7
7
<ItemGroup >
8
8
<PackageReference Include =" Newtonsoft.Json" Version =" 12.0.3" />
9
- <PackageReference Include =" RabbitMQ.Client" Version =" 6.0.0 " />
9
+ <PackageReference Include =" RabbitMQ.Client" Version =" 6.2.1 " />
10
10
</ItemGroup >
11
11
12
12
</Project >
Original file line number Diff line number Diff line change 1
1
# See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
2
2
3
- FROM mcr.microsoft.com/dotnet/core/ aspnet:3.1 -buster-slim AS base
3
+ FROM mcr.microsoft.com/dotnet/aspnet:5.0 -buster-slim AS base
4
4
WORKDIR /app
5
5
EXPOSE 80
6
6
7
- FROM mcr.microsoft.com/dotnet/core/ sdk:3.1 -buster AS build
7
+ FROM mcr.microsoft.com/dotnet/sdk:5.0 -buster-slim AS build
8
8
WORKDIR /src
9
9
COPY ["src/Ordering/Ordering.API/Ordering.API.csproj" , "src/Ordering/Ordering.API/" ]
10
10
COPY ["src/Ordering/Ordering.Application/Ordering.Application.csproj" , "src/Ordering/Ordering.Application/" ]
@@ -22,4 +22,4 @@ RUN dotnet publish "Ordering.API.csproj" -c Release -o /app/publish
22
22
FROM base AS final
23
23
WORKDIR /app
24
24
COPY --from=publish /app/publish .
25
- ENTRYPOINT ["dotnet" , "Ordering.API.dll" ]
25
+ ENTRYPOINT ["dotnet" , "Ordering.API.dll" ]
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp3.1 </TargetFramework >
4
+ <TargetFramework >net5.0 </TargetFramework >
5
5
<DockerComposeProjectPath >..\..\..\docker-compose.dcproj</DockerComposeProjectPath >
6
6
<DockerDefaultTargetOS >Linux</DockerDefaultTargetOS >
7
7
<DockerfileContext >..\..\..</DockerfileContext >
8
8
</PropertyGroup >
9
9
10
10
<ItemGroup >
11
- <PackageReference Include =" AutoMapper.Extensions.Microsoft.DependencyInjection" Version =" 7.0 .0" />
12
- <PackageReference Include =" MediatR" Version =" 8 .0.1 " />
13
- <PackageReference Include =" MediatR.Extensions.Microsoft.DependencyInjection" Version =" 8 .0.0" />
14
- <PackageReference Include =" Microsoft.EntityFrameworkCore.Design" Version =" 3.1.4 " >
11
+ <PackageReference Include =" AutoMapper.Extensions.Microsoft.DependencyInjection" Version =" 8.1 .0" />
12
+ <PackageReference Include =" MediatR" Version =" 9 .0.0 " />
13
+ <PackageReference Include =" MediatR.Extensions.Microsoft.DependencyInjection" Version =" 9 .0.0" />
14
+ <PackageReference Include =" Microsoft.EntityFrameworkCore.Design" Version =" 5.0.0 " >
15
15
<PrivateAssets >all</PrivateAssets >
16
16
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
17
17
</PackageReference >
18
18
<PackageReference Include =" Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version =" 1.10.8" />
19
- <PackageReference Include =" Swashbuckle.AspNetCore" Version =" 5.4.1 " />
19
+ <PackageReference Include =" Swashbuckle.AspNetCore" Version =" 5.6.3 " />
20
20
</ItemGroup >
21
21
22
22
<ItemGroup >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp3.1 </TargetFramework >
4
+ <TargetFramework >net5.0 </TargetFramework >
5
5
</PropertyGroup >
6
6
7
7
<ItemGroup >
8
- <PackageReference Include =" AutoMapper" Version =" 9.0.0 " />
9
- <PackageReference Include =" FluentValidation" Version =" 8.6.2 " />
10
- <PackageReference Include =" MediatR" Version =" 8 .0.1 " />
8
+ <PackageReference Include =" AutoMapper" Version =" 10.1.1 " />
9
+ <PackageReference Include =" FluentValidation" Version =" 9.3.0 " />
10
+ <PackageReference Include =" MediatR" Version =" 9 .0.0 " />
11
11
</ItemGroup >
12
12
13
13
<ItemGroup >
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public ValidationBehaviour(IEnumerable<IValidator<TRequest>> validators)
19
19
20
20
public Task < TResponse > Handle ( TRequest request , CancellationToken cancellationToken , RequestHandlerDelegate < TResponse > next )
21
21
{
22
- var context = new ValidationContext ( request ) ;
22
+ var context = new ValidationContext < TRequest > ( request ) ;
23
23
var failures = _validators
24
24
. Select ( x => x . Validate ( context ) )
25
25
. SelectMany ( x => x . Errors )
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp3.1 </TargetFramework >
4
+ <TargetFramework >net5.0 </TargetFramework >
5
5
</PropertyGroup >
6
6
7
7
</Project >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp3.1 </TargetFramework >
4
+ <TargetFramework >net5.0 </TargetFramework >
5
5
</PropertyGroup >
6
6
7
7
<ItemGroup >
8
- <PackageReference Include =" Microsoft.EntityFrameworkCore" Version =" 3.1.4 " />
9
- <PackageReference Include =" Microsoft.EntityFrameworkCore.Design" Version =" 3.1.4 " >
8
+ <PackageReference Include =" Microsoft.EntityFrameworkCore" Version =" 5.0.0 " />
9
+ <PackageReference Include =" Microsoft.EntityFrameworkCore.Design" Version =" 5.0.0 " >
10
10
<PrivateAssets >all</PrivateAssets >
11
11
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
12
12
</PackageReference >
13
- <PackageReference Include =" Microsoft.EntityFrameworkCore.InMemory" Version =" 3.1.4 " />
14
- <PackageReference Include =" Microsoft.EntityFrameworkCore.SqlServer" Version =" 3.1.4 " />
15
- <PackageReference Include =" Microsoft.EntityFrameworkCore.Tools" Version =" 3.1.4 " >
13
+ <PackageReference Include =" Microsoft.EntityFrameworkCore.InMemory" Version =" 5.0.0 " />
14
+ <PackageReference Include =" Microsoft.EntityFrameworkCore.SqlServer" Version =" 5.0.0 " />
15
+ <PackageReference Include =" Microsoft.EntityFrameworkCore.Tools" Version =" 5.0.0 " >
16
16
<PrivateAssets >all</PrivateAssets >
17
17
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
18
18
</PackageReference >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp3.1 </TargetFramework >
4
+ <TargetFramework >net5.0 </TargetFramework >
5
5
<UserSecretsId >cd5124f0-00bb-4cff-b8b9-dc4e11396fa3</UserSecretsId >
6
6
<DockerDefaultTargetOS >Linux</DockerDefaultTargetOS >
7
7
<DockerComposeProjectPath >..\..\..\docker-compose.dcproj</DockerComposeProjectPath >
14
14
15
15
<ItemGroup >
16
16
<PackageReference Include =" Microsoft.AspNet.WebApi.Client" Version =" 5.2.7" />
17
- <PackageReference Include =" Microsoft.Extensions.Logging.Debug" Version =" 3.1.4 " />
17
+ <PackageReference Include =" Microsoft.Extensions.Logging.Debug" Version =" 5.0.0 " />
18
18
<PackageReference Include =" Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version =" 1.10.8" />
19
- <PackageReference Include =" Microsoft.VisualStudio.Web.CodeGeneration.Design" Version =" 3.1.2 " />
19
+ <PackageReference Include =" Microsoft.VisualStudio.Web.CodeGeneration.Design" Version =" 5.0.0 " />
20
20
</ItemGroup >
21
21
22
22
Original file line number Diff line number Diff line change 1
1
# See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
2
2
3
- FROM mcr.microsoft.com/dotnet/core/ aspnet:3.1 -buster-slim AS base
3
+ FROM mcr.microsoft.com/dotnet/aspnet:5.0 -buster-slim AS base
4
4
WORKDIR /app
5
5
EXPOSE 80
6
6
EXPOSE 443
7
7
8
- FROM mcr.microsoft.com/dotnet/core/ sdk:3.1 -buster AS build
8
+ FROM mcr.microsoft.com/dotnet/sdk:5.0 -buster-slim AS build
9
9
WORKDIR /src
10
10
COPY ["src/WebApp/AspnetRunBasics/AspnetRunBasics.csproj" , "src/WebApp/AspnetRunBasics/" ]
11
11
RUN dotnet restore "src/WebApp/AspnetRunBasics/AspnetRunBasics.csproj"
@@ -19,4 +19,4 @@ RUN dotnet publish "AspnetRunBasics.csproj" -c Release -o /app/publish
19
19
FROM base AS final
20
20
WORKDIR /app
21
21
COPY --from=publish /app/publish .
22
- ENTRYPOINT ["dotnet" , "AspnetRunBasics.dll" ]
22
+ ENTRYPOINT ["dotnet" , "AspnetRunBasics.dll" ]
You can’t perform that action at this time.
0 commit comments