Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Occasional build failures in Visual Studio

$
0
0

I've had this problem for some time now. I open a solution with an application with a few referenced libraries. The first time the application project is built from clean code it takes a while but compiles just fine. Subsequent builds are hit and miss, occasionally the application project build will fail with many errors like this;

Error 156 The type or namespace name 'Bar' does not exist in the namespace 'Foo' (are you missing an assembly reference?)

Where Foo.Bar lives in one of the referenced libraries in the solution.

This happens between build attempts with no modified code whatsoever. This never happens if I choose 'Rebuid' or 'Clean' then 'Build' but this takes quite a lot longer to compile. I've tried analyzing the detailed MSBuild output but nothing obvious stood out.

The only trend is that the errors related to assemblies that are a common reference between the application project and some other library project we are also referencing, e.g.;

MyApp -> MyLibA MyApp -> MyLibB -> MyLibA

Then errors are very likely to occur for types that live in MyLibA. But then again this could be a red herring.

Anyone else experienced spontaneous build errors like this?

This happens across all development machines, virtual and physical. Visual Studio 2012 Ultimate, Xamarin Android 4.6.8, Resharper 7.1, Typemock 7.4, Code Analysis enabled.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>