Click here to Skip to main content
15,917,793 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

This is the scenario.

1) I have a computer (A) that has Visual Studio .Net and a Computer(B) that doesn't have Studio but had .NET framework installed.
2) On Computer A : I developed a form which transfer data from Db1.table1 to Db2.Table2. Compiled it and had executable EXE1.
3) This EXE1 is running fine on Computer B as expected.

My problem is:
1) If want to (small)change the code for a Field name change in the database, i need to come back to ComputerA,change the code,compile and make EXE and deploy it on ComputerB.

How can i avoid to bring the code to Computer A for visual studio to update it. Can't i make use of .VB file code or other files to change the field name on Computer B it self and make use of VBC (Command line compiler) to generate EXE on Computer B itself.

Please advice the possible solutions for my problem


Thanks,
Kumar
Posted
Comments
OriginalGriff 4-Dec-10 12:12pm    
Answer updated

You could, but wouldn't it be simpler to have a command line parameter to you VB program that decided which names to change? Then you wouldn't have to compile anything, just run the same, tested software with new parameters.

"Yes.It would be best solution if i have one or two or any other expected changes. I explained the problem with the example, change in field name. I have lot of other changes to do in lot of cases, changing msgbox text, while loop counter changes,timer control seconds changes etc....
Please advice the way to update make use of the code and update the code without visual studio and compile with VBC or CSC
THanks
"

If you really want to do this (and I would try to avoid it, who knows what your users will manage to ruin if they start playing with the source code) then look at MSDN: Building from the Command Line (Visual Basic)[^] which will guide you through the process.

You may find that VBC is not included with the .NET framework, just VS. CSC (C# equivalent) is though, so you may have to use that instead.
 
Share this answer
 
v2
Comments
kumar1248 4-Dec-10 11:59am    
Yes.It would be best solution if i have one or two or any other expected changes. I explained the problem with the example, change in field name. I have lot of other changes to do in lot of cases, changing msgbox text, while loop counter changes,timer control seconds changes etc....
Please advice the way to update make use of the code and update the code without visual studio and compile with VBC or CSC
THanks
Hi Kumar,

you might consider reading up on "Click once" deployment:

http://msdn.microsoft.com/en-us/library/t71a733d(VS.80).aspx


This will enable your clients to automagically update from either a
webserver or a LAN share. You'd still have to do your changes on
computer A, but after the changes are published all computers
that installed the program will be able to update themselfes.

It may not fit your special needs, but it's definitely worth a look.


Cheers


Manfred
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900