sharing Vb.net form on 2 projects?!
I want to create a test and live version of a project, and am planning to use the OneClick Deployment....
Currentlly I have the test version, how do I create a share to this project (so basically the live version is the exact same as the test version)
I have tried added existing items, but this creates a copy of the form..I dont want this-if I make a change in test I want it 2 automatically do the change on live version to?????
Thank you
Re: sharing Vb.net form on 2 projects?!
One way would be to put the form in its own class library, and reference it from each application. But usually I don't create seperate applications for test and production. Usually I'll add configurable data to the form or config file, to run in a test or a production environment.
Re: sharing Vb.net form on 2 projects?!
Quote:
Originally Posted by pame1la
I have tried added existing items, but this creates a copy of the form..I dont want this-if I make a change in test I want it 2 automatically do the change on live version to?????
Doesn't this defeat the purpose of having two separate environments. If you make a change in test, and it blows up, so what? No one will ever know that but you. But, if production get automatically updated everytime you make a change in test, you run the risk of rolling out faulty code to your users.
You should ALWAYS have to make the change in both, but not in production until it actually works in test.