Assembly resources FileNotFoundException in project upgraded to VS 2010 framework 4.0

前端 未结 2 1964
孤街浪徒
孤街浪徒 2020-12-16 22:01

I have upgraded a C# WinForms application from Visual C# 2008 (framework 3.5) to 2010 (framework 4.0) and I\'m getting runtime errors.

The application loads assembli

2条回答
  •  星月不相逢
    2020-12-16 22:26

    SOLUTION FOUND

    I found out that the problem was related to how the dotnet framework tried to find localized resources and after I added the following line to AssemblyInfo.cs in my assemblies it started working again.

    [assembly: NeutralResourcesLanguageAttribute("sv-SE", UltimateResourceFallbackLocation.MainAssembly)]
    

提交回复
热议问题