This repository was archived by the owner on Feb 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +19
-36
lines changed Expand file tree Collapse file tree 6 files changed +19
-36
lines changed Original file line number Diff line number Diff line change @@ -61,21 +61,14 @@ stages:
61
61
command : ' test'
62
62
arguments : ' --configuration $(configuration) --collect "Code coverage"'
63
63
publishTestResults : true
64
- projects : ' tests/**/*.test .csproj'
64
+ projects : ' tests/**/*Tests/* .csproj'
65
65
66
- - pwsh : |
67
- Get-ChildItem -Path '$()' -Directory -Recurse | Where-Object { $_.FullName -match '\\bin|obj\\$(configuration)$' } | Write-Host
68
- displayName: Show Build Directories
69
-
70
- - pwsh : |
71
- New-Item -Path '$(Build.Repository.LocalPath)\\src\\binaries\\$(configuration)' -ItemType Directory
72
- displayName: Create binaries folder for Release Artifacts
73
-
74
- - task : PublishBuildArtifacts@1
75
- displayName : Publish Build Artifacts
66
+ - task : DotNetCoreCLI@2
67
+ displayName : ' Publish build artifacts'
76
68
inputs :
77
- pathToPublish : ' src/binaries/$(configuration)'
78
- artifactName : build
69
+ command : publish
70
+ arguments : ' --configuration $(configuration) --output $(Build.ArtifactStagingDirectory)'
71
+ publishWebProjects : false
79
72
80
73
- stage : postbuild
81
74
displayName : ' Post Build Checks'
Original file line number Diff line number Diff line change 24
24
25
25
<ItemGroup >
26
26
<PackageReference Include =" CommandLineParser" Version =" 2.8.0" />
27
- <PackageReference Include =" Microsoft.Azure.Management.ApiManagement" Version =" 4.0.6-preview" />
28
- <PackageReference Include =" Microsoft.Azure.Management.Authorization" Version =" 2.9.0-preview" />
29
- <PackageReference Include =" Microsoft.Azure.Management.Fluent" Version =" 1.18.0" />
30
- <PackageReference Include =" Microsoft.Extensions.Caching.Memory" Version =" 3.1.1" />
27
+ <PackageReference Include =" Microsoft.Extensions.Caching.Memory" Version =" 6.0.1" />
31
28
<PackageReference Include =" Microsoft.Extensions.DependencyInjection" Version =" 6.0.0" />
32
- <PackageReference Include =" Microsoft.Extensions.Hosting" Version =" 6.0.1" />
33
29
<PackageReference Include =" Serilog.Extensions.Logging" Version =" 3.1.0" />
34
30
<PackageReference Include =" Serilog.Sinks.Console" Version =" 4.0.1" />
35
- <PackageReference Include =" System.Diagnostics.Process" Version =" 4.3.0" />
36
- <PackageReference Include =" Newtonsoft.Json" Version =" 12.0.1" />
37
- <PackageReference Include =" YamlDotNet" Version =" 5.3.0" />
31
+ <PackageReference Include =" Newtonsoft.Json" Version =" 13.0.1" />
32
+ <PackageReference Include =" YamlDotNet" Version =" 11.2.1" />
38
33
</ItemGroup >
39
34
40
35
</Project >
Original file line number Diff line number Diff line change 8
8
using Microsoft . Azure . Management . ApiManagement . ArmTemplates . Common . Templates . Groups ;
9
9
using Microsoft . Azure . Management . ApiManagement . ArmTemplates . Extractor . EntityExtractors . Abstractions ;
10
10
using Microsoft . Azure . Management . ApiManagement . ArmTemplates . Extractor . Models ;
11
- using Microsoft . Azure . Management . Authorization . Models ;
12
11
using Microsoft . Extensions . Logging ;
13
12
14
13
namespace Microsoft . Azure . Management . ApiManagement . ArmTemplates . Extractor . EntityExtractors
Original file line number Diff line number Diff line change @@ -46,8 +46,7 @@ await parserResult.MapResult(
46
46
await creatorCommandApplication . ExecuteCommandAsync ( creatorConfig ) ;
47
47
} ,
48
48
49
- async errors =>
50
- {
49
+ errors => {
51
50
applicationLogger . Information ( "Azure API Management DevOps Resource toolkit finished." ) ;
52
51
53
52
if ( ! errors . IsNullOrEmpty ( ) )
@@ -63,8 +62,7 @@ await parserResult.MapResult(
63
62
{
64
63
case ErrorType . VersionRequestedError :
65
64
case ErrorType . HelpRequestedError :
66
- return ;
67
-
65
+ return Task . CompletedTask ;
68
66
case ErrorType . HelpVerbRequestedError :
69
67
applicationLogger . Error ( "No verb found. Use \" help\" command to view all supported commands." ) ;
70
68
break ;
@@ -84,10 +82,11 @@ await parserResult.MapResult(
84
82
var errorMessage = ( i < errorMessages . Count ) ? errorMessages [ i ] : string . Empty ;
85
83
86
84
applicationLogger . Error ( "[{0}] {1}" , errorList [ i ] . Tag , errorMessage ) ;
87
- }
85
+ }
88
86
}
89
- }
90
- ) ;
87
+
88
+ return Task . CompletedTask ;
89
+ } ) ;
91
90
}
92
91
93
92
public static IServiceProvider CreateServiceProvider ( ILogger logger )
Original file line number Diff line number Diff line change 16
16
17
17
<ItemGroup >
18
18
<PackageReference Include =" FluentAssertions" Version =" 6.5.1" />
19
- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 15.9.0" />
20
- <PackageReference Include =" Moq" Version =" 4.16.1" />
19
+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.1.0" />
20
+ <PackageReference Include =" Moq" Version =" 4.17.2" />
21
+ <PackageReference Include =" YamlDotNet" Version =" 11.2.1" />
21
22
<PackageReference Include =" xunit" Version =" 2.4.1" />
22
23
<PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.3" >
23
24
<PrivateAssets >all</PrivateAssets >
24
25
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
25
26
</PackageReference >
26
- <PackageReference Include =" YamlDotNet" Version =" 8.1.1" />
27
27
</ItemGroup >
28
28
29
29
<ItemGroup >
30
- <PackageReference Include =" coverlet.msbuild" Version =" 2.5.0 " >
30
+ <PackageReference Include =" coverlet.msbuild" Version =" 3.1.2 " >
31
31
<IncludeAssets >runtime; build; native; contentfiles; analyzers</IncludeAssets >
32
32
<PrivateAssets >all</PrivateAssets >
33
33
</PackageReference >
Original file line number Diff line number Diff line change 4
4
// </copyright>
5
5
// --------------------------------------------------------------------------
6
6
7
- using System ;
8
7
using System . Collections . Generic ;
9
- using System . Text ;
10
8
using Microsoft . Azure . Management . ApiManagement . ArmTemplates . Common . API . Clients . Abstractions ;
11
9
using Microsoft . Azure . Management . ApiManagement . ArmTemplates . Common . Constants ;
12
10
using Microsoft . Azure . Management . ApiManagement . ArmTemplates . Common . Templates . ApiOperations ;
13
11
using Microsoft . Azure . Management . ApiManagement . ArmTemplates . Extractor . Models ;
14
- using Microsoft . Azure . Management . Compute . Fluent . Models ;
15
12
using Moq ;
16
13
17
14
namespace Microsoft . Azure . Management . ApiManagement . ArmTemplates . Tests . Moqs . ApiClients
You can’t perform that action at this time.
0 commit comments