|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
app.config (for a dll) not getting added to setup projectI have several dlls that have app.config files tied to them. When
adding their primary output to a Setup project everything works fine, but only the app.config for the .exe gets added to the Setup project automatically. Is there any way to get the app.configs for the dlls added to the Setup without manually doing "Add File"? Thanks for the assistance. Oh, this is a windows service application and I'm using Visual Studio 2005 Prof / .Net 2.0 AFAIK you cannot have .config files for class libraries
if you need them then they read config values at runtime from app.exe.config file. this is why VS 2005 add only app.config for exe's I hope this helps Galin Iliev[MCSD.NET] www.galcho.com MJB wrote: Show quoteHide quote > I have several dlls that have app.config files tied to them. When > adding their primary output to a Setup project everything works fine, > but only the app.config for the .exe gets added to the Setup project > automatically. Is there any way to get the app.configs for the dlls > added to the Setup without manually doing "Add File"? Thanks for the > assistance. > > Oh, this is a windows service application and I'm using Visual Studio > 2005 Prof / .Net 2.0 Actually that was true for .Net 1.x, but with .Net 2.0 / VS 2005 you can
have app.configs for .DLLs and/or .EXEs - basically an app.config per project. Just right-click a project and click "properties". When you see the properties screen select "settings" - this is where you would create an app.config for any project. It works well too in debug mode. The problem arises when I try to get all of my app.configs to get bundled up with my setup. Any help would be appreciated. Thanks Galcho[MCSD.NET] wrote: Show quoteHide quote > AFAIK you cannot have .config files for class libraries > if you need them then they read config values at runtime from > app.exe.config file. > > this is why VS 2005 add only app.config for exe's > > I hope this helps > Galin Iliev[MCSD.NET] > www.galcho.com > > > > MJB wrote: >> I have several dlls that have app.config files tied to them. When >> adding their primary output to a Setup project everything works fine, >> but only the app.config for the .exe gets added to the Setup project >> automatically. Is there any way to get the app.configs for the dlls >> added to the Setup without manually doing "Add File"? Thanks for the >> assistance. >> >> Oh, this is a windows service application and I'm using Visual Studio >> 2005 Prof / .Net 2.0 >
Why Me? (Instead of Form1)
How do I increment a byte with out casting? Capturing mouse events (Mouse up and down on the desktop) Loading CrystalReports.rpt, I Am Asked To Enter Login ID And Password DAAB problem most natural behavior on mouse wheel Cancel Constructor (Me = Nothing) Threading in .Net... Parent child binding question RichTextBox in Vs2005 Vb.Net shows unformatted RTF |
|||||||||||||||||||||||