TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Minu Mathews
NA
2
687
Referencing an embedded resource
Jul 31 2019 8:24 PM
HI all,
I am new to c# so excuse my ignorance. I have compliled my exe and it is working correctly, now I wan tto combine my refernced DLL's into the exe. I have found Fody Costura and Ilmerge to do this for me, my problem is once I do this and run my application I get errors about file not being found, I think it is because I have static path refernces like so:
string directory = Path.Combine(assemblyDirectory, "lib", "NetworkConnections");
using (AssemblyCatalog assemblyCatalog = new AssemblyCatalog(typeof(NetworkConnectionsManager).Assembly))
using (DirectoryCatalog directoryCatalog = new DirectoryCatalog(directory))
using (AggregateCatalog aggregateCatalog = new AggregateCatalog(assemblyCatalog, directoryCatalog))
How could I change this code to work with an embedded file?
Reply
Answers (
2
)
How to enable search in GridView Without Binding it again
display decimal upto two points after retrieving frm db