File tree Expand file tree Collapse file tree 5 files changed +26
-17
lines changed
examples/Xunit.Microsoft.DependencyInjection.ExampleTests Expand file tree Collapse file tree 5 files changed +26
-17
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,3 @@ Do not forget to include the following nuget packages in your Xunit project:
70
70
<PackageReference Include =" Microsoft.Extensions.Configuration.Json" Version =" 3.1.10" />
71
71
<PackageReference Include =" Microsoft.Extensions.Logging" Version =" 3.1.10" />
72
72
```
73
-
74
- ## A note on .NET 5.0
75
- We are doing away with .NET 5.0 and instead we will be supporting .NET 6.0 once its first release version becomes available to the public.
Original file line number Diff line number Diff line change 13
13
14
14
steps :
15
15
- script : echo Build Number $(name)
16
+ - task : UseDotNet@2
17
+ displayName : ' Use .NET 6.0 sdk'
18
+ inputs :
19
+ packageType : sdk
20
+ version : 6.0.100-rc.2.21505.57
21
+ installationPath : $(Agent.ToolsDirectory)/dotnet
16
22
- script : echo Started restoring the source code
17
23
- task : DotNetCoreCLI@2
18
24
displayName : ' Restoring'
Original file line number Diff line number Diff line change 15
15
16
16
steps :
17
17
- script : echo Build Number $(name)
18
+ - task : UseDotNet@2
19
+ displayName : ' Use .NET 6.0 sdk'
20
+ inputs :
21
+ packageType : sdk
22
+ version : 6.0.100-rc.2.21505.57
23
+ installationPath : $(Agent.ToolsDirectory)/dotnet
18
24
- script : echo Started restoring the source code
19
25
- task : DotNetCoreCLI@2
20
26
displayName : ' Restoring'
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 >net6.0 </TargetFramework >
5
5
6
6
<IsPackable >false</IsPackable >
7
7
</PropertyGroup >
11
11
<PackageReference Include =" xunit" Version =" 2.4.1" />
12
12
<PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.3" />
13
13
<PackageReference Include =" coverlet.collector" Version =" 3.1.0" />
14
- <PackageReference Include =" Microsoft.Extensions.DependencyInjection" Version =" 3.1.20 " />
15
- <PackageReference Include =" Microsoft.Extensions.Configuration" Version =" 3.1.20 " />
16
- <PackageReference Include =" Microsoft.Extensions.Options" Version =" 3.1.20 " />
17
- <PackageReference Include =" Microsoft.Extensions.Configuration.Binder" Version =" 3.1.20 " />
18
- <PackageReference Include =" Microsoft.Extensions.Configuration.FileExtensions" Version =" 3.1.20 " />
19
- <PackageReference Include =" Microsoft.Extensions.Configuration.Json" Version =" 3.1.20 " />
20
- <PackageReference Include =" Microsoft.Extensions.Logging" Version =" 3.1.20 " />
14
+ <PackageReference Include =" Microsoft.Extensions.DependencyInjection" Version =" 6.0.0-rc.2.21480.5 " />
15
+ <PackageReference Include =" Microsoft.Extensions.Configuration" Version =" 6.0.0-rc.2.21480.5 " />
16
+ <PackageReference Include =" Microsoft.Extensions.Options" Version =" 6.0.0-rc.2.21480.5 " />
17
+ <PackageReference Include =" Microsoft.Extensions.Configuration.Binder" Version =" 6.0.0-rc.2.21480.5 " />
18
+ <PackageReference Include =" Microsoft.Extensions.Configuration.FileExtensions" Version =" 6.0.0-rc.2.21480.5 " />
19
+ <PackageReference Include =" Microsoft.Extensions.Configuration.Json" Version =" 6.0.0-rc.2.21480.5 " />
20
+ <PackageReference Include =" Microsoft.Extensions.Logging" Version =" 6.0.0-rc.2.21480.5 " />
21
21
</ItemGroup >
22
22
23
23
<ItemGroup >
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk" >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netstandard2.1 </TargetFramework >
4
+ <TargetFramework >net6.0 </TargetFramework >
5
5
</PropertyGroup >
6
6
7
7
<ItemGroup >
8
- <PackageReference Include =" Microsoft.Extensions.DependencyInjection.Abstractions" Version =" 3.1.20 " />
9
- <PackageReference Include =" Microsoft.Extensions.Logging" Version =" 3.1.20 " />
8
+ <PackageReference Include =" Microsoft.Extensions.DependencyInjection.Abstractions" Version =" 6.0.0-rc.2.21480.5 " />
9
+ <PackageReference Include =" Microsoft.Extensions.Logging" Version =" 6.0.0-rc.2.21480.5 " />
10
10
<PackageReference Include =" xunit.abstractions" Version =" 2.0.3" />
11
- <PackageReference Include =" Microsoft.Extensions.Configuration.FileExtensions" Version =" 3.1.20 " />
12
- <PackageReference Include =" Microsoft.Extensions.Configuration.Json" Version =" 3.1.20 " />
11
+ <PackageReference Include =" Microsoft.Extensions.Configuration.FileExtensions" Version =" 6.0.0-rc.2.21480.5 " />
12
+ <PackageReference Include =" Microsoft.Extensions.Configuration.Json" Version =" 6.0.0-rc.2.21480.5 " />
13
13
<PackageReference Include =" xunit.core" Version =" 2.4.1" />
14
14
</ItemGroup >
15
15
<ItemGroup >
You can’t perform that action at this time.
0 commit comments