Check out example codes for "while coding c# i get the error : "Duplicate 'global::System.Runtime.Versioning.TargetFrameworkAttribute' attribute [first_better_project]"". It will help you in understanding the concepts better.
Code Example 1
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
Code Example 2
<ItemGroup>
<DefaultItemExcludes>$(DefaultItemExcludes);obj/**</DefaultItemExcludes>
</ItemGroup>
Code Example 3
<Project>
<PropertyGroup>
<BaseIntermediateOutputPath>obj\$(TargetFramework)</BaseIntermediateOutputPath>
<MSBuildProjectExtensionsPath>obj\</MSBuildProjectExtensionsPath>
</PropertyGroup>
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<PropertyGroup>
<TargetFrameworks>net45;netstandard2.0</TargetFrameworks>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<AssemblyName>Foo</AssemblyName>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<OutputPath>..\..\Builds\$(TargetFramework)\$(Configuration)\</OutputPath>
<WarningLevel>4</WarningLevel>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
</Project>
Learn ReactJs, React Native from akashmittal.com