-
Notifications
You must be signed in to change notification settings - Fork 222
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
Resources not converted VB -> C# #540
Comments
Thanks for posting. Part of the issue sounds like #423. I'll have more of a look this weekend, but just in case it helps in the meantime, saving the resource file in visual studio (ensuring code generation is enabled) should regenerate the designer file I think. The constructor issue (now tracked as #541) sounds related to something I've been changing recently I'll update the relevant other tickets with any details, and just track the first issue you mentioned "the project says that there is no [resources]". If the resource is looked up by namespace, it could be caused by the namespace being generated differently in VB and C# depending on the rootnamespace of the project, but I'll try the (much appreciated) example this weekend and let you know. |
Thank you. I will try as this week end |
For the default resource, you can workaround by changing a line in the designer.cs file: Regenerating the designer file also fixes this (i.e. Open the resx file, next to code generation select public, select internal again, then press ctrl+s). Unfortunately it then changes the namespace - so I'll also change CustomToolNamespace in the csproj as part of this issue. Hopefully I'll have time tomorrow to find the best fix for this (and for #423) |
Hello, I have made a test project (removed everything from an project to have the error with the resource file.
|
I've made sure the Microsoft.VisualBasic reference gets added in more cases in #545 |
Should be fixed in release 8.0.2: https://github.com/icsharpcode/CodeConverter/releases/tag/8.0.2 |
Hello, It is working. Thank you |
Hello,
I have decided to make a test to convert a a small project from vb.net to c#. as I had problems I have
)tried to do a conversion of a smaller project.
I have made a simple form with one toolstrip button whose picture is in the project resource. The picture resource doesn't exist in the converted project. The picture is there but the project says that there is no [resources]. Here is a small project to reproduce the error.
WindowsApp1.zip
Resources.nl-BE.Designer.vb in my project : the file has a size of 0 and is not converted but c# want this file (so it must be created manually)
Thank you
Marc
The text was updated successfully, but these errors were encountered: