GetManifestResourceStream no more working in 2.0 ?

W

WT

Hello,

My 1.1 web site was using GetManifestResourceStream to get strategic .js
files embedded as resources in the site assembly, but now it is no more
allowed to embed resources by specifying a build process of embedding.

,Now we have the App_GlobalResources so how to use code like this with it :

Stream st =
Assembly.GetExecutingAssembly().GetManifestResourceStream(resourceID);

Thanks for help

CS.
 
J

Jon Skeet [C# MVP]

WT said:
My 1.1 web site was using GetManifestResourceStream to get strategic .js
files embedded as resources in the site assembly, but now it is no more
allowed to embed resources by specifying a build process of embedding.

,Now we have the App_GlobalResources so how to use code like this with it :

Stream st =
Assembly.GetExecutingAssembly().GetManifestResourceStream(resourceID);

I expect that will still work - but the build process may have embedded
it as a different resource name. Open up (eg with ildasm) assemblies
built with both versions and see.

Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top