your programing

"제약 조건 계약 이름과 일치하는 내보내기를 찾을 수 없음"오류 메시지

lovepro 2020. 9. 27. 13:32
반응형

"제약 조건 계약 이름과 일치하는 내보내기를 찾을 수 없음"오류 메시지


오늘 아침에 Visual Studio 솔루션을 여는 동안 문제가 발생했으며 실행하려고 할 때 다음과 같이 말했습니다.

제약 계약 이름과 일치하는 내보내기를 찾을 수 없습니다.

이 문제를 어떻게 해결할 수 있습니까?


Visual Studio 구성 요소 모델 캐시를 지워이 문제를 해결했습니다.

이 폴더를 삭제하거나 이름을 바꾸십시오.

%LocalAppData%\Microsoft\VisualStudio\11.0\ComponentModelCache

또는

%LocalAppData%\Microsoft\VPDExpress\11.0\ComponentModelCache

Visual Studio를 다시 시작하십시오.

가지고있는 Visual Studio의 버전은 예를 들어 번호로 지정됩니다.

Visual Studio 2012는 11.0(위에 표시된대로)

Visual Studio 2013은 12.0

Visual Studio 2015는 14.0

Visual Studio 2017은 15.0

모르는 사람들을 위해 : %LocalAppData%\동일C:\Users\{yourUsername}\AppData\Local

여러 버전의 Visual Studio가 설치된 경우 (예 : 2012 및 2013) Visual Studio를 다시 시작하기 전에 두 버전 (예 : 11.0 및 12.0)의 ComponentModelCache를 제거하는 것이 도움이 될 수 있습니다.


전체 폴더의 이름을 바꾸거나 삭제할 필요가 없습니다.

(%AppData%\..\Local\Microsoft\VisualStudio\11.0\ComponentModelCache)

Microsoft.VisualStudio.Default.cache위의 위치에 있는 파일의 이름을 바꾸거나 삭제하십시오 .


Visual Studio Express 2012에는 다른 경로가 있습니다.

비주얼 스튜디오 익스프레스

  • ... \ Users \ {사용자} \ AppData \ Local \ Microsoft \ WDExpress \ 11.0 \ ComponentModelCache

웹용 Visual Studio Express 2012 사용

  • ... \ Users \ {사용자} \ AppData \ Local \ Microsoft \ VWDExpress \ 11.0 \ ComponentModelCache

Visual Studio Express를 다시 설치할 필요가 없습니다.


이것은 실제로 챔피언처럼 작동합니다.

해결 방법 : 아래 위치에서 ComponentModelCache 폴더를 삭제하십시오.

[C:]\Users\[your user name]\AppData\Local\Microsoft\VisualStudio\[Visual Studio version number]

성공적으로 삭제 한 후 "ComponentModelCache"라는 동일한 이름의 폴더를 다시 만듭니다.


구성 요소 모델 캐시를 삭제해도 작동하지 않았습니다 (위에 제공된 상대 디렉터리가 내 컴퓨터에 존재하지 않았습니다). 대신 Visual Studio 2012 Express 확장을 설치했습니다 . 메뉴 도구 → * 확장 및 업데이트 ... ** → 온라인원하는 항목 을 선택한 다음 다운로드합니다. 이로 인해 캐시가 무효화되어 Visual Studio가 다시 빌드합니다.

여기 내 소스 입니다.


이 문제는 모든 폴더와 파일을 삭제하거나 지워서 해결할 수 있습니다. %AppData%\..\Local\Microsoft\VisualStudio\11.0\ComponentModelCache

이것은 실제로 Visual Studio 구성 요소 모델 캐시를 지 웁니다.

Windows 7 시스템에서는 경로가 다릅니다. 사용자가 입력하는 경우 %appdata%실행 대화 상자에서이 폴더를 엽니 다 C:\Users\<username>\AppData\Roaming.

'위로'버튼을 클릭하여 상위 폴더로 이동하고 '로컬'폴더를 선택합니다.

최종 경로 : C:\Users\<username>\AppData\Local\Microsoft\VisualStudio\11.0\ComponentModelCache


Visual Studio 2013의 경우 다음 경로에서 해당 폴더를 제거해야합니다.

%AppData%\..\Local\Microsoft\VisualStudio\12.0

위해 스튜디오 2012 비주얼 및 이후 버전,이 솔루션은 폴더의 내용을 삭제해야합니다 ComponentModelCache:

C:\Users\[username]\AppData\Local\Microsoft\WDExpress\11.0\ComponentModelCache

비주얼 스튜디오 2013

C:\Users\[username]\AppData\Local\Microsoft\VisualStudio\12.0\ComponentModelCache

Visual Studio 2013 Ultimate를 시작할 때 동일한 문제가 발생했으며 여기의 솔루션이 작동하지 않았습니다. 언급 된 폴더를 삭제하고 Visual Studio를 다시 시작하려고했지만 작동하지 않았습니다.

같은 그러나 나도 다른 문제가 있었다 Microsoft.visual 스튜디오 패키지가 제대로로드되지 않은 또한 페이지 '312e8a59-2712-48a1-863e-0ef4e67961fc는'2012 VS를 찾을 수 없습니다 . 후자는 팀 탐색기 창에서 " 'somenumber'페이지를 찾을 수 없습니다"라는 메시지를 나타냅니다.

그래서 devenv /setup관리 권한으로 Visual Studio 명령 프롬프트에서 실행합니다. 그것은 일을했고 모든 것이 이제 괜찮습니다.


ComponentModelCache 폴더 컨텐츠를 제거하십시오 .

 %AppData%..\Local\Microsoft\VisualStudio\11.0\ComponentModelCache

폴더 지우기가 작동하지 않았습니다. 그래서 '프로그램 및 기능'으로 이동하여 변경 버튼을 사용하여 Visual Studio 2013 설치를 시작했습니다.

설정에서 수리 기능을 선택하고 문제가 해결되었습니다.


I had the same problem with Visual Studio Express 2013 of Windows 8.1.

Unfortunatly there was no "ComponentModelCache" folder in
%AppData%..\Local\Microsoft\VisualStudio\12.0\ComponentModelCache.

I found the "ComponentModelCache" folder in
..\Users[username]\AppData\Local\Microsoft\WDExpress\12.0

and solved this problem by removing this folder from there.


If you have VS 2013, you have to go to: %LOCALAPPDATA%\Microsoft\VisualStudio\12.0 then rename the ComponentModelCache folder.


I experienced a similar problem after some updates released from Microsoft (part of them where about .NET framework 4.5).

On the Internet I got the following link to the Microsoft knowledge base article:

Update for Microsoft Visual Studio 2012 (KB2781514)

It worked for me.


This happened to me with Visual Studio 2013 Web, after Windows installed several updates. Unfortunately none of the suggestions in this thread helped.

I had to re-run the installer and select the "Repair" option. After that (and a reboot) it was working once again.

In some cases you may have to repair more than one version of Visual Studio. One example is when a Script Task control in VS 2013 opens VS 2012 when you click Edit Script.


Renaming the ComponentModelCache folder worked for me in Visual Studio 2015, but with a slightly different path:

%AppData%\..\Local\Microsoft\VisualStudio\14.0\ComponentModelCache

I have Windows 7 x64 with a second partition on which Windows 8 (preview installed). While working with Microsoft Visual Studio Express 2012 for Windows Phone, I come up with the same problem. But the ComponentModelCache is found here:

C:\Users\Jayaram\AppData\Local\Microsoft\VPDExpress\11.0

I am unable to delete or rename as I get the "access is denied" message when I try to use command prompt:

Administrator: VS2012 X64 CrossToolsCommandPrompt


I am using Visual Studio 2012. After installing the Visual Studio 2013 web express, when I want to run or open any project in Visual Studio 2012 it shows me the following error:

"no exports were found that match the constraint contract name".

I also tried the above solution for clearing the ComponentModelCache, but I did not find the folder. I solves my problem just by: Repair Visual Studio 2012

For the Express versions of the software, the folder you need is in a slightly different place(s): For Express 2012 for Web it is C:\Users\XXXXXXXX\AppData\Local\Microsoft\VWDExpress - not in the Visual Studio folder.


This issue is because of a MEF cache corruption. Installing the feedback extension (or installing any extension) will invalidate the cache causing VS to rebuild it.

click for source.


i experienced this problem in Microsoft Visual Studio Express 2012 for windows phone while trying to open file.

Then i browsed to

C:\Users\MyUserName\AppData\Local\Microsoft\VPDExpress\11.0\ComponentModelCache

And Inside ComponentModelCache i deleted Microsoft.VisualStudio.Default.cache CACHE file. Finaly i restarted visual studio and reopened my project.

Then my problem was solved, i was able to open file.

Note: My OS is windows 8. And i installed SDK 8 for developing windows phone app

Thanks


I got an error with the same error message - two years later. It's a different problem this time though, related to .NET Core dnx things.

I couldn't find an answer on Stack Overflow, but there's a GitHub issue that contains a workaround: https://github.com/aspnet/Home/issues/1455

Below is the most important part of the workaround:

  • Delete the entire C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\DNX directory. (As far as I understand, it belongs to the old version of ASP.NET Core RC1, which for some reason is still shipped even with Visual Studio 2015 Update-3).
  • Delete the C:\Users\<user>\AppData\Local\Microsoft\VisualStudio\14.0\devenv.exe.config file.
  • Run the Developer Command Prompt for Visual Studio 2015 as Administrator, and execute the devenv /setup command. The new devenv.exe.config file is generated. This time there are many assemblies that refer to the C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\DotNet directory.
  • Run the Visual Studio 2015 and check that it shows the Microsoft .NET Core Tools (Preview 2) 14.1.20624.0 in the Help => About Microsoft Visual Studio menu.

Thanks to olegburov's post on GitHub for figuring this out.


I had to uninstall some external components like Postsharp and Apex and then it worked. I also tried the chosen solution but it gave me more errors.


Deleting the folders haven't worked for me i have go control panel and repaired

Visual Studio Installer Projects extensions for VS 2013.

And it worked for me


I got this error after reinstalling IntelliJ IDEA and ReSharper for C# in Visual Studio 2013.

First, I got an error problem with extensions, and after this I got this error:

"No exports were found that match the constraint contract name”

I simply removed folder ComponentModelCache and resolved this error.


My 2 cents: Following all above lifesaving tips, I had a slightly different experience; mine is VS 2017 Community Edition, installed once, and I notice that have all these 3 folders:

%LocalAppData%\Microsoft\VisualStudio\15.0 ==> Empty
%LocalAppData%\Microsoft\VisualStudio\7f0c75b0 ==> has only the CoreCon folder

This is the one that has the ComponentModelCache:

%LocalAppData%\Microsoft\VisualStudio\15.0_7f0c75b0

Deleting only the Microsoft.VisualStudio.Default.cache had no effect.

So, I deleted all 4 files there: .cache, .err, .external and catalogs. On restarting VS, problem gone and appeared a 5th file:

Microsoft.VisualStudio.Default.scan

참고URL : https://stackoverflow.com/questions/17596543/error-message-no-exports-were-found-that-match-the-constraint-contract-name

반응형