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..

11 comments
Comment actions Permalink

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

0
Comment actions Permalink

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
Comment actions Permalink

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
Comment actions Permalink

@Piotr

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

2
Comment actions Permalink

It worked - thank you for the tip!

0
Comment actions Permalink

Awesome! You are always welcome! 

0
Comment actions Permalink

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

0
Comment actions Permalink

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
Comment actions Permalink

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
Comment actions Permalink

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

0
Comment actions Permalink

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

Please sign in to leave a comment.