VB -> C#: MySettings not converted correctly
See original GitHub issueVB.Net input code
If relevant, please enter some example VB.NET code here to reproduce the issue, or the steps taken to cause the issue.
Erroneous output
If relevant, the incorrectly converted output, or an exception with stack trace.
Expected output
If relevant, the output you expected, or a description of what you expected.
Details
- Product in use: e.g. codeconverter.icsharpcode.net / VS extension / both
- Version in use: e.g. 5.6.3 or a commit hash (if it’s a 3rd party tool using this library, try one of the above)
- Did you see it working in a previous version, which?
- Any other relevant information to the issue, or your interest in contributing a fix.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
What has changed and "My.Settings.CommPort" doesn't ...
I'm following a Visual Basic 2013 instructions video to create an ASCOM ... an error saying "'CommPort' is not a member of 'MySettings'....
Read more >Value of type '<type1>' cannot be converted to '<type2>'
To correct this error · Make sure the expression can be converted to the destination data type. · If <type2> is an array,...
Read more >[Solved] My.Settings not working
Ok, looks like it's a problem with the code in my Preferences screen but not sure what. If i don't open it, the...
Read more >Creating/Saving a Settings file throws error · Issue #3346
cs is working just fine. For VB: True, we cannot create a settings file. But you can manually insert a file at the...
Read more >Step By Step Guide to Convert VB .NET Projects to C# - ...
Successful VB .NET to C# conversion requires careful planning, good conversion tools and ample testing. This comprehensive list will help ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

What I ended up doing is
Thanks From: GrahamTheCoder @.> Sent: Wednesday, April 27, 2022 6:33 PM To: icsharpcode/CodeConverter @.> Cc: Jay O’Brien @.>; State change @.> Subject: Re: [icsharpcode/CodeConverter] VB -> C#: MySettings not converted correctly (#740)
The file is the converted version of what the VB compiler creates during compilation. I think the attribute is just used on the template of that file to tell the compiler where to fill in the propertieshttps://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.mygroupcollectionattribute?view=net-6.0. Since they’ve already been filled in by this point, and you’ll never run the VB compiler on that file, I think you can just remove those 2 attributes.
— Reply to this email directly, view it on GitHubhttps://github.com/icsharpcode/CodeConverter/issues/740#issuecomment-1111576546, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AO7RIRCAK7JUXCVPORSOSE3VHHFDJANCNFSM5AWS3ARQ. You are receiving this because you modified the open/close state.Message ID: @.@.>>