“GetDeploymentPathFromVsixManifest"任务意外失败 [英] The "GetDeploymentPathFromVsixManifest" task failed unexpectedly

查看:60
本文介绍了“GetDeploymentPathFromVsixManifest"任务意外失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装 visual studio 2017 后,VSIX 项目 出现错误……有什么解决问题的建议吗?

After installation of visual studio 2017 getting his error for VSIX projects ... any suggestion to resolve the issue?

Severity    Code    Description Project File    Line    Suppression State
Error       The "GetDeploymentPathFromVsixManifest" task failed unexpectedly.
System.Runtime.InteropServices.COMException (0x80070005): ExternalSettingsManager::GetScopePaths failed to initialize PkgDefManager for C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe
   at Microsoft.VisualStudio.Settings.ExternalSettingsManager.GetScopePaths(String applicationPath, String suffixOrName, String vsVersion, Boolean isLogged, Boolean isForIsolatedApplication)
   at Microsoft.VisualStudio.Settings.ExternalSettingsManager.CreateForApplication(String applicationPath)
   at Microsoft.VsSDK.Build.Tasks.ExtensionManagerUtilities.GetSettingsManagerForDevenv(String rootSuffix)
   at Microsoft.VsSDK.Build.Tasks.GetDeploymentPathFromVsixManifest.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() MasterData  

推荐答案

这个错误对我来说是随机出现的,没有对代码做任何更改.删除以下文件夹后它消失了:

This error appeared for me randomly without doing any change in the code. It disappeared after removing the following folders:

C:\Users\\AppData\Local\Microsoft\VisualStudio\15.0_765fd02aExpC:\Users\\AppData\Roaming\Microsoft\VisualStudio\15.0_765fd02aExp

C:\Users\\AppData\Local\Microsoft\VisualStudio\15.0_765fd02aExp C:\Users\\AppData\Roaming\Microsoft\VisualStudio\15.0_765fd02aExp

之后我可以再次构建而不会出错.

After it I am able to build again without error.

要查找我建议使用一些文件搜索应用程序并使用字符串15.0_Exp*"的文件夹.

To find the folders I recommend to use some file search application and use the string "15.0_Exp*".

这篇关于“GetDeploymentPathFromVsixManifest"任务意外失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆