首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >MSB3073:在Visual Studio 2019 Asp.NetCore项目中,命令dotnet bundle clean退出,代码为1

MSB3073:在Visual Studio 2019 Asp.NetCore项目中,命令dotnet bundle clean退出,代码为1
EN

Stack Overflow用户
提问于 2019-05-23 16:04:57
回答 1查看 833关注 0票数 0

我在Visual Studio2019 Asp.NetCore项目中得到了错误MSB3073: The command dotnet bundle clean exited with code 1。这个问题只有在我昨天更新了我的Visual Studio之后才会出现。

代码语言:javascript
运行
复制
> dotnet bundle clean

NuGet.Packaging.Core.PackagingException: Der Fallbackpaketordner "C:\ProgramData\Xamarin\NuGet" wurde nicht gefunden.
   at NuGet.Packaging.FallbackPackagePathResolver..ctor(String userPackageFolder, IEnumerable`1 fallbackPackageFolders)
   at Microsoft.DotNet.Cli.Utils.LockFileExtensions.GetPackageDirectory(LockFile lockFile, LockFileTargetLibrary library)
   at Microsoft.DotNet.Cli.Utils.PackagedCommandSpecFactory.GetCommandFilePath(LockFile lockFile, LockFileTargetLibrary toolLibrary, LockFileItem runtimeAssembly)
   at Microsoft.DotNet.Cli.Utils.PackagedCommandSpecFactory.CreateCommandSpecFromLibrary(LockFileTargetLibrary toolLibrary, String commandName, IEnumerable`1 commandArguments, IEnumerable`1 allowedExtensions, LockFile lockFile, CommandResolutionStrategy commandResolutionStrategy, String depsFilePath, String runtimeConfigPath)
   at Microsoft.DotNet.Cli.Utils.ProjectToolsCommandResolver.ResolveCommandSpecFromToolLibrary(SingleProjectInfo toolLibraryRange, String commandName, IEnumerable`1 args, IProject project)
   at Microsoft.DotNet.Cli.Utils.ProjectToolsCommandResolver.ResolveCommandSpecFromAllToolLibraries(IEnumerable`1 toolsLibraries, String commandName, IEnumerable`1 args, IProject project)
   at Microsoft.DotNet.Cli.Utils.ProjectToolsCommandResolver.ResolveFromProjectTools(CommandResolverArguments commandResolverArguments)
   at Microsoft.DotNet.Cli.Utils.ProjectToolsCommandResolver.Resolve(CommandResolverArguments commandResolverArguments)
   at Microsoft.DotNet.Cli.Utils.CompositeCommandResolver.Resolve(CommandResolverArguments commandResolverArguments)
   at Microsoft.DotNet.Cli.Utils.CommandResolver.TryResolveCommandSpec(ICommandResolverPolicy commandResolverPolicy, String commandName, IEnumerable`1 args, NuGetFramework framework, String configuration, String outputPath, String applicationName)
   at Microsoft.DotNet.Cli.Utils.Command.Create(ICommandResolverPolicy commandResolverPolicy, String commandName, IEnumerable`1 args, NuGetFramework framework, String configuration, String outputPath, String applicationName)
   at Microsoft.DotNet.Cli.Utils.Command.Create(String commandName, IEnumerable`1 args, NuGetFramework framework, String configuration, String outputPath, String applicationName)
   at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient)
   at Microsoft.DotNet.Cli.Program.Main(String[] args)

Visual Studio版本为16.1.0。

我不知道为什么dotnet使用备用文件夹。我也不知道为什么文件夹不在那里,因为我在Visual Studio 2019中安装了Xamarin支持。

EN

Stack Overflow用户

回答已采纳

发布于 2019-05-23 16:04:57

这个问题可以很容易地解决:只需将文件夹C:\ProgramData\Xamarin\NuGet添加为空文件夹即可避免此问题。

票数 0
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56270673

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档