[.Net 5.0] 2.好处之一(相对于.Net Framework)

项目的属性也用了Xml(第一次发布的时候写成Json了),大概是下面这个样子的spa

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>net5.0</TargetFramework>
    <RootNamespace>YKCore.PayCredit</RootNamespace>
    <Authors>毛毛虫</Authors>
    <Product>Demo</Product>
    <Description>2020.9.23新建</Description>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
    <OutputPath>c:\ykcore</OutputPath>
    <PlatformTarget>x86</PlatformTarget>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
    <OutputPath>c:\ykcore</OutputPath>
    <PlatformTarget>x86</PlatformTarget>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="YKCore.Common">
      <HintPath>C:\YKCore\net5.0\YKCore.Common.dll</HintPath>
    </Reference>
  </ItemGroup>

</Project>

鼠标双击打开了该文件,复制粘贴十分方便。code