Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 405
  • Last Modified:

How can I automatically clean out my .vbproj file?

I just had a bad experience. A user of my vb project showed me an error message:
“Error: Logon failed.”. I  had seen this message before, and it was caused by having Crystal Reports which used xml files that were at a different path location in deployment than they had been in development, or xsd files that I failed to include in my distribution.
By process of adding files from a “working” folder to a “broken” folder I finally determined that this new error was caused by an xsd file that I had created, and later deleted from my project. Using a grep tool I discovered that this xsd file was still in my project (.vbproj) file.
My question is how can I automatically clean out my vbproj file to make sure something like this does not happen again?
0
wsfindlater
Asked:
wsfindlater
  • 3
1 Solution
 
_TAD_Commented:


one of two methods

if you compile your project by using command line compiles then you need to use the \clean parameter


If you use visual studio.net you need to RE-build your project and your solution in release mode just before putting it into production.

RE-build, cleans your project and then builds it.
0
 
_TAD_Commented:


Here's a link that describes the processes more effectively.
http://www.devx.com/cplus/Article/9766/0/page/2
0
 
wsfindlaterAuthor Commented:
Thanks TAD,
Turns out that my problem was that I was developing code on a remote faster computer, then copying it back to my desk computer when I was ready to put it in configuration control as a build. Truble was that I was using my old project file.
0
 
_TAD_Commented:


Thanks for the update!  I'm glad to hear things are well.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now