Migrate project from .net4.0 to .net 4.8

Peter Volz 1,295 Reputation points
2023-08-05T02:44:10.99+00:00

Hello all

I just upgraded my .net fw project from .net 4.0 to .net 4.8 to see how things are changed and play a bit.

A lot of errors showed up immediately, anyone knows where to go? :(

Error BC31429 'resourceMan' is ambiguous because multiple kinds of members with this name exist in module 'Resources'. Resources1.Designer.vb

Error BC31429 'resourceCulture' is ambiguous because multiple kinds of members with this name exist in module 'Resources'. Resources1.Designer.vb

res

And

    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0"),  _
     Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(),  _
     Global.Microsoft.VisualBasic.HideModuleNameAttribute()>  _

Error BC30663 Attribute 'GeneratedCodeAttribute' cannot be applied multiple times.Resources1.Designer.vb

Thanks in advance :)

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,831 questions
{count} votes

1 answer

Sort by: Most helpful
  1. RLWA32 48,236 Reputation points
    2023-08-05T14:25:28.5066667+00:00

    Take a look at the .Net Framework reference source at https://referencesource.microsoft.com/. This may help you resolve the ambiguities. For example, a search for fields named "resourceMan" yielded the following -

    resourceMan

    and for "resourceCulture"

    resourceCulture

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.