tolvor
asked on
Visual Basic build error
My Visual Basic project is generating an error, not in the code itself, but in the project. When I enable "MSBuild project build verbosity" to "Detailed" I can see a large listing, with this section below that failed. There are no errors within the VBCode. The problem is how do I isolate which of the modules below is the actual cause of the build error?
Thanks
C:\Program Files (x86)\MSBuild\12.0\bin\Vbc .exe /noconfig /imports:Microsoft.VisualB asic,Syste m,System.C ollections ,System.Co llections. Generic,Sy stem.Data, System.Dra wing,Syste m.Diagnost ics,System .Windows.F orms,Syste m.Linq,Sys tem.Xml.Li nq /optioncompare:Binary /optionexplicit+ /optionstrict:custom /nowarn:42016,41999,42017, 42018,4201 9,42032,42 036,42020, 42021,4202 2 /optioninfer+ /nostdlib /platform:x86 /rootnamespace:PayMonitor /sdkpath:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Frame work\.NETF ramework\v 4.5" /highentropyva+ /doc:obj\x86\Release\PayMo nitor.xml /define:"CONFIG=\"Release\ ",TRACE=-1 ,_MyType=\ "WindowsFo rms\",PLAT FORM=\"x86 \"" /link:"C:\Program Files (x86)\Microsoft.NET\Primar y Interop Assemblies\Microsoft.mshtm l.dll",obj \x86\Relea se\Interop .SHDocVw.d ll /reference:"C:\Program Files (x86)\ComponentOne\Studio for WinForms\bin\v2.0\C1.Win.C 1Input.2.d ll","C:\Pr ogram Files (x86)\ComponentOne\Studio for WinForms\bin\v2.0\C1.Win.C 1List.2.dl l",C:\Chil Kat\Chilka tDotNet45. dll,"C:\Pr ogram Files (x86)\DevExpress 14.2\Components\Bin\Framew ork\DevExp ress.Data. v14.2.dll" ,"C:\Progr am Files (x86)\DevExpress 14.2\Components\Bin\Framew ork\DevExp ress.Print ing.v14.2. Core.dll", "C:\Progra m Files (x86)\DevExpress 14.2\Components\Bin\Framew ork\DevExp ress.Spark line.v14.2 .Core.dll" ,"C:\Progr am Files (x86)\DevExpress 14.2\Components\Bin\Framew ork\DevExp ress.Utils .v14.2.dll ","C:\Prog ram Files (x86)\DevExpress 14.2\Components\Bin\Framew ork\DevExp ress.XtraE ditors.v14 .2.dll","C :\Users\Dr SolveIT\Do cuments\Vi sual Studio 2013\Projects\GeckoFx\Geck oFx\Geckof x-Core.dll ","C:\User s\DrSolveI T\Document s\Visual Studio 2013\Projects\GeckoFx\Geck oFx\Geckof x-Winforms .dll","C:\ Program Files (x86)\MySQL\Connector NET 6.8.3\Assemblies\v4.5\MySq l.Data.dll ",E:\PayMo nitor\bin\ Release\So urceGrid.d ll,"C:\Pro gram Files (x86)\Reference Assemblies\Microsoft\Frame work\.NETF ramework\v 4.5\System .Component Model.Data Annotation s.dll","C: \Program Files (x86)\Reference Assemblies\Microsoft\Frame work\.NETF ramework\v 4.5\System .Configura tion.dll", "C:\Progra m Files (x86)\Reference Assemblies\Microsoft\Frame work\.NETF ramework\v 4.5\System .Core.dll" ,"C:\Progr am Files (x86)\Reference Assemblies\Microsoft\Frame work\.NETF ramework\v 4.5\System .Data.Data SetExtensi ons.dll"," C:\Program Files (x86)\Reference Assemblies\Microsoft\Frame work\.NETF ramework\v 4.5\System .Data.dll" ,"C:\Progr am Files (x86)\Reference Assemblies\Microsoft\Frame work\.NETF ramework\v 4.5\System .Data.Linq .dll","C:\ Program Files (x86)\Reference Assemblies\Microsoft\Frame work\.NETF ramework\v 4.5\System .Deploymen t.dll","C: \Program Files (x86)\Reference Assemblies\Microsoft\Frame work\.NETF ramework\v 4.5\System .Design.dl l","C:\Pro gram Files (x86)\Reference Assemblies\Microsoft\Frame work\.NETF ramework\v 4.5\System .dll","C:\ Program Files (x86)\Reference Assemblies\Microsoft\Frame work\.NETF ramework\v 4.5\System .Drawing.d ll","C:\Pr ogram Files (x86)\Reference Assemblies\Microsoft\Frame work\.NETF ramework\v 4.5\System .Security. dll","C:\P rogram Files (x86)\Reference Assemblies\Microsoft\Frame work\.NETF ramework\v 4.5\System .Windows.F orms.dll", "C:\Progra m Files (x86)\Reference Assemblies\Microsoft\Frame work\.NETF ramework\v 4.5\System .Xml.dll", "C:\Progra m Files (x86)\Reference Assemblies\Microsoft\Frame work\.NETF ramework\v 4.5\System .Xml.Linq. dll" /main:PayMonitor.My.MyAppl ication /debug:pdbonly /filealign:512 /optimize+ /out:obj\x86\Release\PayMo nitor.exe /subsystemversion:6.00 /resource:obj\x86\Release\ PayMonitor .frmMain.r esources /resource:obj\x86\Release\ PayMonitor .frmOption s.resource s /resource:obj\x86\Release\ PayMonitor .Resources .resources /resource:obj\x86\Release\ PayMonitor .exe.licen ses /target:winexe /win32manifest:"My Project\app.manifest" ApplicationEvents.vb PayrollItem.vb BaseSite.vb PayderTimeTracking.vb PayTimeSync.vb Component1.Designer.vb Component1.vb frmMain.Designer.vb frmMain.vb frmOptions.Designer.vb frmOptions.vb FridayPayDay.vb "My Project\AssemblyInfo.vb" "My Project\Application.Design er.vb" "My Project\Resources.Designer .vb" "My Project\Settings.Designer. vb" Parse.vb Pay.vb "C:\Users\DrSolveIT\AppDat a\Local\Te mp\.NETFra mework,Ver sion=v4.5. AssemblyAt tributes.v b"
Done executing task "Vbc" -- FAILED.
Thanks
C:\Program Files (x86)\MSBuild\12.0\bin\Vbc
Done executing task "Vbc" -- FAILED.
ASKER
"There were build errors. Would you like to continue and run the last successful build?" Selecting "yes" gives "Visual Studio cannot start debugging because the debug target 'E:\PennySolver\bin\Debug\ PayMonitor .exe' is missing. Please build the project and retry, or set the OutputPath and AssemblyName properties appropriately to point at the correct location for the target assembly."
However the Error List does not show any errors in code. Researching this shows when this happens the issue is in the builder itself. (Ref https://github.com/versionone/VersionOne.Client.VisualStudio/issues/10 (recommends deleting a registry key) and this http://www.dirkstrauss.com/visual-studio-2013-2/visual-studio-2013-build-fails (recommends deleting .suo files). I tried both and still get the error.
The only futher item I can provide is the full build output listing, but it doesn't really provide much info, the part of interest is where it is failing.
One further note... this program was working yesterday and I added one control to the project, a listbox, and the build failed. I removed the listbox, still failed. Went to the "Build" menu and selected "Clean Solution". Still failed. Rebooted. No help. Tried on a second computer. Still no.
Any suggestions would be appreciated.
However the Error List does not show any errors in code. Researching this shows when this happens the issue is in the builder itself. (Ref https://github.com/versionone/VersionOne.Client.VisualStudio/issues/10 (recommends deleting a registry key) and this http://www.dirkstrauss.com/visual-studio-2013-2/visual-studio-2013-build-fails (recommends deleting .suo files). I tried both and still get the error.
The only futher item I can provide is the full build output listing, but it doesn't really provide much info, the part of interest is where it is failing.
One further note... this program was working yesterday and I added one control to the project, a listbox, and the build failed. I removed the listbox, still failed. Went to the "Build" menu and selected "Clean Solution". Still failed. Rebooted. No help. Tried on a second computer. Still no.
Any suggestions would be appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
"There were build errors. Would you like to continue and run the last successful build?"this message doesn't come from build but when you try to start a program where the last build has failed. because of that the next message that there is no exe found is a logical consequence since before the build which probably had failed the "old" executable was deleted.
did i miss the statement from you that you tried to make a rebuild of your program? best would be a 'rebuild all' if that is available? if you do a rebuild, you must get any error message different to those already posted. if they are strange nevertheless (for example complaining about missing modules or system resources) you may reboot and try again.
Sara
This is the last place you will look, because you first need to have an idea of where you should be looking in that mess, which is impossible without first knowing the error message, and then, maybe, by looking at a less verbose output that is usually enough to understand what is happening.
So, what is the error message?