성태의 닷넷 이야기
홈 주인
모아 놓은 자료
프로그래밍
질문/답변
사용자 관리
사용자
메뉴
아티클
외부 아티클
유용한 코드
온라인 기능
MathJax 입력기
최근 덧글
[정성태] Java - How to use the Foreign Funct...
[정성태] 제가 큰 실수를 했군요. ^^; Delegate를 통한 Bein...
[정성태] Working with Rust Libraries from C#...
[정성태] Detecting blocking calls using asyn...
[정성태] 아쉽게도, 커뮤니티는 아니고 개인 블로그입니다. ^^
[정성태] 질문이 잘 이해가 안 됩니다. 우선, 해당 소스코드에서 ILis...
[양승조
] var대신 dinamic으로 선언해서 해결은 했습니다. 맞는 해...
[양승조
] 또 막혔습니다. ㅠㅠ var list = props[i].Ge...
[양승조
] 아. 감사합니다. 어제는 안됐던것 같은데....정신을 차려야겠네...
[정성태] "props[i].GetValue(props[i])" 코드에서 ...
글쓰기
제목
이름
암호
전자우편
HTML
홈페이지
유형
제니퍼 .NET
닷넷
COM 개체 관련
스크립트
VC++
VS.NET IDE
Windows
Team Foundation Server
디버깅 기술
오류 유형
개발 환경 구성
웹
기타
Linux
Java
DDK
Math
Phone
Graphics
사물인터넷
부모글 보이기/감추기
내용
<div style='display: inline'> <h1 style='font-family: Malgun Gothic, Consolas; font-size: 20pt; color: #006699; text-align: center; font-weight: bold'>Visual Studio 2022를 위한 Extension 마이그레이션</h1> <p> 기존 Visual Studio 2019용으로 제작된 확장(Extension) 도구들은 Visual Studio 2022에 설치가 안 됩니다. 가령, 기존 확장 도구의 vsix 파일을 실행해 봐도 그냥 다음과 같이 2022를 찾을 수 없는 것처럼 메시지를 보여주고 종료를 해버립니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > VSIX Installer This extension is already installed to all applicable products. </pre> <br /> 현재의 manifest 파일은 아마도,<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > <PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011"> ...[생략]... <Installation> <InstallationTarget Id="Microsoft.VisualStudio.Community" <span style='color: blue; font-weight: bold'>Version="[16.0,17.0)"</span> /> </Installation> <Dependencies> <Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" Version="[4.5,)" /> <Dependency Id="Microsoft.VisualStudio.MPF.15.0" DisplayName="Visual Studio MPF 15.0" Version="[15.0,)" /> </Dependencies> <Prerequisites> <Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[16.0,)" DisplayName="Visual Studio core editor" /> </Prerequisites> ...[생략]... </PackageManifest> </pre> <br /> <a target='tab' href='https://www.sysnet.pe.kr/2/0/12549#install_target'>[16.0,17.0)으로 상위 버전이 17.0을 포함하지 않는 범위</a>까지 제한이 걸렸을 것입니다. 따라서 다음과 같이 InstallationTarget을 2022를 포함하도록 명시하면 문제가 해결됩니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > <Installation> <InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[16.0, 17.0)" /> <span style='color: blue; font-weight: bold'><InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0, 18.0)"> <ProductArchitecture>amd64</ProductArchitecture> </InstallationTarget></span>"]" </Installation> </pre> <br /> <hr style='width: 50%' /><br /> <br /> 저렇게 설정했는데 다음과 같은 오류가 발생한다면?<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > 1>VSSDK : error VSSDK1062: Schema validation error for 'C:\...[생략]...\obj\Debug\extension.vsixmanifest'. The 'http://schemas.microsoft.com/developer/vsx-schema/2011:Dependencies' element is not declared. 1>VSSDK : error VSSDK1062: Schema validation error for 'C:\...[생략]...\obj\Debug\extension.vsixmanifest'. The 'http://schemas.microsoft.com/developer/vsx-schema/2011:Assets' element is not declared. </pre> <br /> 이상하군요, ^^; 혹시나, Dependencies 노드를 주석 처리했더니,<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > <?xml version="1.0" encoding="utf-8"?> <PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011"> ...[생략]... <Installation> <InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[16.0, 17.0)" /> <InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0, 18.0)"> <ProductArchitecture>amd64</ProductArchitecture> </InstallationTarget> </Installation> <span style='color: blue; font-weight: bold'><!--Dependencies></span> <Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" /> <Dependency Id="Microsoft.VisualStudio.MPF.15.0" DisplayName="Visual Studio MPF 15.0" Version="[15.0,)" /> <span style='color: blue; font-weight: bold'></Dependencies--></span> <Assets> <Asset Type="Microsoft.VisualStudio.VsPackage" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" /> </Assets> ...[생략]... </PackageManifest>"]]]" </pre> <br /> 첫 번째 오류는 없어졌습니다. 그렇다면 Assets도 삭제해야 한다는 것인데... 어쩔 수 없군요. ^^; 삭제하고 빌드했는데... 잘 동작합니다. ^^<br /> <br /> <hr style='width: 50%' /><br /> <br /> Visual Studio 2022에서 기존 확장 프로젝트를 빌드하는 경우 다음과 같은 오류가 발생할 수 있습니다.<br /> <br /> <div style='BACKGROUND-COLOR: #ccffcc; padding: 10px 10px 5px 10px; MARGIN: 0px 10px 10px 10px; FONT-FAMILY: Malgun Gothic, Consolas, Verdana; COLOR: #005555'> f:\nuget_root\microsoft.vssdk.buildtools\16.0.298\tools\VSSDK\Microsoft.VsSDK.targets(88,5): error MSB4062: The "CompareBuildTaskVersion" task could not be loaded from the assembly f:\nuget_root\microsoft.vssdk.buildtools\16.0.298\tools\VSSDK\Microsoft.VisualStudio.Sdk.BuildTasks.16.0.dll. Could not load file or assembly 'file:///f:\nuget_root\microsoft.vssdk.buildtools\16.0.298\tools\VSSDK\Microsoft.VisualStudio.Sdk.BuildTasks.16.0.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.<br /> </div><br /> <br /> 해당 프로젝트에서 Nuget 참조를 하고 있는 Microsoft.VisualStudio.SDK, Microsoft.VSSDK.BuildTools가 너무 구 버전이라 그런 것입니다. 최신 버전으로 업데이트하고 다시 빌드하면 해당 현상은 없어집니다.<br /> </p><br /> <br /><hr /><span style='color: Maroon'>[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]</span> </div>
첨부파일
스팸 방지용 인증 번호
1266
(왼쪽의 숫자를 입력해야 합니다.)