支持.Net2.0和.Net4.0两种框架编译
nnhy 编写于 2012-04-26 19:21:24
X
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>8.0.30703</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{5A8EF50C-3394-4C1E-99F0-33EFE8691CB0}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>NewLife.Net</RootNamespace>
    <AssemblyName>NewLife.Net</AssemblyName>
    <FileAlignment>512</FileAlignment>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>..\..\Bin\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <DocumentationFile>..\..\Bin\NewLife.Net.XML</DocumentationFile>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>..\..\Bin\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <DocumentationFile>..\..\Bin\NewLife.Net.XML</DocumentationFile>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Net4Debug|AnyCPU'">
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    <DebugSymbols>true</DebugSymbols>
    <OutputPath>..\..\Bin4\</OutputPath>
    <DefineConstants>TRACE;DEBUG;NET4</DefineConstants>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    <DocumentationFile>..\..\Bin4\NewLife.Net.XML</DocumentationFile>
    <DebugType>full</DebugType>
    <PlatformTarget>AnyCPU</PlatformTarget>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Net4Release|AnyCPU'">
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    <OutputPath>..\..\Bin4\</OutputPath>
    <DefineConstants>TRACE;NET4</DefineConstants>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    <DocumentationFile>..\..\Bin4\NewLife.Net.XML</DocumentationFile>
    <Optimize>true</Optimize>
    <DebugType>pdbonly</DebugType>
    <PlatformTarget>AnyCPU</PlatformTarget>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Configuration" />
    <Reference Include="System.Data" />
    <Reference Include="System.Web" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.Web.Services" />
    <Reference Include="System.Windows.Forms" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Application\AppTest.cs" />
    <Compile Include="Application\ChargenServer.cs" />
    <Compile Include="Application\DaytimeServer.cs" />
    <Compile Include="Application\DiscardServer.cs" />
    <Compile Include="Application\EchoServer.cs" />
    <Compile Include="Application\SerialServer.cs" />
    <Compile Include="Common\ClientMessageProvider.cs" />
    <Compile Include="Common\IStatistics.cs" />
    <Compile Include="Common\NetException.cs" />
    <Compile Include="Common\NetUri.cs" />
    <Compile Include="Common\SessionMessageProvider.cs" />
    <Compile Include="Common\Statistics.cs" />
    <Compile Include="Common\ServerMessageProvider.cs" />
    <Compile Include="Dhcp\DchpMessageType.cs" />
    <Compile Include="Dhcp\DhcpEntity.cs" />
    <Compile Include="DNS\DNSOpcodeType.cs" />
    <Compile Include="DNS\DNSRcodeType.cs" />
    <Compile Include="DNS\DNS_NS.cs" />
    <Compile Include="DNS\DNS_MX.cs" />
    <Compile Include="DNS\DNS_SOA.cs" />
    <Compile Include="DNS\DNS_TXT.cs" />
    <Compile Include="DNS\NetBIOS.cs" />
    <Compile Include="DNS\DNS_NB.cs" />
    <Compile Include="Fetion\WapFetion.cs" />
    <Compile Include="FTP\FTPClient.cs" />
    <Compile Include="FTP\FTPItem.cs" />
    <Compile Include="FTP\FTPServer.cs" />
    <Compile Include="FTP\FTPSession.cs" />
    <Compile Include="FTP\FTPTransferMode.cs" />
    <Compile Include="Http\ByteParser.cs" />
    <Compile Include="Http\ByteString.cs" />
    <Compile Include="Http\HttpCache.cs" />
    <Compile Include="Http\HttpServer.cs" />
    <Compile Include="Http\HttpSession.cs" />
    <Compile Include="Http\Messages.cs" />
    <Compile Include="Http\NtlmAuth.cs" />
    <Compile Include="Http\WebHost.cs" />
    <Compile Include="Http\WebRequest.cs" />
    <Compile Include="Http\WebServer.cs" />
    <Compile Include="Http\WebSession.cs" />
    <Compile Include="ModBus\Diagnostics.cs" />
    <Compile Include="ModBus\Interface.cs" />
    <Compile Include="ModBus\MBEntity.cs" />
    <Compile Include="ModBus\MBFunction.cs" />
    <Compile Include="ModBus\ReadRegister.cs" />
    <Compile Include="ModBus\WriteRegister.cs" />
    <Compile Include="NetService.cs" />
    <Compile Include="DNS\DNSClient.cs" />
    <Compile Include="DNS\DNSEntity.cs" />
    <Compile Include="DNS\DNSHeader.cs" />
    <Compile Include="DNS\DNSNameAccessor.cs" />
    <Compile Include="DNS\DNSRecord.cs" />
    <Compile Include="DNS\DNSServer.cs" />
    <Compile Include="DNS\DNS_AAAA.cs" />
    <Compile Include="DNS\DNS_CNAME.cs" />
    <Compile Include="DNS\DNS_PTR.cs" />
    <Compile Include="Http\HttpHeader.cs" />
    <Compile Include="NTP\NTPClient.cs" />
    <Compile Include="Application\StreamServer.cs" />
    <Compile Include="Application\TimeServer.cs" />
    <Compile Include="Common\NetHelper.cs" />
    <Compile Include="IO\FileClient.cs" />
    <Compile Include="IO\FileFormat.cs" />
    <Compile Include="IO\FileServer.cs" />
    <Compile Include="DNS\DNSQueryType.cs" />
    <Compile Include="DNS\DNS_A.cs" />
    <Compile Include="NTP\NTPEnum.cs" />
    <Compile Include="NTP\NTP.cs" />
    <Compile Include="P2P\HoleServer.cs" />
    <Compile Include="P2P\P2PClient.cs" />
    <Compile Include="P2P\P2PTest.cs" />
    <Compile Include="Pop3\Pop3Client.cs" />
    <Compile Include="Pop3\Pop3Server.cs" />
    <Compile Include="Pop3\Pop3Session.cs" />
    <Compile Include="Proxy\HttpProxy.cs" />
    <Compile Include="Proxy\HttpReverseProxy.cs" />
    <Compile Include="Proxy\IProxy.cs" />
    <Compile Include="Proxy\IProxySession.cs" />
    <Compile Include="Proxy\NATSession.cs" />
    <Compile Include="Proxy\ProxySession.cs" />
    <Compile Include="Proxy\ProxyBase.cs" />
    <Compile Include="Proxy\NATProxy.cs" />
    <None Include="SNTP\SNTPClient.cs" />
    <Compile Include="Proxy\Socks5\Socks5Entity.cs" />
    <Compile Include="Proxy\Socks5\Socks5Client.cs" />
    <Compile Include="Proxy\Socks5\Socks5Server.cs" />
    <Compile Include="Sdp\SdpAttribute.cs" />
    <Compile Include="Sdp\SdpConnection.cs" />
    <Compile Include="Sdp\SdpMediaDescription.cs" />
    <Compile Include="Sdp\SdpMessage.cs" />
    <Compile Include="Sdp\SdpOrigin.cs" />
    <Compile Include="Sdp\SdpTime.cs" />
    <Compile Include="SGIP\SGIPBind.cs" />
    <Compile Include="SGIP\SGIPClient.cs" />
    <Compile Include="SGIP\SGIPDeliver.cs" />
    <Compile Include="SGIP\SGIPEntity.cs" />
    <Compile Include="SGIP\SGIPReport.cs" />
    <Compile Include="SGIP\SGIPServer.cs" />
    <Compile Include="SGIP\SGIPSubmit.cs" />
    <Compile Include="SGIP\SGIPUnbind.cs" />
    <Compile Include="Sip\Message\SipACValue.cs" />
    <Compile Include="Sip\Message\SipNameAddress.cs" />
    <Compile Include="Sip\Message\SipValue.cs" />
    <Compile Include="Sip\Message\SipValueWithParams.cs" />
    <Compile Include="Sip\Message\SipAddressParam.cs" />
    <Compile Include="Sip\Message\Sip.cs" />
    <Compile Include="Sip\Message\SipAlertParam.cs" />
    <Compile Include="Sip\Message\SipContactParam.cs" />
    <Compile Include="Sip\Message\SipContentDisposition.cs" />
    <Compile Include="Sip\Message\SipEncoding.cs" />
    <Compile Include="Sip\Message\SipErrorUri.cs" />
    <Compile Include="Sip\Message\SipEvent.cs" />
    <Compile Include="Sip\Message\SipFrom.cs" />
    <Compile Include="Sip\Message\SipHiEntry.cs" />
    <Compile Include="Sip\Message\SipIdentityInfo.cs" />
    <Compile Include="Sip\Message\SipInfo.cs" />
    <Compile Include="Sip\Message\SipJoin.cs" />
    <Compile Include="Smtp\SmtpClient.cs" />
    <Compile Include="Smtp\SmtpServer.cs" />
    <Compile Include="Smtp\SmtpSession.cs" />
    <Compile Include="Smtp\RelayServer.cs" />
    <Compile Include="Smtp\RelaySession.cs" />
    <Compile Include="Sockets\ReceivedEventArgs.cs" />
    <Compile Include="Sockets\INetSession.cs" />
    <Compile Include="Sockets\ISocket.cs" />
    <Compile Include="Sockets\ISocketAddress.cs" />
    <Compile Include="Sockets\ISocketClient.cs" />
    <Compile Include="Sockets\ISocketServer.cs" />
    <Compile Include="Sockets\ISocketSession.cs" />
    <Compile Include="Sockets\Netbase.cs" />
    <Compile Include="Sockets\NetServer.cs" />
    <Compile Include="Sockets\NetSession.cs" />
    <Compile Include="Sockets\SocketBase.cs" />
    <Compile Include="Sockets\SocketClient.cs" />
    <Compile Include="Sockets\SocketPool.cs" />
    <Compile Include="Sockets\SocketServer.cs" />
    <Compile Include="Sockets\NetEventArgs.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="Sockets\SocketStream.cs" />
    <Compile Include="Stun\StunAttribute.cs" />
    <Compile Include="Stun\StunClient.cs" />
    <Compile Include="Stun\StunMessage.cs" />
    <Compile Include="Stun\StunMessageType.cs" />
    <Compile Include="Stun\StunNetType.cs" />
    <Compile Include="Stun\StunResult.cs" />
    <Compile Include="Stun\StunServer.cs" />
    <Compile Include="Tcp\TcpClientX.cs" />
    <Compile Include="Tcp\TcpServer.cs" />
    <Compile Include="Tcp\TcpSessionCollection.cs" />
    <Compile Include="TDP\TDPClient.cs" />
    <Compile Include="TDP\TDPFlags.cs" />
    <Compile Include="TDP\TDPPacket.cs" />
    <Compile Include="Telnet\TelnetClient.cs" />
    <Compile Include="Telnet\TelnetServer.cs" />
    <Compile Include="Telnet\TelnetSession.cs" />
    <Compile Include="Udp\IUdp.cs" />
    <Compile Include="Udp\UdpClientX.cs" />
    <Compile Include="Udp\UdpServer.cs" />
    <Compile Include="Udp\UdpSession.cs" />
    <Compile Include="UPnP\Entities\Device.cs" />
    <Compile Include="UPnP\Entities\Envelope.cs" />
    <Compile Include="UPnP\Entities\InternetGatewayDevice.cs" />
    <Compile Include="UPnP\Entities\PortMappingEntry.cs" />
    <Compile Include="UPnP\Entities\Service.cs" />
    <Compile Include="UPnP\Entities\SpecVersion.cs" />
    <Compile Include="UPnP\UPnPAction.cs" />
    <Compile Include="UPnP\UPnPClient.cs" />
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="App.config" />
    <None Include="TDP\TDP.pdf" />
    <None Include="架构设计\网络模型.cd" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="说明.txt" />
    <EmbeddedResource Include="UpdateInfo.txt" />
    <Content Include="架构设计\NewLife_SocketClient.jpg" />
    <Content Include="架构设计\NewLife_TcpServer.jpg" />
    <Content Include="架构设计\NewLife_TCP状态变迁.jpg" />
    <Content Include="架构设计\NewLife_UdpServer.jpg" />
  </ItemGroup>
  <ItemGroup />
  <ItemGroup>
    <ProjectReference Include="..\NewLife.Core\NewLife.Core.csproj">
      <Project>{5813C22E-EEB3-4DEE-A45C-BB218041193A}</Project>
      <Name>NewLife.Core</Name>
    </ProjectReference>
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>