CreateAppHost 任务意外失败。MSB4018

roo*_*z11 12 visual-studio asp.net-core visual-studio-2019

当我尝试构建我的 ASP.NET Core 项目时,我继续在 Visual Studio 2019 中收到此错误消息。当我第二次构建它时,错误消失了。

有谁知道这个错误意味着什么以及如何摆脱它?

谢谢!

<CreateAppHost AppHostSourcePath="$(AppHostSourcePath)"
                   AppHostDestinationPath="$(AppHostIntermediatePath)"
                   AppBinaryName="$(AssemblyName)$(TargetExt)"
                   IntermediateAssembly="@(IntermediateAssembly->'%(FullPath)')"
                   WindowsGraphicalUserInterface="$(_UseWindowsGraphicalUserInterface)"
                   Retries="$(CopyRetryCount)"
                   RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)"
                   />
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

sim*_*ood 5

尝试使用“作为管理员”选项运行 Visual Studio。

在此处输入图片说明

完成构建所需的一些文件可能需要管理员权限才能访问它们。通常运行的 Visual Studio 没有足够的权限来访问它们