Loading...
 
Multi-Language Add-In for Visual Studio

Multi-Language Add-In for Visual Studio


Problem VS 2010 ASPnet C# (Multilang 5.0.26) - The name 'Resources' does not exist

Hi,

When I make a project in VS2010 ASPNet C# and add Multilang, the project don't compile.
The mlstring.cs shows me an error "ResMgr = Resources.MultiLang.ResourceManager;".
The App_GlobalResources\MultiLang.designer.cs is not generated. In previous version this file was always generated.

Error: The name 'Resources' does not exist in the current context

Thanks,

Solved!!

For solve it I have needed to create manually the "App_GlobalResources\MultiLang.designer.cs" with this steeps:
- doble clic over App_GlobalResources\MultiLang.resx
- in top of window opened, change 'Access Modifier' from no code generation to Public.
- save
- Now, I have the App_GlobalResources\MultiLang.designer.cs

Now, we need to do some changes in App_GlobalResources\MultiLang.designer.cs
- double clic for edit MultiLang.designer.cs
- change "namespace XXXXXXX {" for "namespace Resources {"
- global::System.CodeDom.Compiler.GeneratedCodeAttribute(%22System.Resources.Tools.StronglyTypedResourceBuilder%22, %224.0.0.0%22)
for global::System.CodeDom.Compiler.GeneratedCodeAttribute(%22Microsoft.VisualStudio.Web.Application.StronglyTypedResourceProxyBuilder%22, %2210.0.0.0%22)
- change

global
System.Resources.ResourceManager temp = new global
System.Resources.ResourceManager("XXXXXXXXXX.MultiLang", typeof(MultiLang).Assembly);

for

global
System.Resources.ResourceManager temp = new global
System.Resources.ResourceManager("Resources.MultiLang", global::System.Reflection.Assembly.Load("App_GlobalResources"));


This works for me.

> Hi,
>
> When I make a project in VS2010 ASPNet C# and add Multilang, the project don't compile.
> The mlstring.cs shows me an error "ResMgr = Resources.MultiLang.ResourceManager;".
> The App_GlobalResources\MultiLang.designer.cs is not generated. In previous version this file was always generated.
>
> Error: The name 'Resources' does not exist in the current context
>
> Thanks,