새 버전을 Visual Studio Gallery에 푸시 할 때 내 확장 프로그램이 자동으로 업데이트되도록하려고합니다. 이를 달성하는 방법에 대한 몇 가지 지침이 있지만, 몇 살이고 적용되지 않을 수도 있습니다. Query_ExecuteCompleted
에서Visual Studio Extension 자동 업데이트
var _extensionRepository = (IVsExtensionRepository)Microsoft.VisualStudio.Shell.Package.GetGlobalService(typeof(SVsExtensionRepository));
var query = _extensionRepository.CreateQuery<VSGalleryEntry>(false, true)
.OrderByDescending(n => n.Ranking)
.Skip(0)
.Take(25) as IVsExtensionRepositoryQuery<VSGalleryEntry>;
query.ExecuteCompleted += Query_ExecuteCompleted;
query.ExecuteAsync();
내가 서버에서 예외를 수신하고 있습니다 : 우선 들어
, 나는 다음과 같이IVsExtensionRepository
를 조회하기 위해 노력하고있어 "원격 서버에서 오류를 반환했습니다 : (400) 잘못된 요청 . "
스택 트레이스가 제공된다 :
서버 스택 트레이스 : System.Runtime.AsyncResult.End [TAsyncResult (IAsyncResult를 결과)에 System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End에서 (SendAsyncResult 결과)에 System.ServiceModel.Channels.ServiceChannel.EndCall (문자열 작용 [] 아웃, 결과 된 IAsyncResult) System.ServiceModel.Channels.ServiceChannelProxy.InvokeEndService에서 (methodCall을 IMethodCallMessage, ProxyOperationRuntime 동작)에 System.ServiceModel.Channels 개체. ServiceChannelProxy.Invoke (IMessage 메시지)
서비스는 다음 주소에서 호스팅됩니다. https://visualstudiogallery.msdn.microsoft.com/services/dev12/extension.svc
Visual Studio 갤러리에서 자동으로 업데이트되는 Visual Studio 확장 프로그램을 만드는 방법을 아는 사람이 있습니까? IVsExtensionRepository
을 통해 또는 수동으로?
흠, 패킷 추적을 설정하고 유효하지 않은 쿼리를 확인해야 할 수 있습니다. – JaredPar
그래, 내가 그걸 시도 할 것 같아. SSL을 통한 모든 것이지만, 여전히 가능하다고 생각합니다. 방법을 배우려면 시간이 좀 걸릴 것입니다. – JoshVarty