小编sum*_*um1的帖子

错误 MSB3030 无法复制文件“C:\Users\...\WebApi3\obj\Debug\netcoreapp3.0\webapi3.exe”,因为找不到该文件

您好 Stackoverflow 社区,

我正在尝试根据项目“应用程序”属性,使用目标框架 - .NET Core 3.0 构建我的 Web 和 WebAPI、控制台应用程序,使用:

Windows 10 PRO 上的 Microsoft Visual Studio Community 2019 版本 16.5.4

我看到以下错误:

错误 MSB3030 无法复制文件“C:\Users...\WebApi3\obj\Debug\netcoreapp3.0\webapi3.exe”,因为找不到该文件

和

错误 MSB3030 无法复制文件“C:\Users...\Web\obj\Debug\netcoreapp3.0\webportal.exe”,因为找不到该文件

因此,这些项目没有建成。

感谢您花时间阅读本文。

请指教。

这是错误指向的代码部分:

    ============================================================
                                        _CopyOutOfDateSourceItemsToOutputDirectory

    Copy files that have the CopyToOutputDirectory attribute set to 'PreserveNewest'.
    ============================================================
    -->
  <Target
      Name="_CopyOutOfDateSourceItemsToOutputDirectory"
      Condition=" '@(_SourceItemsToCopyToOutputDirectory)' != '' "
      Inputs="@(_SourceItemsToCopyToOutputDirectory)"
      Outputs="@(_SourceItemsToCopyToOutputDirectory->'$(OutDir)%(TargetPath)')">

    <!--
        Not using SkipUnchangedFiles="true" because the application may want to change
        one of these files and not have an incremental build replace …
Run Code Online (Sandbox Code Playgroud)

windows asp.net msbuild visual-studio .net-core

5
推荐指数
2
解决办法
1万
查看次数

标签 统计

.net-core ×1

asp.net ×1

msbuild ×1

visual-studio ×1

windows ×1