lundi 27 juin 2016

How to get files in resources folder using system.reflection's GetManifectResourceNames

I have migrated my application from VS2008 to VS2015.I have a requirement to fetch resources which are there in my Resources folder in the application.

var assembly = System.Reflection.Assembly.GetExecutingAssembly();
string[] names = assembly.GetManifestResourceNames();

Above code returned all the Xls files in Resources folder in my application Before migration.Now its not returning the same files.Do i need to configure anything.





Aucun commentaire:

Enregistrer un commentaire