Hi all,
I have old class library project that was created in VS 2008. This library was SQLCLR library, and it contained SQL stuff (SQLCLR functions, procedures, UDT) and Resource.resx file, that is marked as "Embedded resource". Everything was tested, and worked well.
Now I installed VS 2012 and tried to compile and deploy this project. VS 2012 upgrades this project to Database project (with project file .sqlproj). But files Resource.resx and corresponding Resource.Designer.cs are not combined in VS IDE, and properties of Resource.resx doesn't include such custom actions as "Embedded Resource". Then the project is compiled without issues, but in runtime I can't get embedded resource. The following line:
return Resource.EmbeddedValue;
throws the exception with description
"Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "MyNamespace.Resource.resources" was correctly embedded or linked into assembly "SQLLibrary" at compile time, or that all the satellite assemblies required are loadable and fully signed."
If I copy resource files to another project, it works and return embedded value.
So, does the database project allow work with embedded resources?
Regards,
Illya Reznykov