解决MySql布尔型新旧版本兼容问题,采用枚举来表示布尔型的数据表。由正向工程赋值
大石头
authored at
2018-05-15 21:21:05
X
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="Current">
<PropertyGroup>
<TargetFrameworks>net8.0;net9.0;net10.0;net8.0-windows;net10.0-windows</TargetFrameworks>
<IsPackable>false</IsPackable>
<RootNamespace>XUnitTest</RootNamespace>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<DefineConstants>TRACE</DefineConstants>
<DefineConstants Condition="$(TargetFramework.Contains('-windows'))">$(DefineConstants);__WIN__</DefineConstants>
<OutputPath>..\Bin\UnitTest</OutputPath>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>latest</LangVersion>
<IsTestProject>true</IsTestProject>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\Doc\newlife.snk</AssemblyOriginatorKeyFile>
<NoWarn>1701;1702;CA1416;CS8632</NoWarn>
</PropertyGroup>
<ItemGroup>
<Compile Remove="Applications\**" />
<Compile Remove="Expressions\**" />
<Compile Remove="Json\**" />
<Compile Remove="Remoting\**" />
<Compile Remove="TestEntity\**" />
<Compile Remove="Yun\**" />
<EmbeddedResource Remove="Applications\**" />
<EmbeddedResource Remove="Expressions\**" />
<EmbeddedResource Remove="Json\**" />
<EmbeddedResource Remove="Remoting\**" />
<EmbeddedResource Remove="TestEntity\**" />
<EmbeddedResource Remove="Yun\**" />
<None Remove="Applications\**" />
<None Remove="Expressions\**" />
<None Remove="Json\**" />
<None Remove="Remoting\**" />
<None Remove="TestEntity\**" />
<None Remove="Yun\**" />
</ItemGroup>
<ItemGroup>
<None Remove="certs\newlifex.com.pem" />
<None Remove="certs\newlifex.com.pfx" />
<None Remove="certs\newlifex.com.privatekey.pem" />
<None Remove="IO\excel.xlsx" />
</ItemGroup>
<ItemGroup>
<Compile Include="Remoting\ApiHttpClientRaceTests.cs" />
<Compile Include="Remoting\ApiHttpClientTests.cs" />
<Compile Include="Remoting\ApiHttpClientUnitTests.cs" />
<Compile Include="Remoting\ConfigServiceResolverTests.cs" />
<Compile Include="Remoting\LoadBalancerTests.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="certs\newlifex.com.pem" />
<EmbeddedResource Include="certs\newlifex.com.pfx" />
<EmbeddedResource Include="certs\newlifex.com.privatekey.pem" />
<EmbeddedResource Include="IO\excel.xlsx" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="BouncyCastle.Cryptography" Version="2.6.2" />
<PackageReference Include="Microsoft.Extensions.Primitives" Version="10.0.10" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.8.1" />
<PackageReference Include="Moq" Version="4.20.72" />
<PackageReference Include="NewLife.Modbus" Version="2.0.2026.610" />
<PackageReference Include="NewLife.Remoting" Version="3.8.2026.706" />
<PackageReference Include="NewLife.UnitTest" Version="1.1.2026.102" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<!-- System.Management 仅 net*-windows TFM 需要,用于测试 WMI 查询直接引用 -->
<ItemGroup Condition="$(TargetFramework.Contains('-windows'))">
<PackageReference Include="System.Management" Version="9.0.5" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\NewLife.Core\NewLife.Core.csproj" />
<ProjectReference Include="..\NewLife.Security\NewLife.Security.csproj" />
</ItemGroup>
<ItemGroup>
<None Update="Algorithms\sampled.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Algorithms\source2.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Algorithms\source.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Http\leaf.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Serialization\StarAgent.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="xunit.runner.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
|