c# - How do you reference the executing assembly in DNX Core 5.0 (ASP.NET 5)? -
i porting code .net 3.5 - 4.5. inside of assembly, have code reads resource executing assembly. however, getexecutingassembly()
isn't method on assembly
type in dnx core 5.0.
var xsdstream = assembly.getexecutingassembly().getmanifestresourcestream(xsdpath);
what equivalent of assembly.getexecutingassembly()
in dnx core 5.0? or if need namespace method (an extension method perhaps?), namespace?
typeof(<a type in assembly>).gettypeinfo().assembly
Comments
Post a Comment