blob: 0187eedc763c49776c23d3bd7084f75e73553bad [file] [log] [blame]
Henrique Mendonçada7982e2013-05-31 18:20:42 +02001<?xml version="1.0" encoding="utf-8"?>
Jens Geyerf6701812013-05-06 23:48:00 +02002<!--
3 Licensed to the Apache Software Foundation (ASF) under one
4 or more contributor license agreements. See the NOTICE file
5 distributed with this work for additional information
6 regarding copyright ownership. The ASF licenses this file
7 to you under the Apache License, Version 2.0 (the
8 "License"); you may not use this file except in compliance
9 with the License. You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing,
14 software distributed under the License is distributed on an
15 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 KIND, either express or implied. See the License for the
17 specific language governing permissions and limitations
18 under the License.
Roger Meiere983cf52012-10-07 19:15:04 +000019-->
20<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
21 <PropertyGroup>
22 <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
23 <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
24 <ProductVersion>9.0.21022</ProductVersion>
25 <SchemaVersion>2.0</SchemaVersion>
26 <ProjectGuid>{48DD757F-CA95-4DD7-BDA4-58DB6F108C2C}</ProjectGuid>
27 <OutputType>Exe</OutputType>
28 <AppDesignerFolder>Properties</AppDesignerFolder>
29 <RootNamespace>ThriftTest</RootNamespace>
30 <AssemblyName>ThriftTest</AssemblyName>
31 <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
32 <FileAlignment>512</FileAlignment>
33 <IsWebBootstrapper>false</IsWebBootstrapper>
34 <FileUpgradeFlags>
35 </FileUpgradeFlags>
36 <OldToolsVersion>3.5</OldToolsVersion>
37 <UpgradeBackupLocation />
38 <PublishUrl>publish\</PublishUrl>
39 <Install>true</Install>
40 <InstallFrom>Disk</InstallFrom>
41 <UpdateEnabled>false</UpdateEnabled>
42 <UpdateMode>Foreground</UpdateMode>
43 <UpdateInterval>7</UpdateInterval>
44 <UpdateIntervalUnits>Days</UpdateIntervalUnits>
45 <UpdatePeriodically>false</UpdatePeriodically>
46 <UpdateRequired>false</UpdateRequired>
47 <MapFileExtensions>true</MapFileExtensions>
48 <ApplicationRevision>0</ApplicationRevision>
49 <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
50 <UseApplicationTrust>false</UseApplicationTrust>
51 <BootstrapperEnabled>true</BootstrapperEnabled>
52 </PropertyGroup>
53 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
54 <DebugSymbols>true</DebugSymbols>
55 <DebugType>full</DebugType>
56 <Optimize>false</Optimize>
57 <OutputPath>bin\Debug\</OutputPath>
58 <DefineConstants>DEBUG;TRACE</DefineConstants>
59 <ErrorReport>prompt</ErrorReport>
60 <WarningLevel>4</WarningLevel>
61 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
62 </PropertyGroup>
63 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
64 <DebugType>pdbonly</DebugType>
65 <Optimize>true</Optimize>
66 <OutputPath>bin\Release\</OutputPath>
67 <DefineConstants>TRACE</DefineConstants>
68 <ErrorReport>prompt</ErrorReport>
69 <WarningLevel>4</WarningLevel>
70 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
71 </PropertyGroup>
72 <ItemGroup>
73 <Reference Include="System" />
Henrique Mendonçada7982e2013-05-31 18:20:42 +020074 <Reference Include="ThriftImpl">
75 <HintPath>ThriftImpl.dll</HintPath>
76 </Reference>
77 <Reference Include="nunit.framework, Version=2.6.0.12051, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77">
78 <Private>False</Private>
Roger Meiere983cf52012-10-07 19:15:04 +000079 </Reference>
80 </ItemGroup>
81 <ItemGroup>
Henrique Mendonçada7982e2013-05-31 18:20:42 +020082 <Compile Include="gen-csharp\Thrift\Test\*.cs" />
Roger Meiere983cf52012-10-07 19:15:04 +000083 <Compile Include="Program.cs" />
84 <Compile Include="Properties\AssemblyInfo.cs" />
85 <Compile Include="TestClient.cs" />
86 <Compile Include="TestServer.cs" />
Henrique Mendonçada7982e2013-05-31 18:20:42 +020087 <Compile Include="RoundTripTest.cs" />
Roger Meiere983cf52012-10-07 19:15:04 +000088 </ItemGroup>
89 <ItemGroup>
90 <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
91 <Visible>False</Visible>
92 <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
93 <Install>false</Install>
94 </BootstrapperPackage>
95 <BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
96 <Visible>False</Visible>
97 <ProductName>.NET Framework 2.0 %28x86%29</ProductName>
98 <Install>false</Install>
99 </BootstrapperPackage>
100 <BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
101 <Visible>False</Visible>
102 <ProductName>.NET Framework 3.0 %28x86%29</ProductName>
103 <Install>false</Install>
104 </BootstrapperPackage>
105 <BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
106 <Visible>False</Visible>
107 <ProductName>.NET Framework 3.5</ProductName>
108 <Install>true</Install>
109 </BootstrapperPackage>
110 <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
111 <Visible>False</Visible>
112 <ProductName>.NET Framework 3.5 SP1</ProductName>
113 <Install>false</Install>
114 </BootstrapperPackage>
115 <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
116 <Visible>False</Visible>
117 <ProductName>Windows Installer 3.1</ProductName>
118 <Install>true</Install>
119 </BootstrapperPackage>
120 </ItemGroup>
121 <ItemGroup>
Jens Geyerf6701812013-05-06 23:48:00 +0200122 <ProjectReference Include="..\..\src\Thrift.csproj">
Roger Meiere983cf52012-10-07 19:15:04 +0000123 <Project>{499EB63C-D74C-47E8-AE48-A2FC94538E9D}</Project>
124 <Name>Thrift</Name>
125 </ProjectReference>
126 </ItemGroup>
127 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Jens Geyerf6701812013-05-06 23:48:00 +0200128 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
129 Other similar extension points exist, see Microsoft.Common.targets.
130 <Target Name="BeforeBuild">
131 </Target>
132 <Target Name="AfterBuild">
133 </Target>
Roger Meiere983cf52012-10-07 19:15:04 +0000134 -->
135 <PropertyGroup>
Jens Geyerf6701812013-05-06 23:48:00 +0200136 <PreBuildEvent>rmdir /s /q "$(ProjectDir)gen-csharp"
137del /f /q "$(ProjectDir)ThriftImpl.dll"
138SET OUTPUT_DIR=$(ProjectDir)
139SET THRIFT_FILE=$(ProjectDir)\..\..\..\..\test\ThriftTest.thrift
140for %25%25I in ("%25OUTPUT_DIR%25") do set SHORT_DIR=%25%25~fsI
141for %25%25I in ("%25THRIFT_FILE%25") do set THRIFT_SHORT=%25%25~fsI
142"$(ProjectDir)\..\..\..\..\compiler\cpp\thrift.exe" --gen csharp -o %25SHORT_DIR%25 %25THRIFT_SHORT%25
143$(MSBuildToolsPath)\Csc.exe /t:library /out:"$(ProjectDir)ThriftImpl.dll" /recurse:"$(ProjectDir)gen-csharp"\* /reference:"$(ProjectDir)..\..\src\bin\Debug\Thrift.dll"</PreBuildEvent>
Roger Meiere983cf52012-10-07 19:15:04 +0000144 </PropertyGroup>
Henrique Mendonçada7982e2013-05-31 18:20:42 +0200145</Project>