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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -