23 Replies Last post: Jul 2, 2014 2:46 AM by Damien Murty  
Damien Murty Newbie 75 posts since
Aug 20, 2010
Currently Being Moderated

Mar 25, 2014 11:02 PM

Resharper 8.2.0.2160 Breaks Solution!

To anyone that cares,

 

Recently installed Resharper 8.2.2160 and could not compile solution! I was originally using:

JetBrains ReSharper 8.1 Full Edition

Build 8.1.23.546 on 2013-12-12T10:30:52

 

Plugins: 3

#1. “Clean Code” v3.0.0.19614 by “Hadi Hariri and Contributors”

#2. “ReSharper PowerToys: Cyclomatic Complexity” v3.0.0.0 by JetBrains

#3. “NuGet support for ReSharper” v1.3.0.35069 by JetBrains

Visual Studio 10.0.40219.1.

 

Copyright © 2003–2014 JetBrains s.r.o. All rights reserved.

After installing resharper 8.2.0.2160 I could not compile, it keep giving me errors that it could not find Resource.resx files for projects. If I cleaned the solution and then build it would build ok. Once I tried to build a second time it would give the following errors:
MSB3552: Resource file "My Project\Resources.resx" cannot be found
Tried googling this issue and found nothing that would work. I tried reinstalling Visual Studio and it still would not work. Got desperate and uninstalled Reshaper and I could all of a sudden compile without errors. I Reinstalled Resharper 8.1.23.546 and am still able to compile with out errors. The Solution has a mix of VB.NET and C# projects. I wouldn't put it past Jet Brains that Resharper no longer works with VB.NET since support of the language has been stagnant since Resharper 6.x
Alex Berezoutsky JetBrains 581 posts since
Feb 18, 2011
Currently Being Moderated
Mar 26, 2014 1:47 PM in response to: Damien Murty
Re: Resharper 8.2.0.2160 Breaks Solution!

Hello Damien,

 

We apologize for the inconvenience.

Is there any chance that this issue can be reproduced on a small sample solution? If so, could you please create one and attach it here?

 

Thanks in advance!

Alex Berezoutsky JetBrains 581 posts since
Feb 18, 2011
Currently Being Moderated
Mar 27, 2014 1:17 PM in response to: Damien Murty
Re: Resharper 8.2.0.2160 Breaks Solution!

Thanks Damien. Looking forward for that.

Mihaeru Newbie 4 posts since
Mar 27, 2014
Currently Being Moderated
Mar 27, 2014 2:56 PM in response to: Damien Murty
Re: Resharper 8.2.0.2160 Breaks Solution!

Same problem here. I also got error messages regarding projects which cannot be found. I have the feeling, that relative pathes might be the cause. When compiling, I found that the output files are copied to different path levels. Originally they should be stored all in the same place which is referenced by relative pathes like

..\..\..\..\Output

The folder structure should be like this:

-Solution

--     Output

--     Sources
After the update to 8.2 it was like this

-Solution

--     Output

--     Sources

---          Output

-Output

 

I had to uninstall this version and unfortunately I cannot provide you the solution file as it is not my project but I hope, that my explanation helps to find the cause soon.

Alexander Kurakin JetBrains 140 posts since
Jun 7, 2013
Currently Being Moderated
Apr 8, 2014 2:50 PM in response to: Damien Murty
Re: Resharper 8.2.0.2160 Breaks Solution!

Hello Guys!

 

Could you please try the private build from here http://download.jetbrains.com/resharper/ReSharperSetup.8.2.0.2681.msi? After installing this build, please turn OFF "use msbuild to obtain project references" option here R#->Options->VS Integration-> Use msbuild to obtain project references.

 

Please let us know about the results

 

Thanks!

Mihaeru Newbie 4 posts since
Mar 27, 2014
Currently Being Moderated
Apr 8, 2014 5:40 PM in response to: Alexander Kurakin
Re: Resharper 8.2.0.2160 Breaks Solution!

Hi Alexander,

 

I tested the new 8.2.0.2681 build and unfortunately it doesn't help. Same problems as before. Error messages regarding projects which are referenced by relative pathes and cannot be found. Output folders in wrong hirarchical levels. Pathes seemed to be messed up.

Build errors are like following:

Could not read lines from file  "path\SomePathPart.SomeFile.txt". Could not find  file  ...

The project file  "..\..\..\..\Part1\Part2\Part3\Project.csproj"  was not found.

 

I uninstalled the version and switched back to 8.1

 

Best regards,

Michael

Alexander Kurakin JetBrains 140 posts since
Jun 7, 2013
Currently Being Moderated
Apr 8, 2014 7:02 PM in response to: Mihaeru
Re: Resharper 8.2.0.2160 Breaks Solution!

Did you uncheck ReSharper->Options->VS Integration-> Use msbuild to obtain project references?

Mihaeru Newbie 4 posts since
Mar 27, 2014
Currently Being Moderated
Apr 8, 2014 7:12 PM in response to: Alexander Kurakin
Re: Resharper 8.2.0.2160 Breaks Solution!

Yes, initially it was checked but I unchecked it before compiling. I executed a normal build and a rebuild all of different sub-projects and both gave me these errors. After switching back to the 8.1 version, everything works fine.

Alexander Kurakin JetBrains 140 posts since
Jun 7, 2013
Currently Being Moderated
Apr 11, 2014 6:29 PM in response to: Mihaeru
Re: Resharper 8.2.0.2160 Breaks Solution!

Did these failing builds create additional output folders in uncommon places (like C:\Program Files (x86)\Microsoft Visual Studio {VS version}\Common7\IDE\obj\{x86/x64} or something like this)? Could you please remove them as well and try 8.2.0.2681 with unchecked "Use msbuild to obtain project references" build again?

tracky cn Newbie 3 posts since
Sep 22, 2010
Currently Being Moderated
Apr 12, 2014 9:29 PM in response to: Alexander Kurakin
Re: Resharper 8.2.0.2160 Breaks Solution!

Thanks, it seems to solve my problem

 

R# 8.2.0.2160 with VS2010(10.0.40219.1 SP1Rel)

when build a project, some time it would give the following errors:

 

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1091,7): error MSB4115: The "exists" function only accepts a scalar value,  but its argument "@(_UnmanagedRegistrationCache)" evaluates to "obj\ConsoleApplication2.csproj.UnmanagedRegistration.cache;obj\ConsoleApplication2.csproj.UnmanagedRegistration.cache" which is not a scalar value.

 

restart vs2010 and build it again, success.

 

 

 

switch to R# 8.1.23.546, no errors.

 

 

 

use R# 8.2.0.2161 and turn off "use msbuild to obtain project references" option, no errors.

 

sorry for my bad english.

David Razzetti Newbie 20 posts since
Sep 5, 2012
Currently Being Moderated
Apr 10, 2014 12:08 AM in response to: Damien Murty
Re: Resharper 8.2.0.2160 Breaks Solution!

I am watching progress here with interest.

See my recent posts in Building a solution fails from time to time after upgrade to R# 8.2.0.2160.

I too have rogue output folders scattered through my source tree.

For me, R# is also corrupting its own configuration files adjacent to the solution file on a regular basis.

Mihaeru Newbie 4 posts since
Mar 27, 2014
Currently Being Moderated
May 13, 2014 11:09 AM in response to: Damien Murty
Re: Resharper 8.2.0.2160 Breaks Solution!

Hi Damien,

 

unfortunately, I don't have the time to check it deeply but as far as I can remember, the issues you found are the same as I had. On a first build everything worked fine and then, maybe within the time frame where the Developer Studio is still busy, the build failed and created all these folders in wrong places.

As you reported, that the release candidate works, I think, I will also give it a try.

 

Would be helpful to have some official feedback here!

 

Michael

Alexander Kurakin JetBrains 140 posts since
Jun 7, 2013
Currently Being Moderated
Jun 16, 2014 12:29 PM in response to: Damien Murty
Re: Resharper 8.2.0.2160 Breaks Solution!

Hello Damien,

 

  Please accept our apoloies for the delay in the reply.

 

  Could you please specify the following:

  1. Do you have ReSharper 8.2.1000.4556 installed?
  2. Which JetBrains products do you have installed on your machine with ReSharper (dotTrace, dotCover, dotMemory)? If any of them is installed, please specify versions.
  3. Do you have such folders on the machine with the issue - C:\Program Files (x86)\Microsoft Visual Studio {VS version}\Common7\IDE\obj\{x86/x64}?
  4. Did you try to uncheck ReSharper | Options | Environment | General | "Use MSbuild to obtain project references"?
  Also please try these steps:

  • Backup your ReSharper settings: ReSharper | Manage Options | "Export to file" for This Computer layer;

  • Uninstall ReSharper 8.2.1;
  • Backup and then remove the following folders:
  1. "C:\Users\{User Name}\AppData\Roaming\JetBrains\ReSharper" ;
  2. "C:\Users\{User Name}\AppData\Local\JetBrains\ReSharper";
  3. "C:\Users\{User Name}\AppData\Local\JetBrains\DotNet";
  4. "C:\Users\{User Name}\AppData\Roaming\JetBrains\DotNet"
  • Run ReSharper installation again;
Thanks!

More Like This

  • Retrieving data ...