Title: <Solution> Task does not work with all VB projects

I've had a problem compiling some VB.Net projects. I debugged the source code and found it was because the VBC is being passed an invalid command line "/define:Win32 = True".See the following protion of my vbproj:

        <Config
                    Name = "Debug"
                    BaseAddress = "285212672"
                    ConfigurationOverrideFile = ""
                    DefineConstants = "Win32 = True"
                    DefineDebug = "true"
                    DefineTrace = "true"
                    DebugSymbols = "true"
                    IncrementalBuild = "true"
                    Optimize = "false"
                    OutputPath = "bin\"
                    RegisterForComInterop = "false"
                    RemoveIntegerChecks = "false"
                    TreatWarningsAsErrors = "false"
                    WarningLevel = "1"
                />

VBC does not like the spaces. Change it to  "/define:Win32=True" and the compilation works.

Thanks.Paul.



......................................................................
BUPA
.....................................................................
BUPA House, 15-19 Bloomsbury Way, London, WC1A 2BA
.....................................................................
Internet communications are not secure and therefore BUPA does
not accept legal responsibility for the contents of this message. Any
views or opinions presented are solely those of the author and do
not necessarily represent those of BUPA.
.....................................................................

Reply via email to