I am porting some code from .NET 3.5 - 4.5. Inside of my assembly, I have some code that reads the resource from the currently executing assembly. However, GetExecutingAssembly()
isn't a method on the Assembly
type in DNX core 5.0.
var xsdStream = Assembly.GetExecutingAssembly().GetManifestResourceStream(xsdPath);
What is the equivalent of Assembly.GetExecutingAssembly()
in DNX core 5.0? Or if I need a namespace to get that method back (an extension method perhaps?), what is the namespace?
typeof(<a type in that assembly>).GetTypeInfo().Assembly
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With