.NET Framework Bookmark and Share   
 index > MSBuild > VS2008, C++, Build Failed, no entries in Error List in VS IDE
 

VS2008, C++, Build Failed, no entries in Error List in VS IDE

Hi All,

I've looked all over and haven't found anything for this.

C# projects work great and as expected in terms of the VS IDE Error List output from compiler.

With C++ projects, when I have an error the build fails and I get 0 feedback on why. I only get notification of build Failed or build succeeded. Painful then to go old-style through commenting out blocks,etc,until problem is found.

Any ideas on what's going on or how to solve?

VS2008 released version on 64-bit vista. Only an issue with C++ projects. I've tried a variety of C++ projects and force simple errors with same results- Error List contains 0 Errors, 0 Warnings, 0 Messages.

TIA

Mike

adventurehi
Please open the General, Projects and Solutions, Options Dialog Box, check the "Always show Error List if build finishes with errors" and "Show Output window when build starts" and see if this can fix the issue.
Feng Chen

Note that msbuild from the command line does display the errors and messages - it's just not nearly as convenient for interactive testing as if the VS IDE Error List was working as expected.

Thanks, Mike

adventurehi
Please open the General, Projects and Solutions, Options Dialog Box, check the "Always show Error List if build finishes with errors" and "Show Output window when build starts" and see if this can fix the issue.
Feng Chen

Hi and thanks for your reply.

The checkbox for "Always show Error List if build finishes with errors" was already selected. I tried deselecting,compile,reselecting just to make sure as well.

I selected the checkbox for"Show Output window when build starts."

No change except that the output window is now shown after the build. It shows:

1>------ Rebuild All started: Project: RegTest, Configuration: Debug Win32 ------
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

but the Error List still shows 0 Errors, 0 Warnings, 0 Messages.

Running msbuild from the command line does show the list of errors,warnings,and messages correctly.

Any other ideas?

Thanks

adventurehi

This has just started happening to me as well - in my case a VB build. Both checkboxes checked as above. Code in question is a LINQ to XML query:

Dim response As XDocument = XDocument.Load(request)

Artists.DataSource = From a In response.Descendants("Artist") Select a.Element("Name").Value

Artists.DataBind()

Output window shows 2 errors:

error BC30451: Name 'From' is not declared.

error BC30205: End of statement expected

but error list is empty.

Incidentally, if I assign the LINQ query to a variable (Dim xmlquery = From...) then I get an immediate warning in the Error List window that the variable has no 'As' clause and Object is assumed. But I thought that type inference dealt with all of this? Is it possible that my VS environment is misconfigured somehow so that it is not using VB.NET 2008 (or 9)?

Jon

jstranger

I'm having the same problem in all my c++ projects. I tried the suggestions posted earlier in the thread, but they made no difference.

minesadab
I am experiencing exactly the same problem. 1 build failed, but no errors or warnings.

Erik Haverkamp
Ditto...Same thing happened to me with VB.NET web project in VS2008. Could latest MS Security patches be causing this? The only change I can think or recently from my machine (WinXP SP2). May try to roll-back to see

DaveAce

Well web project may have saved me..ran "last know good" version and accessed a new page and turned out, in my case, had a GridView OnRowCommand referencing a function that was declared "Private" vs "Public" or "Friend". Corrected by changing to Friend and no more compile error...

HTH

Dave...

DaveAce

o.k... i am having the same problem...

i can not run my solution because the "Startup Project" fails... but with no errors listes... all the other assemblies (class libs) build successfully but the startup Windows Form app fails completely.

I checked all my VS 2008 Settings and they are all set correctly... can any one shed some light on the situation?

thanks

ward0093

ward0093
try rebuilding all solution , it should work (ctrl+alt+F7),
if u have small project and this didn`t work , build another one and (copy paste) the code(the final choice).
Sun.wael

Hi,

We have the same problem. Rebuilding doesn't help. We deleted everything and has an empty web setup project now. C++, VB doesn't matter because the setup is empty. I still doesn't builds. No error messages as described above.

------ Starting pre-build validation for project 'My Web Setup' ------

------ Pre-build validation for project 'My Web Setup' completed ------

------ Rebuild All started: Project: My Web Setup, Configuration: Debug ------

Building file 'C:\Documents and Settings\jb4583\My Documents\Visual Studio 2008\Projects\My Web Setup\Debug\My setup.msi'...

========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

MattiasP

Hi,

I encountered this problem today.

Thesteps I did in order toto solve the problem are:

1. find the problematic project (in your solution) by building a new solution

2. removeref for "System.Data.Linq" from this project (since I do not use it).

3. open the project file i.e "BL.csproj" with notepad and remove the following lines:

<ItemGroup>
<Service Include="{3259AA49-8AA1-44D3-9025-A0B520596A8C}" />
</ItemGroup>

4. save the changes. close the solution and open it again

5. rebuild the solution.

6. that's it. finally working.

I do not know if you can do these steps and continue working with Linq, I did not test this case.

Hope it helps.

Meital

meitalge
I'm having this same problem with web projects and C#. Seems to be sporadic. Sometimes the site works, other times it just fails. I've tried everything suggested everywhere and nothing works.
DFX891212
Same problem. I attempted the tutorial entitled Walkthrough: Deploying a Windows-based Applicationlocated here:

http://msdn.microsoft.com/en-us/library/k3bb4tfd.aspx

3rd Section, Step 5, gotthese results:

------ Build started: Project: My Notepad, Configuration: Debug Any CPU ------
My Notepad -> D:\Visual Studio 2008\Projects\samples\My Notepad\My Notepad\bin\Debug\My Notepad.exe
------ Starting pre-build validation for project 'My Notepad Installer' ------
------ Pre-build validation for project 'My Notepad Installer' completed ------
------ Build started: Project: My Notepad Installer, Configuration: Debug ------
Building file 'D:\Visual Studio 2008\Projects\samples\My Notepad\My Notepad Installer\Debug\My Notepad Installer.msi'...
Packaging file 'My Notepad.exe'...
========== Build: 1 succeeded or up-to-date, 1 failed, 0 skipped ==========

Unfortunately, no indication of what went wrong.
  • Edited byvab3 Thursday, June 26, 2008 1:57 AMfound a better example.
  •  
vab3
Solved this for now. I found out that the default directory for templates, normally, d:\Visual Studio 2008\Templates, was set to d:\Visual Studio 2005\Templates.

vab3
Solved.
Even though the build fails an MSI package is still beeing created. We have for the last month been installing these packages in different environments and they works lika a charm.
MattiasP
I still have this problem.
I'm using VS2008TS SP1 on Vista SP1. I create a new website, and hit F5 right away and I get a build failed error, but not errors listed.

This happens to ALL my old and new web projects and drives me nuts ! Websites run just fine if I say OK to continue.

None of the above solutions work or applies. When browsing the web there seems to be a vast number of reasons why this can happen, but no good way to figure out what the problem is. Grrrrrrrrrrrrrrrrr I miss good old fast VS2005.
Morten Nielsen
I have been experiencing this same problem for the past six months on my C# program using VS 2008. The solution without the Setup project could be built successfully. However, if we include the setup project, the build will fail with no error. So the failure occurs inside the Setup project in my case.

Fortunately, the msi emitted from the Setup project is good. Because of this, we kind of ignored this build failure, which by itself is very annoying.

I would like to know the solution or any workaround, if there is any.

WillieLi
Just wanted to throw my two cents in and say that I'm having this problem as well.

A working MSI is still created from my setup project, but that message is making me worry that something about my MSI file isn't being built properly.
three_sixteen
I'm having this problem as well - any fixes other than what has been described here? I have the same issue as the original poster: "VS2008 released version on 64-bit vista. Only an issue with C++ projects". I don't see any post saying that he had the issue resolved.

Using the command prompt (http://msdn.microsoft.com/en-us/library/ms235639.aspx) does list the errors, however using this is very inconvenient. Any help would be greatly appreciated.
mattingly23
I have experienced this problem multiple times with VB projects in VS 2008. In all cases, one or more assemblies needed to be added to the References list. Typically it is one of the standard ones, so I just add System.Data, System.Deployment, System.Drawing, System.Windows.Forms, System.Xml back to the list, build, then remove any unused references.
talkingscott
I've tried to add the basic reference to the project, rebuild, clean first then rebuilt, but I still got the same problem:
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========
Oh ya, I've checked the path to the template folder, but it seems to be correct, it is already typed 2008, not 2005. Do we have a KB Fix for this? Or maybe we should install the SP1 update? Yesterday, I think I didn't get this kind of error. But now itbecomeslike this, I couldn't remember I'm doing something wrong to the project. I've even tried to uninstall the Visual Studio, then reinstall, but nothing good happened, I still get the error. Then I tried to make new form project, without anything on it,after that Iadd a new setup project, but it's all the same. HEEEELP ...
Indra PR

You can use google to search for other answers

Custom Search

More Threads

• Get file name components of file path contained within HintPath (or any metadata)
• Custom Task deploy reference problem
• How do you access the elements of RecursiveDir?
• How to build C# 2003 Web Applications through MSBuild?
• "Build All" While Taking Advantage of Dependency Analysis and BuildInParallel
• Overwriting an Item?
• Custom BuildStep Status not updating
• Problem with MSBuild 2005 (2.0.50727.832) and Copy Local=True Project References
• Stop builds compilation when one of his references is missed from previous compilation
• System Error &Hc0000005&