Why am I getting App_GlobalResources assembly generated? (Error = CS0433)

前端 未结 3 932
盖世英雄少女心
盖世英雄少女心 2020-12-21 15:23

I\'m working on a ASP.NET MVC2 project, for which I have configured the localisation as follows ...


I have a separate Resources assembly, containing all my resx files
3条回答
  •  再見小時候
    2020-12-21 16:02

    Although I do not know how to stop App_GlobalResources automatically generationg assemblies in Temporary ASP.NET files. I did figure out how to get rid of those annoying warnings.

    As the warning says:

    Compiler Error Message: CS0433: The type 'Resources.XXXX' exists in both 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\6c657d01\aaca70ae\assembly\dl3\a36dac65\78c87110_3724cb01\Resources.DLL' and 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\6c657d01\aaca70ae\App_GlobalResources.g6fehiio.dll'

    The type Resources.XXXX exists in both assemblies. Change your Custom Tool Namespace to be something other than "Resources" and these warnings will dissappear.

提交回复
热议问题