Commit 8a4b53a 1 parent 5886d6d commit 8a4b53a Copy full SHA for 8a4b53a
File tree 11 files changed +82
-44
lines changed
BaGet.Tools.AzureSearchImporter
11 files changed +82
-44
lines changed Original file line number Diff line number Diff line change 18
18
pool :
19
19
vmImage : vs2017-win2016
20
20
steps :
21
+ - task : DotNetCoreInstaller@0
22
+ displayName : ' Use .NET Core SDK 2.2.100'
23
+ inputs :
24
+ version : 2.2.100
25
+
21
26
- task : DotNetCoreCLI@2
22
27
displayName : Install versioning tool
23
28
inputs :
Original file line number Diff line number Diff line change 1
- FROM microsoft/dotnet:2.1 -aspnetcore-runtime AS base
1
+ FROM microsoft/dotnet:2.2 -aspnetcore-runtime AS base
2
2
WORKDIR /app
3
3
EXPOSE 80
4
4
5
- FROM microsoft/dotnet:2.1 -sdk AS build
5
+ FROM microsoft/dotnet:2.2 -sdk AS build
6
6
WORKDIR /src
7
7
COPY /src .
8
8
RUN dotnet restore BaGet
Original file line number Diff line number Diff line change 9
9
<ItemGroup >
10
10
<PackageReference Include =" Microsoft.Azure.Search" Version =" 5.0.1" />
11
11
<PackageReference Include =" Microsoft.Azure.Storage.Blob" Version =" 9.4.1" />
12
- <PackageReference Include =" Microsoft.Extensions.Options.ConfigurationExtensions" Version =" 2.1.1 " />
12
+ <PackageReference Include =" Microsoft.Extensions.Options.ConfigurationExtensions" Version =" 2.2.0 " />
13
13
</ItemGroup >
14
14
15
15
<ItemGroup >
Original file line number Diff line number Diff line change 7
7
</PropertyGroup >
8
8
9
9
<ItemGroup >
10
- <PackageReference Include =" Microsoft.EntityFrameworkCore.Relational" Version =" 2.1.1 " />
11
- <PackageReference Include =" Microsoft.Extensions.Configuration.Abstractions" Version =" 2.1.1 " />
10
+ <PackageReference Include =" Microsoft.EntityFrameworkCore.Relational" Version =" 2.2.0 " />
11
+ <PackageReference Include =" Microsoft.Extensions.Configuration.Abstractions" Version =" 2.2.0 " />
12
12
<PackageReference Include =" NuGet.Packaging" Version =" 4.8.0" />
13
13
<PackageReference Include =" System.Reflection.Metadata" Version =" 1.6.0" />
14
14
</ItemGroup >
Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<OutputType >Exe</OutputType >
5
- <TargetFramework >netcoreapp2.1 </TargetFramework >
5
+ <TargetFramework >netcoreapp2.2 </TargetFramework >
6
6
7
7
<IsPackable >false</IsPackable >
8
8
</PropertyGroup >
16
16
</ItemGroup >
17
17
18
18
<ItemGroup >
19
- <PackageReference Include =" Microsoft.EntityFrameworkCore.Design" Version =" 2.1.1 " />
20
- <PackageReference Include =" Microsoft.Extensions.Configuration.FileExtensions" Version =" 2.1.1 " />
21
- <PackageReference Include =" Microsoft.Extensions.Configuration.Json" Version =" 2.1.1 " />
22
- <PackageReference Include =" Microsoft.Extensions.Logging.Console" Version =" 2.1.1 " />
19
+ <PackageReference Include =" Microsoft.EntityFrameworkCore.Design" Version =" 2.2.0 " />
20
+ <PackageReference Include =" Microsoft.Extensions.Configuration.FileExtensions" Version =" 2.2.0 " />
21
+ <PackageReference Include =" Microsoft.Extensions.Configuration.Json" Version =" 2.2.0 " />
22
+ <PackageReference Include =" Microsoft.Extensions.Logging.Console" Version =" 2.2.0 " />
23
23
<PackageReference Include =" morelinq" Version =" 3.0.0" />
24
24
</ItemGroup >
25
25
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 >netcoreapp2.1 </TargetFramework >
4
+ <TargetFramework >netcoreapp2.2 </TargetFramework >
5
5
6
6
<SpaRoot >..\BaGet.UI\</SpaRoot >
7
7
<DefaultItemExcludes >$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes >
8
8
</PropertyGroup >
9
9
10
+ <ItemGroup >
11
+ <PackageReference Include =" Microsoft.AspNetCore.App" />
12
+ </ItemGroup >
13
+
10
14
<ItemGroup >
11
15
<PackageReference Include =" McMaster.Extensions.CommandLineUtils" Version =" 2.2.5" />
12
- <PackageReference Include =" Microsoft.AspNetCore.App" Version =" 2.1.1" />
13
- <PackageReference Include =" Microsoft.AspNetCore.SpaServices.Extensions" Version =" 2.1.1" />
14
- <PackageReference Include =" Microsoft.Data.SQLite" Version =" 2.1.0" />
15
- <PackageReference Include =" Microsoft.EntityFrameworkCore.Sqlite" Version =" 2.1.1" />
16
- <PackageReference Include =" Microsoft.Extensions.Logging.Configuration" Version =" 2.1.1" />
17
- <PackageReference Include =" Microsoft.Extensions.Logging.Console" Version =" 2.1.1" />
16
+ <PackageReference Include =" Microsoft.AspNetCore.SpaServices.Extensions" Version =" 2.2.0" />
17
+ <PackageReference Include =" Microsoft.Data.SQLite" Version =" 2.2.0" />
18
+ <PackageReference Include =" Microsoft.EntityFrameworkCore.Sqlite" Version =" 2.2.0" />
19
+ <PackageReference Include =" Microsoft.Extensions.Logging.Configuration" Version =" 2.2.0" />
20
+ <PackageReference Include =" Microsoft.Extensions.Logging.Console" Version =" 2.2.0" />
18
21
<PackageReference Include =" NuGet.Client" Version =" 4.2.0" />
19
22
</ItemGroup >
20
23
Original file line number Diff line number Diff line change 18
18
using Microsoft . AspNetCore . Builder ;
19
19
using Microsoft . AspNetCore . Cors . Infrastructure ;
20
20
using Microsoft . AspNetCore . HttpOverrides ;
21
+ using Microsoft . AspNetCore . Mvc ;
21
22
using Microsoft . EntityFrameworkCore ;
22
23
using Microsoft . Extensions . Configuration ;
23
24
using Microsoft . Extensions . DependencyInjection ;
@@ -113,7 +114,10 @@ public static IServiceCollection ConfigureAzure(
113
114
114
115
public static IServiceCollection ConfigureHttpServices ( this IServiceCollection services )
115
116
{
116
- services . AddMvc ( ) ;
117
+ services
118
+ . AddMvc ( )
119
+ . SetCompatibilityVersion ( CompatibilityVersion . Version_2_2 ) ;
120
+
117
121
services . AddCors ( ) ;
118
122
services . AddSingleton < IConfigureOptions < CorsOptions > , ConfigureCorsOptions > ( ) ;
119
123
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp2.1 </TargetFramework >
4
+ <TargetFramework >netcoreapp2.2 </TargetFramework >
5
5
<LangVersion >7.1</LangVersion >
6
6
7
7
<IsPackable >false</IsPackable >
8
8
</PropertyGroup >
9
9
10
10
<ItemGroup >
11
- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 15.7 .0" />
11
+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 15.9 .0" />
12
12
<PackageReference Include =" Moq" Version =" 4.10.0" />
13
- <PackageReference Include =" xunit" Version =" 2.3.1" />
14
- <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.3.1" />
13
+ <PackageReference Include =" xunit" Version =" 2.4.1" />
14
+ <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.1" >
15
+ <PrivateAssets >all</PrivateAssets >
16
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers</IncludeAssets >
17
+ </PackageReference >
15
18
<DotNetCliToolReference Include =" dotnet-xunit" Version =" 2.3.1" />
16
19
</ItemGroup >
17
20
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp2.1 </TargetFramework >
4
+ <TargetFramework >netcoreapp2.2 </TargetFramework >
5
5
<LangVersion >7.1</LangVersion >
6
6
7
7
<IsPackable >false</IsPackable >
8
8
</PropertyGroup >
9
9
10
10
<ItemGroup >
11
- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 15.7 .0" />
11
+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 15.9 .0" />
12
12
<PackageReference Include =" Moq" Version =" 4.10.0" />
13
- <PackageReference Include =" xunit" Version =" 2.3.1" />
14
- <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.3.1" />
13
+ <PackageReference Include =" xunit" Version =" 2.4.1" />
14
+ <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.1" >
15
+ <PrivateAssets >all</PrivateAssets >
16
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers</IncludeAssets >
17
+ </PackageReference >
15
18
<DotNetCliToolReference Include =" dotnet-xunit" Version =" 2.3.1" />
16
19
</ItemGroup >
17
20
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp2.1 </TargetFramework >
4
+ <TargetFramework >netcoreapp2.2 </TargetFramework >
5
5
<LangVersion >7.1</LangVersion >
6
6
7
7
<IsPackable >false</IsPackable >
8
8
</PropertyGroup >
9
9
10
+ <ItemGroup >
11
+ <PackageReference Include =" Microsoft.AspNetCore.App" />
12
+ </ItemGroup >
13
+
10
14
<ItemGroup >
11
15
<PackageReference Include =" Newtonsoft.Json" Version =" 11.0.2" />
12
16
<PackageReference Include =" NuGet.Protocol" Version =" 4.7.0" />
13
- <PackageReference Include =" Microsoft.AspNetCore.App" Version =" 2.1.1" />
14
- <PackageReference Include =" Microsoft.AspNetCore.TestHost" Version =" 2.1.1" />
15
- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 15.7.0" />
16
- <PackageReference Include =" xunit" Version =" 2.3.1" />
17
- <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.3.1" />
17
+ <PackageReference Include =" Microsoft.AspNetCore.TestHost" Version =" 2.2.0" />
18
+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 15.9.0" />
19
+ <PackageReference Include =" xunit" Version =" 2.4.1" />
20
+ <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.1" >
21
+ <PrivateAssets >all</PrivateAssets >
22
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers</IncludeAssets >
23
+ </PackageReference >
18
24
<DotNetCliToolReference Include =" dotnet-xunit" Version =" 2.3.1" />
19
25
</ItemGroup >
20
26
You can’t perform that action at this time.
0 commit comments