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)
项目文件夹有一个名为'd:\something'
$ ls
ProjectName.csproj 'd:\something'
Run Code Online (Sandbox Code Playgroud)
删除该文件夹后,应用程序启动。
csproj 或任何源文件均未引用/提及该文件夹。
| 归档时间: |
|
| 查看次数: |
3164 次 |
| 最近记录: |