473,378 Members | 1,067 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Using a macro OnBuild to copy files to \Bin directory

I need to develop a macro that upon building a project in VB.NET will
copy a configuration file from the project directory to the \Bin
directory. Based upon the active build configuration, the macro will
determine the correct configuration file to copy and the correct \Bin
directory to copy it to. Has anyone else done anything like this?

Thanks.

Matt
Nov 20 '05 #1
2 1462
* mw***@topflightconcepts.com (Matthew) scripsit:
I need to develop a macro that upon building a project in VB.NET will
copy a configuration file from the project directory to the \Bin
directory. Based upon the active build configuration, the macro will
determine the correct configuration file to copy and the correct \Bin
directory to copy it to. Has anyone else done anything like this?


Isn't that done automatically for 'App.config' in VS.NET 2003? Or are
you using custom configuration files?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
Yes, this is based on using different config files based on the build
configuration selected.
hi***************@gmx.at (Herfried K. Wagner [MVP]) wrote in message news:<bv************@ID-208219.news.uni-berlin.de>...
* mw***@topflightconcepts.com (Matthew) scripsit:
I need to develop a macro that upon building a project in VB.NET will
copy a configuration file from the project directory to the \Bin
directory. Based upon the active build configuration, the macro will
determine the correct configuration file to copy and the correct \Bin
directory to copy it to. Has anyone else done anything like this?


Isn't that done automatically for 'App.config' in VS.NET 2003? Or are
you using custom configuration files?

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Random Person | last post by:
Does anyone know how to use VBA to relink tables between two MS Access databases? We have two databases, one with VBA code and the other with data tables. The tables are referenced by linked...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
5
by: genojoe | last post by:
I have 2 computers (one with VS NET 1.1 and one with Framework 1.1 only) I have an application with a single form and a single line of user code. The line of code is: Dim adoConn As New...
5
by: Geoff | last post by:
My apologies for asking something so basic, I just want to avoid unpleasant surprises. I am using a web service developed by someone else on a remote server. In my development environment I used...
1
by: Screenbert | last post by:
After finding nothing anywhere in google I am posting this so everyone can benefit by it. The formating is not pretty since I copied it from my word document, but you should benefit by it. ...
0
by: screenbert | last post by:
Managing DHCP Servers using C# They said it was impossible. It couldn't be done. But you can in fact manage DHCP servers using C#. This includes creating and deleting Scopes, SuperScopes,...
10
true911m
by: true911m | last post by:
This is a simple walkthrough to get PyInstaller up and running. I decided to give PI a try, because it claims to be more selective about what it bundles into its executable files by default, and...
4
true911m
by: true911m | last post by:
Here's a little walkthrough to get py2exe up and running. I'm not an expert, so I can't help much with any problems you might have. This is what worked for me. The result here will be to convert...
1
by: dkmarni | last post by:
Hi, I am trying to do this perl script, but not able to complete it successfully. Here is the description what the script has to do.. Accept two and only two command line arguments. Again,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.