diff --git a/Directory.Build.props b/Directory.Build.props index 893a409..f690ce4 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,11 +2,11 @@ CasCap - 12.0 + 13.0 + enable b08b24aa-70ab-4ecd-aef9-cce6d49054ec - enable diff --git a/Directory.Packages.props b/Directory.Packages.props new file mode 100644 index 0000000..c0c13bf --- /dev/null +++ b/Directory.Packages.props @@ -0,0 +1,38 @@ + + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/CasCap.Apis.AzureDevOps.Tests/CasCap.Apis.AzureDevOps.Tests.csproj b/src/CasCap.Apis.AzureDevOps.Tests/CasCap.Apis.AzureDevOps.Tests.csproj index a39049b..bfe7e28 100644 --- a/src/CasCap.Apis.AzureDevOps.Tests/CasCap.Apis.AzureDevOps.Tests.csproj +++ b/src/CasCap.Apis.AzureDevOps.Tests/CasCap.Apis.AzureDevOps.Tests.csproj @@ -9,22 +9,22 @@ - - - - - - - - + + + + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/CasCap.Apis.AzureDevOps.Tests/Tests/ApiServiceTests.cs b/src/CasCap.Apis.AzureDevOps.Tests/Tests/ApiServiceTests.cs index 652d157..e34dddf 100644 --- a/src/CasCap.Apis.AzureDevOps.Tests/Tests/ApiServiceTests.cs +++ b/src/CasCap.Apis.AzureDevOps.Tests/Tests/ApiServiceTests.cs @@ -1,6 +1,7 @@ using System.Diagnostics; using Xunit; using Xunit.Abstractions; + namespace CasCap.Apis.AzureDevOps.Tests; public class ApiServiceTests : TestBase diff --git a/src/CasCap.Apis.AzureDevOps.Tests/Tests/TestBase.cs b/src/CasCap.Apis.AzureDevOps.Tests/Tests/TestBase.cs index ba6ba2f..43f2292 100644 --- a/src/CasCap.Apis.AzureDevOps.Tests/Tests/TestBase.cs +++ b/src/CasCap.Apis.AzureDevOps.Tests/Tests/TestBase.cs @@ -4,6 +4,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Xunit.Abstractions; + namespace CasCap.Apis.AzureDevOps.Tests; public abstract class TestBase diff --git a/src/CasCap.Apis.AzureDevOps/CasCap.Apis.AzureDevOps.csproj b/src/CasCap.Apis.AzureDevOps/CasCap.Apis.AzureDevOps.csproj index 0c6e3e4..6ad0ed3 100644 --- a/src/CasCap.Apis.AzureDevOps/CasCap.Apis.AzureDevOps.csproj +++ b/src/CasCap.Apis.AzureDevOps/CasCap.Apis.AzureDevOps.csproj @@ -12,16 +12,16 @@ - - - - - - - - - - + + + + + + + + + + diff --git a/src/CasCap.Apis.AzureDevOps/Models/Yaml/Pipeline.cs b/src/CasCap.Apis.AzureDevOps/Models/Yaml/Pipeline.cs index 8ea1a7e..450491a 100644 --- a/src/CasCap.Apis.AzureDevOps/Models/Yaml/Pipeline.cs +++ b/src/CasCap.Apis.AzureDevOps/Models/Yaml/Pipeline.cs @@ -1,6 +1,7 @@ using AzurePipelinesToGitHubActionsConverter.Core.AzurePipelines; using CasCap.Utilities; using YamlDotNet.Serialization; + namespace CasCap.Models; public class Pipeline diff --git a/src/CasCap.Apis.AzureDevOps/Models/Yaml/StageAzDO.cs b/src/CasCap.Apis.AzureDevOps/Models/Yaml/StageAzDO.cs index 3ebd790..c0c815a 100644 --- a/src/CasCap.Apis.AzureDevOps/Models/Yaml/StageAzDO.cs +++ b/src/CasCap.Apis.AzureDevOps/Models/Yaml/StageAzDO.cs @@ -1,4 +1,5 @@ using AzurePipelinesToGitHubActionsConverter.Core.AzurePipelines; + namespace CasCap.Models; public class StageAzDO// : Stage //we can't inherit from Stage here as it will mess up the order of the properties when YAMLised. diff --git a/src/CasCap.Apis.AzureDevOps/Models/Yaml/Template.cs b/src/CasCap.Apis.AzureDevOps/Models/Yaml/Template.cs index ff3423f..d14919b 100644 --- a/src/CasCap.Apis.AzureDevOps/Models/Yaml/Template.cs +++ b/src/CasCap.Apis.AzureDevOps/Models/Yaml/Template.cs @@ -1,5 +1,6 @@ using Microsoft.TeamFoundation.DistributedTask.WebApi; using YamlDotNet.Serialization; + namespace CasCap.Models; public class Template : Pipeline diff --git a/src/CasCap.Apis.AzureDevOps/Models/Yaml/TriggerAzDO.cs b/src/CasCap.Apis.AzureDevOps/Models/Yaml/TriggerAzDO.cs index 1a10951..bc1b20a 100644 --- a/src/CasCap.Apis.AzureDevOps/Models/Yaml/TriggerAzDO.cs +++ b/src/CasCap.Apis.AzureDevOps/Models/Yaml/TriggerAzDO.cs @@ -1,4 +1,5 @@ using AzurePipelinesToGitHubActionsConverter.Core.AzurePipelines; + namespace CasCap.Models; public class TriggerAzDO : Trigger diff --git a/src/CasCap.Apis.AzureDevOps/Services/ApiService.cs b/src/CasCap.Apis.AzureDevOps/Services/ApiService.cs index 5666b80..f48587b 100644 --- a/src/CasCap.Apis.AzureDevOps/Services/ApiService.cs +++ b/src/CasCap.Apis.AzureDevOps/Services/ApiService.cs @@ -2,6 +2,7 @@ using Microsoft.Extensions.Logging; using System.Net.Http.Headers; using System.Text; + namespace CasCap.Services; public interface IApiService diff --git a/src/CasCap.Apis.AzureDevOps/Utilities/LiteralMultilineEventEmitter.cs b/src/CasCap.Apis.AzureDevOps/Utilities/LiteralMultilineEventEmitter.cs index 32f1b70..9f03c40 100644 --- a/src/CasCap.Apis.AzureDevOps/Utilities/LiteralMultilineEventEmitter.cs +++ b/src/CasCap.Apis.AzureDevOps/Utilities/LiteralMultilineEventEmitter.cs @@ -1,6 +1,7 @@ using YamlDotNet.Core; using YamlDotNet.Serialization; using YamlDotNet.Serialization.EventEmitters; + namespace CasCap.Utilities; public class LiteralMultilineEventEmitter : ChainedEventEmitter diff --git a/src/CasCap.Apis.AzureDevOps/Utilities/YamlPipelineGenerator.cs b/src/CasCap.Apis.AzureDevOps/Utilities/YamlPipelineGenerator.cs index b5675f3..1a6dae0 100644 --- a/src/CasCap.Apis.AzureDevOps/Utilities/YamlPipelineGenerator.cs +++ b/src/CasCap.Apis.AzureDevOps/Utilities/YamlPipelineGenerator.cs @@ -9,6 +9,7 @@ using System.Collections.Concurrent; using System.Text; using System.Text.RegularExpressions; + namespace CasCap.Utilities; public class YamlPipelineGenerator diff --git a/src/CasCap.DevOpsYamlizrCli/CasCap.DevOpsYamlizrCli.csproj b/src/CasCap.DevOpsYamlizrCli/CasCap.DevOpsYamlizrCli.csproj index 66c4351..a2e19fd 100644 --- a/src/CasCap.DevOpsYamlizrCli/CasCap.DevOpsYamlizrCli.csproj +++ b/src/CasCap.DevOpsYamlizrCli/CasCap.DevOpsYamlizrCli.csproj @@ -14,13 +14,13 @@ - - - - - - - + + + + + + + diff --git a/src/CasCap.DevOpsYamlizrCli/Commands/CommandBase.cs b/src/CasCap.DevOpsYamlizrCli/Commands/CommandBase.cs index 5356568..5cc1b11 100644 --- a/src/CasCap.DevOpsYamlizrCli/Commands/CommandBase.cs +++ b/src/CasCap.DevOpsYamlizrCli/Commands/CommandBase.cs @@ -10,6 +10,7 @@ using Microsoft.VisualStudio.Services.WebApi; using ShellProgressBar; using System.Diagnostics; + namespace CasCap.Commands; /// diff --git a/src/CasCap.DevOpsYamlizrCli/Commands/GenerateCommand.cs b/src/CasCap.DevOpsYamlizrCli/Commands/GenerateCommand.cs index bba7018..c3a910f 100644 --- a/src/CasCap.DevOpsYamlizrCli/Commands/GenerateCommand.cs +++ b/src/CasCap.DevOpsYamlizrCli/Commands/GenerateCommand.cs @@ -11,6 +11,7 @@ using System.Collections.Concurrent; using System.ComponentModel.DataAnnotations; using System.Diagnostics; + namespace CasCap.Commands; [Command(Description = "Generate Azure DevOps YAML pipelines from classic definitions.")] diff --git a/src/CasCap.DevOpsYamlizrCli/Program.cs b/src/CasCap.DevOpsYamlizrCli/Program.cs index 25eb4d9..76cbb98 100644 --- a/src/CasCap.DevOpsYamlizrCli/Program.cs +++ b/src/CasCap.DevOpsYamlizrCli/Program.cs @@ -2,6 +2,7 @@ using McMaster.Extensions.CommandLineUtils; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; + namespace CasCap; [Command("yamlizr")]