Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating an executable
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01338423
Message ID:
01338428
Vues:
19
>The process goes to a database to get information, which made me think how does this application connect to the database. So my question is, do I create a config file (e.g. app.config) and if so how do I make the console app use it. Or, should I create a different type of application (not Console) using some other MM.NET (or other) type of application?
>

You can use/create an app.config for console applications (they're just not added to the project by default). Right-click on the project and select Add > New Item. Then select Application Configuration File. You probably can just take the default MM.NET config file it creates and cut and paste the entire thing into this new file. Or just copy the app.config from another MM.NET project into this project, and then add it instead.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform