ReSharper는 프로젝트 빌드시에도 "심볼을 확인할 수 없습니다"
내 도구 :
Visual Studio 2012 Ultimate + 업데이트 1
ReSharper v7.1.25.234
내 솔루션 빌드 상태 : 빌드 성공
그러나 ReSharper를 설치하고 ReSharper 코드 분석이 활성화되면 내 코드의 많은 키워드 가이 오류로 빨간색입니다.
"기호 XXX를 해결할 수 없습니다"
내 프로젝트의 다른 그림 >>
ReSharper“CANNOT RESOLVE SYMBOL”오류는 어디에나 있지만, 프로젝트 빌드 프로세스는 성공적이며 올바르게 작동합니다.
추가 참고 : ReSharper Code Analysis를 비활성화하면 프로젝트는 정상이지만 ReSharper 코드 분석을 사용하려고합니다.
ReSharper → 옵션 → 일반 → 캐시 지우기를 시도했습니다 . 그러나 여전히이 문제가 있습니다!
한 달 전에 Visual Studio 2012 RC를 제거하고 VS 2012 RTM을 설치할 때 이러한 오류가 발생했습니다.
이미 ReSharper를 제거하고 다시 설치했습니다. 하지만 아직이 문제가 있습니다!
내 솔루션에는 5 개의 프로젝트 >> 2 개의로드 된 프로젝트 (주 프로젝트 + 리소스 프로젝트)와 3 개의 언로드 프로젝트가 있습니다
내 Visual Studio에도 더 큰 문제가 있음을 알고 있습니다 (스택 오버플로에 대한 자세한 정보)
내 프로젝트에 대한 참조를 추가 할 수 없습니다 (새 솔루션 및 새 프로젝트 내부에서도)
패키지를 설치할 수 없습니다 ( "Packet Manager 콘솔"또는 NuGet 패키지 관리로)
패키지를 업데이트 할 수 없습니다 ( "Packet Manager 콘솔"또는 NuGet 패키지 관리를 통해)
나는 (나 자신과 다른 사람들의) 많은 제안을 해왔다.
일부 DLL 파일을 다시 저장
일부 창 및 레지스트리 복구 도구 사용
ReSharper 제거
Visual Studio 복구
과...
그러나 나는 그것을 해결할 수 없었다.
나는 새로운 Windows를 설치 생각 해요 :(
무엇이 잘못되었으며 어떻게 해결할 수 있습니까?
Visual Studio → 메뉴 도구 → 옵션 → ReSharper , Suspend단추 및 Resume다시 시도 하십시오 (창을 닫을 필요가 없습니다). 이것은 내 경우에 작동합니다.
VS -> Tools -> Options -> ReSharper Suspend button
Clear Contents of -> AppData\Local\JetBrains\ReSharper\v7.1\SolutionCaches
VS -> Tools -> Options -> ReSharper Resume button
이것은 나를 위해 일했습니다 (VS2012u4, R # 7.1.3).
- Resharper> 옵션> 환경 : 일반> 캐시 지우기
- Visual Studio를 다시 시작하십시오.
이는 솔루션에 동일한 라이브러리의 서로 다른 두 가지 버전이있는 경우 ReSharper에서 발생합니다. 예를 들어 프로젝트 A는 automapper 버전 1.1을 참조하고 프로젝트 B는 automapper 버전 1.0을 참조합니다.
Visual Studio는 바인딩 할 DLL 중 하나를 선택하는 상황에서 예상대로 컴파일 및 실행되는 경우가 많습니다. 그러나 ReSharper는 크게 혼란스러워합니다. 나에게 이것은 단지 사기꾼이 아닌 해결하기를 요청하는 ReSharper 오류 여야합니다.
최신 정보:
나는 이틀 전에 (이 포스트를 만든 다음 날) 총 우연히 만났고 VS API의 버그로 인해이 링크 를 발견했습니다. 나는 그들이 권장하는 모든 것을 시도했지만 일시적으로 해결할 수 없었습니다 : google.code에서 다운로드 한 Autofac 2.6.x를 가지고 NuGet 패키지 버전으로 바꾸었고 새로운 참조를 보지 않으려 고 거부했습니다. 내가 한 일에 상관없이
그들은 R # 8 EAP 설치를 제안 하지만 나에게는 이전 버전의 Autofac으로 다운 그레이드하는 것이 번거로웠다.
도움이 많이되지는 않지만 유용 할 수 있습니다.
Resharper 캐시 지우기 : Resharper-> 옵션-> 일반-> 캐시 지우기를 닫고 솔루션을 닫았다가 다시여십시오. R # 9.0 업데이트 1에서 작동했습니다.
이것은 Visual Studio 2015 및 ReSharper Ultimate 10.0.2에서 발생했습니다. 위의 모든 솔루션 (다시 설치 제외)을 시도했지만 아무것도 작동하지 않았습니다.
매우 다양한 순서로 위의 다양한 단계를 다시 수행했습니다 .
- ReSharper → 옵션 → 환경 → 일반 → 캐시 지우기
- 그렇지 않으면이 옵션을 사용할 수 없으므로 ReSharper를 일시 중단 하기 전에이 작업을 수행해야합니다.
- 이것은
C:\Users\YourUsername\AppData\Local\JetBrains\Transient\ReSharperPlatformVs14\v04
다른 게시물에서 언급 한대로 파일을 지 웁니다.
- 도구 → 옵션 → ReSharper Ultimate → 일시 중단
- Visual Studio 닫기
- 이것은 실제로 ReSharper 캐시 지우기를 수행합니다.
- Visual Studio 열기
- 솔루션을 엽니 다
- Visual Studio에서 IntelliSense에 코드 문제가 없음을 감지하고이 시점에서 빌드를 수행했을 수 있습니다.
- 도구 → 옵션 → ReSharper Ultimate → 이력서
마지막 단계가 끝나면 다시 설치할 필요가없는 안도의 숨을 쉬게 될 수 있기를 바랍니다.
일반적으로 구성 파일이 손상되거나 잘못 감지되어 발생합니다. 그냥 삭제 .vs는 폴더 , 설정을 재설정 VS를 다시 시작합니다. 거의 경우에 작동합니다
비슷한 문제가 있었고 다음에서 찾은 캐시를 지 웠습니다.
AppData \ Local \ JetBrains \ ReSharper \ v7.1 \ SolutionCaches
나를 위해 문제를 해결
VS2012 u3 실행
캐시를 지우거나 ReSharper를 일시 중단시키는 위의 링크는 나를 위해 작동하지 않았습니다. 솔루션 탐색기 에서이 문제를 보여주는 프로젝트를 방금 새로 고쳤습니다. 문제가 사라졌습니다. 안타깝게도 계속 반복 되며이 문제가 발생할 때마다 새로 고침을 유지하는 옵션 만 있습니다.
Windows 8에서 ReSharper 8.1을 사용하는 VS2012가 있습니다.
Visual Studio 2013에서 ReSharper 8.2와 동일한 문제가 발생했지만 캐시를 지우거나 ReSharper를 일시 중단하거나 ReSharper를 다시 설치하는 일반적인 해결책은 없습니다.
내 경우에는 다음과 같이 해결했습니다 .... 해결할 수없는 기호 중 하나를보고 그것이 있음을 알았습니다 System.Web.Http.dll
. 그런 다음 이것이 Microsoft.AspNet.WebApi.Core
NuGet 패키지 에 있음을 발견했습니다 . 패키지 관리자 콘솔을 사용하여 해당 패키지를 제거하려고 시도했습니다. 물론 다른 종속성으로 인해 패키지를 설치할 수 없다는 것을 제외하고는 패키지를 제거했습니다.
따라서를 포함하여 각 종속성을 제거한 Microsoft.AspNet.WebApi.Core
다음 각 패키지를 역순으로 다시 설치했습니다. ReSharper는 설치된대로 모든 것을 올바르게 선택했으며 이제는 괜찮아 보입니다.
나는 같은 문제가 있었다 (VS 2017). 필자의 경우 두 어셈블리에서 동일한 버전으로 설정 한 후 다른 버전의 대상 프레임 워크-하나의 어셈블리 대상 4.52, 다른 4.62-가 다시 작동하기 시작했습니다.
보시다시피 솔루션은 모든 사람들이 이미 위에서 언급 한 것입니다. 간단히에 의해 일시 중지 한 후 ReSharper에서을 캐시 지우기 마지막으로 다시 시작 을. 그러나 아무도 VisualStudio를 닫거나 다시 시작하지 않고 어떻게 해야하는지 언급하지 않았습니다.
다음 단계를 따르십시오 .
Resharper 캐시 위치 얻기
- Resharper 중단
캐시 지우기
- 1 단계 에서 복사 한 위치로 이동 하여 해당 폴더의 모든 항목을 삭제하십시오. 그리고 네, 모든 것을 의미합니다.
재 연마기 재개
- You can do this by again going to Tools > Options > Resharper Or Resharper Ultimate > Resume (Button)
I had the same issue and unloading and reloading problematic project helped me to clear out this issue for ReSharper. Hope this helps.
I ended up needing to request Resharper to clear its cache along with doing it manually through Windows File Explorer. This finally resolved the issue for me.
- (As reported in many of the solutions here) RESHARPER > Options... > Environment > General > Clear Caches.
- Close Visual Studio.
- Go to this path in File Explorer for Resharper 10 in Visual Studio 2015: %localappdata%\JetBrains\Transient\ReSharperPlatformVs14
- Delete all subfolders and their contents within that folder.
- Restart Visual Studio, reload your Solution and wait for Resharper to initialize itself for the Solution.
For me for VS2015, I had to update Resharper to version 2016.2.2 to resolve the issue.
I had already tried (of which none worked for me):
- suspending / resuming
- suspending / clearing cach (using tools > options button) / resuming
- suspending / clearing cach (using Windows file system) / resuming
- moving cache to solution folder / restarting visual studio
- many other combinations of all or some of above
I hope that may help someone.
Resharper -> Options Caches -> Store solution caches in: (Change folder to another one).
Or try to manually clean up R# cache folder
I did everything above with no fix.
Then I did a step from another SO Q/A (don't remember which one) which was to set System.Web.Mvc to Copy Local true. Recompile my project and the errors went away.
When I set this assembly back to Copy Local false, the errors didn't return.
I my case, I tried all the suggestions above. But, at some point I realized that the problem persists even if Resharper is suspended. So, I looked for similar problem in VS itself and found the solution in the comments for the accepted answer in this SO post.
I'm listing my steps for brevity.
- VS -> Tools -> Options -> ReSharper Suspend button
- Build solution. Notice all references still unresolved
- Clean the solution
- Restart VS
- Build the solution without Resharper. Notice all references resolved
- VS -> Tools -> Options -> ReSharper Resume button
I'm using 7.1, and this worked for me:
- Uninstall resharper
- go to %appdata% and remove JetBrains\Resharper and ..\Local\JetBrains\Resharper folders
- re-install resharper
I am using VS2015, R#10. None of the suggested solution worked for me. I deleted the contents of the bin folder of my solution and rebuild the entire solution, that seems to have resolved the issue. Before deleting the contents of the bin folder, I had tried suspending and resuming R#, doing clear cache from R# -> option -> general setting, and also manually deleting the contents from \AppData\Local\JetBrains\Transient\ReSharperPlatformVs12\v01\SolutionCaches.. Hope it helps someone.
What helped in my case after several of the suggestions above didn't:
- Removed one project reference (of one of the libraries where ReSharper claimed not to be able to find it even though it was correctly referenced).
- Use ReSharper’s "Resolve" on one of its usages to add the reference again.
After that, it worked fine, even though none of the project files were actually modified in the process.
I have the same problem.Clean Resharper cache and Suspend Resharper not worked for me.I just close visual studio, uninstall Resharper,and then install Resharper,the problem was gone.
When I disabled ReSharper, Visual Studio was also giving the same error, even though the project built successfully. What I did to resolve the issue was:
- Remove the project from the solution.
- Right-click the solution, Add Existing Project, select the project file and add it again.
After performing these steps, the syntax errors went away in Visual Studio, and after I enabled ReSharper again, it also had no errors.
For me, I think my solution just got caught in a weird state when I was changing which branch of my local Git repo I was on. Simply switching to the previous branch I was on before the problem started, telling VS to reload all the files, then switching back to the desired branch and reloading again fixed it.
We saw this problem as well, specific to files which were shared by multiple projects. There is a combo box in the upper left corner of the editor window that lets you switch project context for the file (and hence the references that impact symbol resolution).
Resharper makes it easy to accidentally open the wrong "version" of a shared file by its "go to file or symbol" commands.
Switching context back to the project I use in the solution was all I needed to do to fix this issue.
I also saw similar problems reported in ReSharper which did not lead to compile/runtime errors.
These were mostly seen when using "{x:Type ...}"
or "{x:Static ...}"
markup, causing ReSharper to report "Cannot resolve symbol 'Type'"
or "Cannot resolve symbol 'Static'"
errors.
Additionally there were many errors like "Invalid markup extension type: expected type is '<type>', actual type is '...Extension'"
.
The problem resolved itself when I added a reference to the System.Xaml
assembly.
No soft caches removal solutions worked for me, it looks like there were issues generated between different RS versions installed over the years.
What worked for me was:
- Uninstal resharper
- remove all JetBrains folders within AppData\Local and AppData\Roaming
- Install resharper again
All the settings need to be redone, etc but I couldnt get any better solution even with help of JetBrains team.
It should be a problem related to Resharper cache, but as far as I know, the "clear cache" feature works only if your cache is in Solution Folder. To check try this: Visual Studio > Tools > Options > Resharper > Options ...
In Resharper Options window > Environment > General check that "Store solution caches in" it's set to "Solution folder"
After this in solution folder you should see a new folder "_ReSharper.Caches". You should be able to clean it by pressing the "Clear caches" button, but (if this doesn't work) you can clean manually by removing inside files (in this case, Visual Studio has already to be closed).
Restart Visual Studio and everything should work. Have a look here [1] as well
Note: Visual Studio 2015 Update 1 / ReSharper 10.0.2
I was having the same issue in my Visual Studio 2015 with Resharper Ultimate and tried the solutions as suggested above, but none worked for me.
Then upgrading Resharper to latest release solved my issue.
나를 위해 솔루션을 검사하면 많은 "검색 경로에서 파일을 찾을 수 없음"을 포함하여 수백 가지 오류가 발생했습니다. 나는 그것을 해결하기 위해 모든 제안을 시도했지만 그중 아무것도 효과가 없었습니다. 결국 솔루션 대신 프로젝트 검사가 완벽하게 이루어졌습니다.
'Programming' 카테고리의 다른 글
라이브 MySQL 쿼리를 보려면 어떻게해야합니까? (0) | 2020.02.15 |
---|---|
파이썬을 사용하여 CPU 수를 찾는 방법 (0) | 2020.02.15 |
언제 실제로 noexcept를 사용해야합니까? (0) | 2020.02.15 |
맨 페이지에서 Unix 명령 이름 뒤에 괄호 안의 숫자는 무엇을 의미합니까? (0) | 2020.02.15 |
직렬화와 마샬링의 차이점은 무엇입니까? (0) | 2020.02.15 |