項目的屬性也用了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