Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
tuananh-le opened this issue Aug 5, 2021 · 5 comments
Labels

Comments

@tuananh-le
Copy link

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
@tuananh-le tuananh-le added the bug label Aug 5, 2021
@StefH
Copy link
Collaborator

StefH commented 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
Copy link
Collaborator

StefH commented Aug 5, 2021

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

@StefH
Copy link
Collaborator

StefH commented Aug 6, 2021

@tuananh-le
Copy link
Author

tuananh-le commented Aug 6, 2021

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

@StefH
Copy link
Collaborator

StefH commented Aug 6, 2021

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

@StefH StefH closed this as completed Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants