netcoreapp3.1

Error CS0579 Duplicate 'global::System.Runtime.Versioning.TargetFrameworkAttribute'

被刻印的时光 ゝ 提交于 2020-07-09 12:47:08
问题 When I build my application I get the following error Error CS0579 Duplicate 'global::System.Runtime.Versioning.TargetFrameworkAttribute' attribute MyUIApp D:\MyUIApp\obj\Debug\netcoreapp3.1\.NETCoreApp,Version=v3.1.AssemblyAttributes.cs 4 Active The following code is autogenerated in the obj/Debug/netcoreapp3.1 folder // using System; using System.Reflection; [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")] I have a

NU1201 Project is not compatible with net472 when a .netcore dll is referenced from a multiframework console app

二次信任 提交于 2020-07-09 11:54:12
问题 I am trying to make a console application so as to troubleshoot my question here I have put the source on Git Hub The console application project file is <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFrameworks>netcoreapp3.1;net472</TargetFrameworks> </PropertyGroup> <ItemGroup> <ProjectReference Include="..\mopcore\MopCore.csproj" /> <ProjectReference Include="..\MopFW\MopFW.csproj" /> </ItemGroup> </Project> Program.cs is using System; using System

Target V4.7.2 and netcoreapp3.1 in same project. Value does not fall witnin the expected range

隐身守侯 提交于 2020-07-03 11:51:46
问题 I want my Framework 4.7.2 code to use a library that targets netcoreapp3.1 Nuget indicates that the library is referenced, yet I do not see it in the list of references. I tried editing the project to change the TargetFrameworkVersion from <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> to <TargetFrameworkVersion>v4.7.2;netcoreapp3.1</TargetFrameworkVersion> But saving this change causes a message And I cannot re-load the project I tried chainging to <TargetFrameworkVersion