Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

Visual Studio 2019 - VSIX 설치 시 "The extension cannot be installed to this product due to prerequisites that cannot be resolved." 오류 발생

XmlCodeGenerator 도구를 Visual Studio 2019 Preview에 설치하는 데 다음과 같이 회색 처리가 되어 있습니다.

vsix_prereq_vs2019preview_1.png

This extension cannot be installed to this product due to prerequisites that cannot be resolved.

반면, 로컬에 가지고 있던 vsix 파일을 직접 실행했더니 이번에는 아예 다음과 같은 오류 창이 뜹니다.

vsix_prereq_vs2019preview_2.png

Some modifications could not be applied successfully. For more information, click on the install log link at the bottom of the dialog.

XmlCodeGenerator
	This extension cannot be installed because the following references are missing: Microsoft.Net.ComponentGroup.TargetingPacks.Common

이때의 로그를 보면 다음과 같은 내용을 담고 있습니다.

...[생략]...
2019-02-14 오전 12:30:38 - Beginning to install extension to Microsoft Visual Studio Enterprise 2019...
2019-02-14 오전 12:30:40 - Install Error : Microsoft.VisualStudio.ExtensionManager.MissingReferencesException: This extension cannot be installed because the following references are missing:
-Microsoft.Net.ComponentGroup.TargetingPacks.Common (Microsoft.Net.ComponentGroup.TargetingPacks.Common)
   at Microsoft.VisualStudio.ExtensionManager.EngineUtilities.EnsureNoMissingReferences(IEnumerable`1 missingRefs)
   at Microsoft.VisualStudio.ExtensionManager.PackageInstaller.PrepareEngineInstall(IDependencyGraph dGraph, IDependencyComparisonSeed seed, Component vsCompPkg, Boolean isProductComponent, Int32& totalInstallationSteps)
   at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.PerformSetupEngineInstall(InstallableExtensionImpl extension, Boolean installPerMachine, Boolean isPackComponent, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, IProgress`1 progress, InstallFlags installFlags, AsyncOperation asyncOp, Version targetedVsVersion, IInstalledExtension& newExtension)
   at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallInternal(InstallableExtensionImpl extension, InstallFlags installFlags, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, AsyncOperation asyncOp, IProgress`1 progress, Version targetedVsVersion)
   at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.BeginInstall(IInstallableExtension installableExtension, InstallFlags installFlags, AsyncOperation asyncOp, Version targetedVsVersion)
   at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallWorker(IInstallableExtension extension, InstallFlags installFlags, AsyncOperation asyncOp)

그러니까 결국, Microsoft.Net.ComponentGroup.TargetingPacks.Common 어셈블리에 대한 참조가 Visual Studio 2019 Preview 버전에서는 없다는 것입니다.




해결 방법은 의외로 간단했습니다. 해당 의존성은 source.extension.vsixmanifest 파일에 다음과 같이 명시되어 있었는데,

<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
    ...[생략]...
    <Prerequisites>
        <Prerequisite Id="Microsoft.Net.ComponentGroup.TargetingPacks.Common" Version="[15.0.26208.0,16.0)" DisplayName=".NET Framework 4 ? 4.6 development tools" />
    </Prerequisites>
</PackageManifest>"]"

Version 설정에서 세부 버전에 대한 의존성을 없앴습니다.

<Prerequisites>
    <Prerequisite Id="Microsoft.Net.ComponentGroup.TargetingPacks.Common" Version="[15.0,)" DisplayName=".NET Framework 4 ? 4.6 development tools" />
</Prerequisites>




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 2/14/2019]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... 166  167  168  169  [170]  171  172  173  174  175  176  177  178  179  180  ...
NoWriterDateCnt.TitleFile(s)
913정성태8/22/201035368오류 유형: 104. Hyper-V 관리자 - VM 생성 오류 (VHD 생성 오류)
912정성태8/20/201036678.NET Framework: 183. 구조체 포인터 인자에 대한 P/Invoke 정의파일 다운로드1
911정성태8/19/201034782오류 유형: 103. System.Reflection.TargetException파일 다운로드1
910정성태8/19/201045554개발 환경 구성: 83. Hyper-V의 네트워크 유형 (1)
909정성태8/18/201039816오류 유형: 102. System.MissingMethodException
908정성태8/17/201031213개발 환경 구성: 82. Windows Virtual PC의 네트워크 유형 (3)
907정성태8/14/201028485개발 환경 구성: 81. Windows Virtual PC의 네트워크 유형 (2)
906정성태8/13/201036008개발 환경 구성: 80. Windows Virtual PC의 네트워크 유형 (1)
905정성태8/8/201040656Team Foundation Server: 39. 배치 파일로 팀 빌드 구성 [2]파일 다운로드1
904정성태8/8/201042355오류 유형: 101. SignTool Error: No certificates were found that met all the given criteria. [2]
903정성태8/6/201039424Team Foundation Server: 38. TFS 소스 코드 관리 기능 (4) - Branch
902정성태8/5/201032038Team Foundation Server: 37. TFS 2010의 소스 서버 수작업 구성
901정성태8/4/201031292Team Foundation Server: 36. TFS 소스 코드 관리 기능 (3) - Label
900정성태8/3/201034319Team Foundation Server: 35. TFS 소스 코드 관리 기능 (2) - Shelveset
899정성태8/2/201035803Team Foundation Server: 34. TFS 소스 코드 관리 기능 (1) - Changeset
898정성태7/31/201035686.NET Framework: 182. WCF의 InactivityTimeout [1]파일 다운로드1
897정성태7/26/201136350.NET Framework: 181. AssemblyVersion, AssemblyFileVersion, AssemblyInformationalVersion [4]
896정성태7/25/201043030.NET Framework: 180. C# Singleton 인스턴스 생성 [2]
895정성태7/25/201027628VS.NET IDE: 68. Visual Studio 2010 - .NET 1.1 원격 디버깅
894정성태7/25/201035274오류 유형: 100. Could not find the Database Engine startup handle. [1]
893정성태7/25/201033733오류 유형: 99. .NET 4.0 설치된 윈도우 7에서 SQL Server 2008 R2 설치 오류
892정성태7/9/201034768오류 유형: 98. 영문 윈도우에 한글 SQL Server 2008 R2 설치할 때 오류 [4]
891정성태7/8/201031802오류 유형: 97. MsiGetProductInfo failed to retrieve ProductVersion for package with Product Code = '{...}'. Error code: 1605. [2]
889정성태7/5/201033866.NET Framework: 179. Dictionary.Get(A) 대신 Dictionary.Get(A.GetHashCode())를 사용해서는 안 되는 이유 [1]
888정성태6/30/201031298오류 유형: 96. Hyper-V 연결 오류 - A connection will not be made because credentials may not be sent to the remote computer
887정성태6/23/201040933개발 환경 구성: 79. Hyper-V의 가상 머신에서 소리 재생 방법 [2]
... 166  167  168  169  [170]  171  172  173  174  175  176  177  178  179  180  ...