There will be a few things you need to change. First the <TargetFrameworks>
tag is the correct one for multi targeting and ;
is the separator.
DNX was deprecated during development of RC2, so last version which supported DNX was RC1. The dnxcore5x
(and later dotnet5.x
) moniker got replaced with netstandard1.x
(for Class libraries) and netcoreapp1.x
for applications. dnx4xx
got deprecated as a whole and net4xx
should be used.
Additionally, when you target .NET Framework (alone or with .NET Core/NetStandard), you will need to define a runtime identifier:
<RuntimeIdentifier>win7-x86</RuntimeIdentifier>
or
<RuntimeIdentifier>win7-x64</RuntimeIdentifier>
Or whichever you want to be the default.
Update
Just as an additional information. When you target more than one platform, you need to use conditionals for package resolution, i.e. Condition="'$(TargetFramework)' == '<targetmoniker>'
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp1.1'">
<PackageReference Include="Microsoft.NETCore.App">
<Version>1.0.1</Version>
</PackageReference>
</ItemGroup>
Otherwise you may get package restore errors
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…