Azure functions Visual Studio 2019可以';t运行Azure功能项目或创建新项目

Azure functions Visual Studio 2019可以';t运行Azure功能项目或创建新项目,azure-functions,visual-studio-2019,Azure Functions,Visual Studio 2019,当Visual Studio with Azure Function项目打开时,我很幸运,我的计算机突然崩溃了。在那之后,由于同样的错误“路径中的非法字符”,我既不能运行这个项目,也不能创建一个新的Azure函数项目 同时,可以创建和运行其他类型的项目,而不会出现任何问题 我试图重新安装VS和所有.net软件包,但没有成功。 我能把问题定位吗?因此,我可以替换一些有问题的DLL或其他东西,而无需安装新的Windows 这是我设法从VS日志中检索到的错误文本: System.ArgumentExc

当Visual Studio with Azure Function项目打开时,我很幸运,我的计算机突然崩溃了。在那之后,由于同样的错误“路径中的非法字符”,我既不能运行这个项目,也不能创建一个新的Azure函数项目 同时,可以创建和运行其他类型的项目,而不会出现任何问题

我试图重新安装VS和所有.net软件包,但没有成功。 我能把问题定位吗?因此,我可以替换一些有问题的DLL或其他东西,而无需安装新的Windows

这是我设法从VS日志中检索到的错误文本:

System.ArgumentException: Illegal characters in path.at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)at System.IO.Path.Combine(String path1, String path2)at Microsoft.WebTools.Azure.Client.FunctionsFeed.FeedDataProvider.DemandReleaseDirectory(String releaseName)at Microsoft.WebTools.Azure.Client.FunctionsFeed.FeedDataProvider.TryGetLastKnownGoodToolsetForTag(IFeedTag tag, IToolset& toolset)at Microsoft.WebTools.Azure.Functions.TemplateEngine.UI.FeedHelpers.GetFrameworkForTag(IFeedDataProvider feedDataProvider, IFeedTag tag, IFileSystem fileSystem, Task`1& loadTask)at Microsoft.WebTools.Azure.Functions.TemplateEngine.UI.FeedHelpers.GetRuntimeFrameworks(IFeedDataProvider feedDataProvider, IEnvironment environment, IFileSystem fileSystem, Task`1& loadTask, IEnumerable`1& toolsetLoadTasks)at Microsoft.WebTools.Azure.Functions.TemplateEngine.UI.FunctionProjectViewModel.InitializeRuntimeFrameworkList()at Microsoft.WebTools.Azure.Functions.TemplateEngine.UI.FunctionProjectViewModel..ctor(IThreadSwitcher threadSwitcher, IFileSystem fileSystem, IVsWrappersFactory vsWrappers, IEngineBootstrapper bootstrapper, IProjectCreationMetadata metadata, IFeedDataProvider feedDataProvider, IEnvironment environment, IFunctionsRuntimeManager runtimeManager, IFunctionsProjectSettings settings)at Microsoft.VisualStudio.TemplateEngine.FunctionProjectCreator.ShowTemplateUI(IProjectCreationMetadata metadata, IReadOnlyDictionary`2 passthroughParams)at Microsoft.VisualStudio.TemplateEngine.Wizard.TemplateWizardProjectPipeline.TryInvokeUICore(IProjectCreationMetadata metadata)

可能这是一个已知的问题,有一个关于它的博客,您可以尝试使用此解决方案:


删除此文件夹:
%localappdata%/AzureFunctionsTools

完全正确!谢谢你,乔治,非常感谢,你是个救命恩人!