I'm running an MVC project which references a class library. The class library contains a javascript file which build action is set to "Embedded resource".
What actually happens to the file? I can't seem to get it using the ResourceManager because I have no idea of the namespace it puts the resource in.
My class library file structure:
- /Project
- /Project/Web
- /Project/Web/Js
- /Project/Web/Js/Test.js << embedded resource
Code:
var t = this.GetType().Assembly;
var r = new System.Resources.ResourceManager("Namespace", t); //What is the namespace here?
var js = r.GetObject("Test.js");