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

VB -> C#: Too many constructors #543

Closed
marcal opened this issue Mar 13, 2020 · 5 comments
Closed

VB -> C#: Too many constructors #543

marcal opened this issue Mar 13, 2020 · 5 comments
Assignees
Labels
VB -> C# Specific to VB -> C# conversion

Comments

@marcal
Copy link

marcal commented Mar 13, 2020

Hello,

I have made a test for a problem with the constructors (too many constructors).
Here is an example project (I only created a vb.net project, with a splash screen). No line of code required. The conversion will fail.
If I add a second form (Form2) I will have the problem with the 3 forms. The zip file has only one form and one splash screen.
Edit : I used the lastest version (8.0.1.0 )
WindowsApp1.zip

Error CS0111 Type 'SplashScreen1' already defines a member called '.ctor' with the same
Error CS0111 Type 'Form2' already defines a member called '.ctor' with the same parameter
Error CS0111 Type 'Form1' already defines a member called '.ctor' with the same parameter

Thank you again
Marc

@GrahamTheCoder
Copy link
Member

GrahamTheCoder commented Mar 14, 2020

Thanks, I'll look into it this weekend.

Consolidating #541 into this since this has the better repro.

@GrahamTheCoder
Copy link
Member

Fixed, it'll be in the next release, or see instructions on the readme for getting a CI build with it in right now. Thanks!

@marcal
Copy link
Author

marcal commented Mar 14, 2020

Thank you

@Saibamen
Copy link
Contributor

Should be fixed in release 8.0.2: https://github.com/icsharpcode/CodeConverter/releases/tag/8.0.2
Please retest

@marcal
Copy link
Author

marcal commented Mar 20, 2020

Hello,

It is fixed. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
VB -> C# Specific to VB -> C# conversion
Projects
None yet
Development

No branches or pull requests

3 participants