version 1.4.19 throws a lot of analyzer errors related to the BaseBuilder.cs #352

Closed
opened 2025-12-29 15:21:34 +01:00 by adam · 5 comments
Owner

Originally created by @tuananh-le on GitHub (Aug 5, 2021).

Describe the bug

Received the following analyzer errors and can't even find the BaseBuilder.cs file. Not sure why this version has caused these errors thou.

CA1724 C# The type name Builder conflicts in whole or in part with the namespace name. Change either name to eliminate the conflict.
CA1051 C# Do not declare visible instance fields
CA1720 C# Identifier 'Object' contains type name
CS0436 C# The type 'Builder<T>' in 'FluentBuilderGenerator\FluentBuilderGenerator.FluentBuilderSourceGenerator\BaseBuilder.cs' conflicts with the imported type 'Builder<T>' in 'WireMock.Net.Abstractions, Version=1.4.19.0, Culture=neutral, PublicKeyToken=c8d65537854e1f03'. Using the type defined in 'FluentBuilderGenerator\FluentBuilderGenerator.FluentBuilderSourceGenerator\BaseBuilder.cs'. | EmployeeUsage.IntegrationTest | C:\Users\Tuan Anh Le\source\repos\myob-sme\employee-usage\src\EmployeeUsage.IntegrationTest\FluentBuilderGenerator\FluentBuilderGenerator.FluentBuilderSourceGenerator\BaseBuilder.cs 
CS0436 C# The type 'Builder<T>' in 'FluentBuilderGenerator\FluentBuilderGenerator.FluentBuilderSourceGenerator\BaseBuilder.cs' conflicts with the imported type 'Builder<T>' in 'WireMock.Net.Abstractions, Version=1.4.19.0, Culture=neutral, PublicKeyToken=c8d65537854e1f03'. Using the type defined in 'FluentBuilderGenerator\FluentBuilderGenerator.FluentBuilderSourceGenerator\BaseBuilder.cs'. | EmployeeUsage.IntegrationTest | C:\Users\Tuan Anh Le\source\repos\myob-sme\employee-usage\src\EmployeeUsage.IntegrationTest\FluentBuilderGenerator\FluentBuilderGenerator.FluentBuilderSourceGenerator\BaseBuilder.cs

Expected behavior:

These errors shouldn't occur

  • .NET 5 project
Originally created by @tuananh-le on GitHub (Aug 5, 2021). ### Describe the bug Received the following analyzer errors and can't even find the BaseBuilder.cs file. Not sure why this version has caused these errors thou. ``` CA1724 C# The type name Builder conflicts in whole or in part with the namespace name. Change either name to eliminate the conflict. CA1051 C# Do not declare visible instance fields CA1720 C# Identifier 'Object' contains type name CS0436 C# The type 'Builder<T>' in 'FluentBuilderGenerator\FluentBuilderGenerator.FluentBuilderSourceGenerator\BaseBuilder.cs' conflicts with the imported type 'Builder<T>' in 'WireMock.Net.Abstractions, Version=1.4.19.0, Culture=neutral, PublicKeyToken=c8d65537854e1f03'. Using the type defined in 'FluentBuilderGenerator\FluentBuilderGenerator.FluentBuilderSourceGenerator\BaseBuilder.cs'. | EmployeeUsage.IntegrationTest | C:\Users\Tuan Anh Le\source\repos\myob-sme\employee-usage\src\EmployeeUsage.IntegrationTest\FluentBuilderGenerator\FluentBuilderGenerator.FluentBuilderSourceGenerator\BaseBuilder.cs CS0436 C# The type 'Builder<T>' in 'FluentBuilderGenerator\FluentBuilderGenerator.FluentBuilderSourceGenerator\BaseBuilder.cs' conflicts with the imported type 'Builder<T>' in 'WireMock.Net.Abstractions, Version=1.4.19.0, Culture=neutral, PublicKeyToken=c8d65537854e1f03'. Using the type defined in 'FluentBuilderGenerator\FluentBuilderGenerator.FluentBuilderSourceGenerator\BaseBuilder.cs'. | EmployeeUsage.IntegrationTest | C:\Users\Tuan Anh Le\source\repos\myob-sme\employee-usage\src\EmployeeUsage.IntegrationTest\FluentBuilderGenerator\FluentBuilderGenerator.FluentBuilderSourceGenerator\BaseBuilder.cs ``` ### Expected behavior: These errors shouldn't occur ### Other related info - .NET 5 project
adam added the bug label 2025-12-29 15:21:34 +01:00
adam closed this issue 2025-12-29 15:21:35 +01:00
Author
Owner

@StefH commented on GitHub (Aug 5, 2021):

@tuananh-le
Thanks for creating this issue.

This is related to https://github.com/StefH/FluentBuilder which I added to make it possible to use to build the models in a fliuent way.

I'll investigate and fix this.

@StefH commented on GitHub (Aug 5, 2021): @tuananh-le Thanks for creating this issue. This is related to https://github.com/StefH/FluentBuilder which I added to make it possible to use to build the models in a fliuent way. I'll investigate and fix this.
Author
Owner

@StefH commented on GitHub (Aug 5, 2021):

@tuananh-le
Can you try preview version WireMock.1.4.20-ci-15262 ?

@StefH commented on GitHub (Aug 5, 2021): @tuananh-le Can you try preview version `WireMock.1.4.20-ci-15262` ?
Author
Owner

@StefH commented on GitHub (Aug 6, 2021):

See https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions for details

@StefH commented on GitHub (Aug 6, 2021): See https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions for details
Author
Owner

@tuananh-le commented on GitHub (Aug 6, 2021):

@StefH : Thanks StefH. We decided to revert back to 1.14.18 for now. It works fine in that version.

@tuananh-le commented on GitHub (Aug 6, 2021): @StefH : Thanks StefH. We decided to revert back to 1.14.18 for now. It works fine in that version.
Author
Owner

@StefH commented on GitHub (Aug 6, 2021):

I'll release official WireMock.1.4.20 in a few minutes, please try that one.

@StefH commented on GitHub (Aug 6, 2021): I'll release official WireMock.1.4.20 in a few minutes, please try that one.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net-wiremock#352