【发布时间】:2018-01-20 16:21:32
【问题描述】:
当我尝试使用这个 csproj 构建时,我会得到多个 CS1503
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netcoreapp2.0;net471</TargetFrameworks>
<RootNamespace>Dtl</RootNamespace>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Data.Common" Version="4.3.0" />
</ItemGroup>
</Project>
例如
string[] lines = pair.Key.Split(Environment.NewLine);
产量:
CS1503 参数 1:无法从 'string' 转换为 'char'
我试过 net461 也没有运气。如果我恢复为 netcoreapp2.0,它工作正常。
【问题讨论】:
标签: c# .net .net-core overloading