dario_ramos
dario_ramos

Reputation: 7309

Latest Resharper giving me random build errors

For a week now, I've been getting random build errors which make no sense at all. At first, I issued another build until no error appeared. But now the frequency has become too high to tolerate.

The errors appear alternatively and are as follows:

My environment: Windows 8.1 64 bits, Visual Studio 2012, Resharper 8.2, Solution with 98 projects (C#, VB.NET, C++/CLI and C++)

I tried rebuilding, cleaning, opening and closing VS, restarting Windows, disabling Resharper and restarting VS. With this last fix the errors went away but I miss the nifty R# stuff. I'll look into the R# issue tracker, but did anyone else experience this? Some workaround other than disabling R#?

Upvotes: 2

Views: 1488

Answers (2)

kenntornslev
kenntornslev

Reputation: 11

I had a similar problem (random build errors). This would occurs in two solutions I've tested. The errors would always include a 'file not found' or 'access denied' type of error. The errors would occur using ReSharper 8.2.0.2160, but upgrading to ReSharper 8.2.1000.4556 fixed the problem (rolling back to ReSharper 8.0.1000.2286 also fixed the problem). I haven't tried playing with the 'MS build' option mentioned above.

Upvotes: 1

Igal Tabachnik
Igal Tabachnik

Reputation: 31548

ReSharper recently switched the way it resolves references - it now uses msbuild instead of core Visual Studio to resolve some things. There are several things you could try:

  1. Install the latest ReSharper 8.2.1 version (RC was released today, April 25th, fixes tons of issues related to build errors)
  2. Go to ReSharper options, General, and at the bottom, uncheck the Use msbuild to obtain project references option. Then try rebuilding.

If the latter solves your problem, I suggest you open an issue on the ReSharper issue tracker, so they can fix it.

Hope that helps!

Upvotes: 4

Related Questions