Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

Controlling compiler output, possible?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andreas - 14 Mar 2008 15:25 GMT
Hi

When creating a windows application you get a specific file and folder
structure when you compilte your code. I was wondering what sort of control
(perhaps not using VS.NET but other tools and command line) I have to
influence the way the output is made? At the moment I would get something
like this

App
 bin
   Release (contains .exe file & .dll files)
 Images
 Resources

Would it be possible to get the output to

App
 Images
 Resources
 .exe and .dll files

?? If so, then how would it be solved with files pathes? Atm you have to use
something like Path.Combine(Environment.CurrentDirectory, "../../Resources")
to step up in the folder hierarchy to get from your exe to your files..
would be much nicer if I could use root relative paths such as
Path.Combine(Environment.CurrentDirectory, "/Resources")

Then a bit more advanced.I think I've seen this in an article before but is
it possible to compile all the dll files into my exe file? So I only have

App
 Images
 Resources
 myapplication.exe

instead of

App
 Images
 Resources
 myapplication.exe
 somedll.dll
 someotherdll.dll
 yetanotherdll.dll

???

Thanks!
Lasse Vågsæther Karlsen - 14 Mar 2008 18:50 GMT
> Hi
>
[quoted text clipped - 44 lines]
>
> Thanks!

When you say "resources" and "../../Resources", are you accessing files
in your project from your exe files instead of embedding them into the
exe or am I misunderstanding what you're saying?

To control where the files are output you can check the project properties.

As for combining all the files into one exe file, you probably need one
of the 3rd party linkers to do that, but I really don't know.

Signature

Lasse Vågsæther Karlsen
mailto:lasse@vkarlsen.no
http://presentationmode.blogspot.com/
PGP KeyID: 0xBCDEA2E3


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.