how can I fix this? (cannot resolve symbol 'void' )

I have seen may different similar problems like this but nothing exactly like this.

I have tried to clear the cache. Also tried to remove the _resharper file and subdirectory (and also the .suo and .user files) and re-open the solution after removing completely obj and bin folders.

No result.

How can I fix this?

When I change Target Framework for any project to .NET Framework 4 Platform Update 1, things build OK but resharper shows the strangest errors.

EXAMPLE:

Project is Console Application. only 1 file, Program.cs. This is the code:

///////////////////////////////////////////////

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

namespace ConsoleApplication1

{

     class Program

     {

         static void Main(string[] args)

         {

         }

     }

}

///////////////////////////////////////////////

for void I get "cannot resolve symbol 'void' "

and for string it's the same  "cannot resolve symbol 'string' "

my version is:

JetBrains ReSharper 5.1 C# Edition Build 5.1.1753.4 on 2010-10-15T15:51:30

License server at http://JetbrainsLicenseServer is used

Plugins: none. Visual Studio 10.0.40219.1.

Copyright © 2003–2012 JetBrains s.r.o..

0
14 comments
Avatar
Permanently deleted user

void and string are members of System assembly. So try to reassign your reference to System assembly.

0
Avatar
Permanently deleted user

Hello Gabriele
     As far as I remember, this problem should have gotten fixed in ReSharper 6.x. Could you please install the latest version from our web site and check if this helps? Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Avatar
Permanently deleted user

I have exactly the same Issue after updating to newest R#. Turning off R# fix errors.

VS: Enterprise 2017 15.5.6

R#: 2017.3.2


Strange thing is - when i get to Resharper About it saying:

Running in Visual Studio Enterprise 2017 (15.5.27130.2027) (this is different version, that VS about page is showing)

0

@Piotr

Please try clearing the whole %LocalAppData%\JetBrains\Transient folder and check the issue once again.

2
Avatar
Permanently deleted user

It worked - thank you for the tip!

0

Awesome! You are always welcome! 

0

I can verify that what @Alexander Kurakin said is working as a solution as well. 

0
Avatar
Permanently deleted user

I also have this issue of the built in types not being resolved.

 

VS: Professional 2017 15.9.9

R#: 2018.3.4

 

Tried clearing the %LocalAppData%\JetBrains\Transient but that didn't resolve the issue.  Any ideas?

0

Hello Craigpaton!

 

Thank you for the feedback.

Could you please run Visual Studio with the following command line: 'devenv /ReSharper.LogFile C:\resharper_log.txt /ReSharper.LogLevel Verbose', reproduce the issue and send us a corresponding 'resharper_log.txt' file. You can share it privately via 'Submit a request' form.

Thank you.

0
Avatar
Permanently deleted user

Thanks for coming back.  I have submitted a request with the log file attached ID #2024944

0
Avatar
Permanently deleted user

For my situation I had to uninstall the R# suite then remove the %localappdata%\JetBrains folder and then re-install.  This resolved my problem but I don't know if it is recommended.

0
Avatar
Permanently deleted user

What causes this issue to occur? I was able to fix it using Alexander Kurakin 's suggestion. Still curious of why the issue occurs though . . . .

0

Hello @...,

 

Clearing the %LocalAppData%\JetBrains\Transient deletes ReSharper shell caches. If it helped you then supposedly caches got corrupted for some reason.

Cannot tell for sure what could cause that, we need to Transient folder content for investigation in such cases.

Thank you.

1
Avatar
Permanently deleted user

Angelina Elycheva Ok, I will post my cache if the issue ever occurs to me again. Thanks for your response! :)

0

Please sign in to leave a comment.