RagingKore / Krimson

MIT License
11 stars 4 forks source link

Doesn't compile ootb #11

Closed damianh closed 1 year ago

damianh commented 2 years ago
  1. Clone repo.
  2. dotnet build in root directory.
MSBuild version 17.4.0+18d5aef85 for .NET
  Determining projects to restore...
  All projects are up-to-date for restore.
  Telemetry.Contracts -> C:\dev\damianh\Krimson\examples\Telemetry.Contracts\bin\Debug\net7.0\Telemetry.Contracts.dll
  Krimson.Fixie -> C:\dev\damianh\Krimson\tests\Krimson.Fixie\bin\Debug\net6.0\Krimson.Fixie.dll
  Krimson.Fixie -> C:\dev\damianh\Krimson\tests\Krimson.Fixie\bin\Debug\net7.0\Krimson.Fixie.dll
  Krimson.Core -> C:\dev\damianh\Krimson\src\Krimson.Core\bin\Debug\net6.0\Krimson.Core.dll
  Krimson.Core -> C:\dev\damianh\Krimson\src\Krimson.Core\bin\Debug\net7.0\Krimson.Core.dll
  Krimson.OpenTelemetry -> C:\dev\damianh\Krimson\src\Krimson.OpenTelemetry\bin\Debug\net7.0\Krimson.OpenTelemetry.dll
  Krimson.Serializers.ConfluentProtobuf -> C:\dev\damianh\Krimson\src\Krimson.Serializers.ConfluentProtobuf\bin\Debug\net7.0\Krimson.Serializers.ConfluentProtobuf.dll
  Krimson.OpenTelemetry -> C:\dev\damianh\Krimson\src\Krimson.OpenTelemetry\bin\Debug\net6.0\Krimson.OpenTelemetry.dll
  Krimson.Serializers.ConfluentJson -> C:\dev\damianh\Krimson\src\Krimson.Serializers.ConfluentJson\bin\Debug\net6.0\Krimson.Serializers.ConfluentJson.dll
  Krimson.Serializers.ConfluentJson -> C:\dev\damianh\Krimson\src\Krimson.Serializers.ConfluentJson\bin\Debug\net7.0\Krimson.Serializers.ConfluentJson.dll
  Krimson.Serializers.ConfluentProtobuf -> C:\dev\damianh\Krimson\src\Krimson.Serializers.ConfluentProtobuf\bin\Debug\net6.0\Krimson.Serializers.ConfluentProtobuf.dll
  Krimson.State.MongoDB -> C:\dev\damianh\Krimson\src\Krimson.State.MongoDB\bin\Debug\net6.0\Krimson.State.MongoDB.dll
  Krimson.State.MongoDB -> C:\dev\damianh\Krimson\src\Krimson.State.MongoDB\bin\Debug\net7.0\Krimson.State.MongoDB.dll
  Krimson.Connectors -> C:\dev\damianh\Krimson\src\Krimson.Connectors\bin\Debug\net6.0\Krimson.Connectors.dll
  Krimson.Connectors -> C:\dev\damianh\Krimson\src\Krimson.Connectors\bin\Debug\net7.0\Krimson.Connectors.dll
  Krimson -> C:\dev\damianh\Krimson\src\Krimson\bin\Debug\net7.0\Krimson.dll
  Krimson -> C:\dev\damianh\Krimson\src\Krimson\bin\Debug\net6.0\Krimson.dll
  PeriodicSourceConnectorService -> C:\dev\damianh\Krimson\examples\PeriodicSourceConnectorService\bin\Debug\net7.0\PeriodicSourceConnectorService.dll
  Sherlock -> C:\dev\damianh\Krimson\examples\Sherlock\bin\Debug\net7.0\Sherlock.dll
  PowerConsumption.Processor -> C:\dev\damianh\Krimson\examples\PowerConsumption.Processor\bin\Debug\net7.0\PowerConsumption.Processor.dll
  Telemetry.Gateway.Http -> C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\bin\Debug\net7.0\Telemetry.Gateway.Http.dll
  Webhooks -> C:\dev\damianh\Krimson\examples\Webhooks\bin\Debug\net7.0\Webhooks.dll

  GenerateOpenApiDocuments:
    dotnet "C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\../tools/dotnet-getdocument.dll" --assembly "C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\bin\Debug\net7.0\Telemetry.Gateway.Http.dll" --file-list "obj\Telemetry.Gateway.Http.OpenApiFiles.cache" --framework ".NETCoreApp,Version=v7.0" --output "obj" --project "Telemetry.Gateway.Http" --assets-file "C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\obj\project.assets.json" --platform "AnyCPU" 
  Krimson.Tests -> C:\dev\damianh\Krimson\tests\Krimson.Tests\bin\Debug\net7.0\Krimson.Tests.dll
C:\dev\damianh\Krimson\tests\Krimson.Tests\Messages\KrimsonTestRecord.cs(4,27): warning CS8618: Non-nullable property 'Id' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [C:\dev\damianh\Krimson\tests\Krimson.Tests\Krimson.Tests.csproj::TargetFramework=net6.0]
C:\dev\damianh\Krimson\tests\Krimson.Tests\KrimsonTestContext.cs(40,26): warning CS8601: Possible null reference assignment. [C:\dev\damianh\Krimson\tests\Krimson.Tests\Krimson.Tests.csproj::TargetFramework=net6.0]
C:\dev\damianh\Krimson\tests\Krimson.Tests\KrimsonTestContext.cs(34,12): warning CS8618: Non-nullable property 'TracerProvider' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [C:\dev\damianh\Krimson\tests\Krimson.Tests\Krimson.Tests.csproj::TargetFramework=net6.0]
  Krimson.Tests -> C:\dev\damianh\Krimson\tests\Krimson.Tests\bin\Debug\net6.0\Krimson.Tests.dll
  Generating document named 'v1'.
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error : System.AggregateException: One or more errors occurred. (Conflicting method/path combination "POST Ingress" for actions - IngressController.Dispatch (Telemetry.Gateway.Http),Telemetry.Gateway.Http.Controllers.IngressController.Set (Telemetry.Gateway.Http). Actions require a unique method/path combination for Swagger/OpenAPI 3.0. Use ConflictingActionsResolver as a workaround) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :  ---> Swashbuckle.AspNetCore.SwaggerGen.SwaggerGeneratorException: Conflicting method/path combination "POST Ingress" for actions - IngressController.Dispatch (Telemetry.Gateway.Http),Telemetry.Gateway.Http.Controllers.IngressController.Set (Telemetry.Gateway.Http). Actions require a unique method/path combination for Swagger/OpenAPI 3.0. Use ConflictingActionsResolver as a workaround [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GenerateOperations(IEnumerable`1 apiDescriptions, SchemaRepository schemaRepository) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GeneratePaths(IEnumerable`1 apiDescriptions, SchemaRepository schemaRepository) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwaggerDocumentWithoutFilters(String documentName, String host, String basePath) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwaggerAsync(String documentName, String host, String basePath) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at Microsoft.Extensions.ApiDescriptions.DocumentProvider.GenerateAsync(String documentName, TextWriter writer) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    --- End of inner exception stack trace --- [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at System.Threading.Tasks.Task.Wait(TimeSpan timeout, CancellationToken cancellationToken) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at System.Threading.Tasks.Task.Wait(TimeSpan timeout) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at Microsoft.Extensions.ApiDescription.Tool.Commands.GetDocumentCommandWorker.GetDocument(String documentName, String projectName, String outputDirectory, MethodInfo generateMethod, Object service) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at Microsoft.Extensions.ApiDescription.Tool.Commands.GetDocumentCommandWorker.GetDocuments(IServiceProvider services) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at Microsoft.Extensions.ApiDescription.Tool.Commands.GetDocumentCommandWorker.Process() [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error MSB3073: The command "dotnet "C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\../tools/dotnet-getdocument.dll" --assembly "C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\bin\Debug\net7.0\Telemetry.Gateway.Http.dll" --file-list "obj\Telemetry.Gateway.Http.OpenApiFiles.cache" --framework ".NETCoreApp,Version=v7.0" --output "obj" --project "Telemetry.Gateway.Http" --assets-file "C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\obj\project.assets.json" --platform "AnyCPU" " exited with code 7. [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]

Build FAILED.

C:\dev\damianh\Krimson\tests\Krimson.Tests\Messages\KrimsonTestRecord.cs(4,27): warning CS8618: Non-nullable property 'Id' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [C:\dev\damianh\Krimson\tests\Krimson.Tests\Krimson.Tests.csproj::TargetFramework=net6.0]
C:\dev\damianh\Krimson\tests\Krimson.Tests\KrimsonTestContext.cs(40,26): warning CS8601: Possible null reference assignment. [C:\dev\damianh\Krimson\tests\Krimson.Tests\Krimson.Tests.csproj::TargetFramework=net6.0]
C:\dev\damianh\Krimson\tests\Krimson.Tests\KrimsonTestContext.cs(34,12): warning CS8618: Non-nullable property 'TracerProvider' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [C:\dev\damianh\Krimson\tests\Krimson.Tests\Krimson.Tests.csproj::TargetFramework=net6.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error : System.AggregateException: One or more errors occurred. (Conflicting method/path combination "POST Ingress" for actions - IngressController.Dispatch (Telemetry.Gateway.Http),Telemetry.Gateway.Http.Controllers.IngressController.Set (Telemetry.Gateway.Http). Actions require a unique method/path combination for Swagger/OpenAPI 3.0. Use ConflictingActionsResolver as a workaround) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :  ---> Swashbuckle.AspNetCore.SwaggerGen.SwaggerGeneratorException: Conflicting method/path combination "POST Ingress" for actions - IngressController.Dispatch (Telemetry.Gateway.Http),Telemetry.Gateway.Http.Controllers.IngressController.Set (Telemetry.Gateway.Http). Actions require a unique method/path combination for Swagger/OpenAPI 3.0. Use ConflictingActionsResolver as a workaround [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GenerateOperations(IEnumerable`1 apiDescriptions, SchemaRepository schemaRepository) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GeneratePaths(IEnumerable`1 apiDescriptions, SchemaRepository schemaRepository) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwaggerDocumentWithoutFilters(String documentName, String host, String basePath) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwaggerAsync(String documentName, String host, String basePath) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at Microsoft.Extensions.ApiDescriptions.DocumentProvider.GenerateAsync(String documentName, TextWriter writer) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    --- End of inner exception stack trace --- [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at System.Threading.Tasks.Task.Wait(TimeSpan timeout, CancellationToken cancellationToken) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at System.Threading.Tasks.Task.Wait(TimeSpan timeout) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at Microsoft.Extensions.ApiDescription.Tool.Commands.GetDocumentCommandWorker.GetDocument(String documentName, String projectName, String outputDirectory, MethodInfo generateMethod, Object service) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at Microsoft.Extensions.ApiDescription.Tool.Commands.GetDocumentCommandWorker.GetDocuments(IServiceProvider services) [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error :    at Microsoft.Extensions.ApiDescription.Tool.Commands.GetDocumentCommandWorker.Process() [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets(66,5): error MSB3073: The command "dotnet "C:\Users\Damian\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5\build\../tools/dotnet-getdocument.dll" --assembly "C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\bin\Debug\net7.0\Telemetry.Gateway.Http.dll" --file-list "obj\Telemetry.Gateway.Http.OpenApiFiles.cache" --framework ".NETCoreApp,Version=v7.0" --output "obj" --project "Telemetry.Gateway.Http" --assets-file "C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\obj\project.assets.json" --platform "AnyCPU" " exited with code 7. [C:\dev\damianh\Krimson\examples\Telemetry.Gateway.Http\Telemetry.Gateway.Http.csproj::TargetFramework=net7.0]
    3 Warning(s)
    16 Error(s)

Time Elapsed 00:00:10.39
.NET SDK:
 Version:   7.0.100
 Commit:    e12b7af219

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.22621
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\7.0.100\

Host:
  Version:      7.0.0
  Architecture: x64
  Commit:       d099f075e4

.NET SDKs installed:
  3.1.425 [C:\Program Files\dotnet\sdk]
  7.0.100 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.31 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 7.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.31 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.31 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 7.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
  x86   [C:\Program Files (x86)\dotnet]
    registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download
3.1.425 [C:\Program Files\dotnet\sdk]
7.0.100 [C:\Program Files\dotnet\sdk]
damianh commented 2 years ago

The problem is a duplicate controller.