Rabid Penguin
Rabid Penguin

Reputation: 1104

Build fails in vs2015 with no errors

I have an ASP.NET core 1.0 project I created in Visual Studio 2015 (update 3). If I try to build the project within VS I get the following in my output window and there are no errors in the Error List:

1>------ Build started: Project: QuickStartIdentiyServer4, Configuration: Debug Any CPU ------
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

However, if I build the project using the dotnet CLI command (dotnet build) it builds and runs just fine.

UPDATE: Apparently, .net core does not work properly when running Visual Studio as Admin. You would think everything should work as Admin, I guess not... go figure.

Upvotes: 1

Views: 1482

Answers (2)

Sarel Esterhuizen
Sarel Esterhuizen

Reputation: 1688

There are simply too many reasons why this type of thing might happen. The easiest way to diagnose the problem is to change the build output verbosity under options to verbose. This might help put you on the trail:

enter image description here

With regards to this type of thing happening with .Net Core and ASP Core. I have noticed that the project.json dependencies json fragment is a bit buggy especially if you start renaming projects and changing their file system location.

If you see in the diagnostic below you know there is some dangling reference issue:

Done building target "_GetDependencyFragmentFiles" in project "<<?YOUR_CORE_PROJECT?>>.xproj" -- FAILED

Upvotes: 2

Sanket
Sanket

Reputation: 20047

May be you are not seeing build errors. Go to Error List window and change 'Show Issues generated' box from 'Build + Intellisense' to 'Build Only' and try to build again.

enter image description here

See if this helps.

Upvotes: 0

Related Questions