.mresource attribute

  • Thread starter Thread starter thomson
  • Start date Start date
T

thomson

Hi all,
Can anybody give an insight to what the .mresource attribute
does in the assembly manifest.

Detail explanation also welcome

Thanks in Advance


thomson
 
Hello thomson,

The .mresource attribute indicates that the resource is a manifest resource.
These are resources that have been embedded into your assembly that you can
access via Assembly.GetManifestResourceStream or via code using the ResourceManager
class.
 
Hi Matt,
i am using srystal report 10, While i accessed the report , I
saw an error

"Unable to find the report in the manifest resources. Please build the
project, and try again"

I checked the assembly with ildasm and i saw all the reports were
listed out there as an .mresource attribute.

I searched in google about this and i came to know that in the reports
property, you have to mention the Build Action property as Embedded
resource, but it was already set there,

I dont know what might have got wrong?

What could be the reason

Regards

thomson
 
Hello thomson,

Unfortunately, Im not familiar with Crystal 10. The things that you might
check are that the report you're looking for corresponds to the default namespace
and folder structure. For example: if your project's default namespace (from
Project Properties) is MyCompany.MyProject and you have the report in a folder
called Reports, to pull it out of the assembly, you'll need to use a manifest
resource name of: MyCompany.MyProject.Reports.myReport.tmpl.

Hope this helps!
 
Back
Top