为什么在 Linux 上运行 .net core 控制台应用程序时出现“资源文件”resx 错误?

use*_*059 3 .net .net-core

dotnet run --project ProjectName.csproj
Run Code Online (Sandbox Code Playgroud)

我得到的错误是:

/usr/share/dotnet/sdk/2.2.301/Microsoft.Common.CurrentVersion.targets(3046,5):错误 MSB3552:找不到资源文件“**/*.resx”。[/路径/项目名称.csproj]

我的 ProjectName.csproj 不包含任何资源:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.1</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0" />
    <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.2.0" />
    <PackageReference Include="MongoDB.Driver" Version="2.8.1" />
    <PackageReference Include="ServiceStack.Kestrel" Version="5.5.0" />
    <PackageReference Include="ServiceStack.Server" Version="5.5.0" />
  </ItemGroup>

  <ItemGroup>
    <None Update="appsettings.Development.json">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </None>
    <None Update="appsettings.Production.json">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </None>
  </ItemGroup>

</Project>
Run Code Online (Sandbox Code Playgroud)

use*_*059 7

项目文件夹有一个名为'd:\something'

$ ls
ProjectName.csproj   'd:\something'
Run Code Online (Sandbox Code Playgroud)

删除该文件夹后,应用程序启动。

csproj 或任何源文件均未引用/提及该文件夹。