Thursday, 22 August 2013

VS2003 Build on Command Line Throws Errors

VS2003 Build on Command Line Throws Errors

I am trying to do an automated build using the command line for Visual
Studio 2003. I have the following codes:
call "C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Tools\vsvars32.bat"
Devenv /rebuild debug /project Project1 "C:\Builds\MyApp\Sample.sln"
Devenv /rebuild debug /project Project2 "C:\Builds\MyApp\Sample.sln"
Devenv /rebuild debug /project Project3 "C:\Builds\MyApp\Sample.sln"
In my script above, I build each project individually (like I saw in a
tutorial on the internet). But each time I try to build, it throws me a
lot of errors about the Microsoft Namespaces not being found. Below are
sample error messages I get on the build:
Namespace or type 'Data' for the Imports
'Microsoft.Practices.EnterpriseLibrary.Data' cannot be found.
Namespace or type 'Sql' for the Imports
'Microsoft.Practices.EnterpriseLibrary.Data.Sql' cannot be found.
Namespace or type 'Logging' for the Imports
'Microsoft.Practices.EnterpriseLibrary.Logging' cannot be found.
Satellite assemblies could not be built because the main project
output is missing.
I have tried another method to build but this time it's the entire
solution but still it gives me the same errors.
call "C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Tools\vsvars32.bat"
Devenv C:\Builds\MyApp\Sample.sln /rebuild "Debug"
Can somebody please tell me what i'm missing? I have over 50 projects in a
single solution and it would really help me big time to create an
automated build for this.
Thanks a lot! Cheers!

No comments:

Post a Comment