I have a WebApplication which contains reference to WCF services.
While building using Visual Studio 2010, Build fails without any error or warning. However building the .csproj
using MsBuild
is successful.
Can't figure out what should I try in Visual Studio, to resolve / diagnose the issue. Can you please help out?
EDIT:
I find out that the build has been failing,
From text displayed in status Bar.
From output window :
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========
This happened to me after adding a new page to an asp.net project.
What I did was exclude the page, get it to build again successfully.
Then I added back the page with all the code commented out. Success.
Then I uncommented the code bit by bit and then it all worked.
Go to output window , search for 'error' in output window, TADA
Firstly "Clean the Solution" , then Rebuild soln.
If won't work close the Solution and restart the solution.
Try these things, hope definitely works.
A different way to reproduce this symptom:
I added a new project to an existing solution and the build output reported errors like "the type or namespace name X could not be found..." but no errors were presented in the error list.
The classes I referred to were in other projects (that were referenced) in the same solution.
It turned out that I by mistake had selected an earlier version of .net in the new project. Once I changed to the same version as the other projects, everything built without any errors.
I faced the same problem! Just delete bin folder and restart your
VS
. That's all. tested inVS 2013
.Try building your project from the Powershell command line:
Then you can see any errors in the command line output even if Visual Studio is playing hide and seek with build error messages.