“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*".