Merge pull request #733 from amoiseev-softheme/bugfix/monofix
[mono.git] / mcs / class / Mono.Http / Mono.Http-net_4_5.csproj
index c1106ae9dd536e6c4641a870bc779ba60712fc25..2223c3b8aa6485d41495452ba0b792fe3b1b45f9 100644 (file)
@@ -1,61 +1,62 @@
 <?xml version="1.0" encoding="utf-8"?>\r
-<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
   <PropertyGroup>\r
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>\r
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>\r
     <ProductVersion>9.0.30729</ProductVersion>\r
     <SchemaVersion>2.0</SchemaVersion>\r
-    <ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>\r
+    <ProjectGuid>{9F93BC7A-F061-4AF5-AF3C-F81692D20E89}</ProjectGuid>\r
     <OutputType>Library</OutputType>\r
-    <NoWarn>1699</NoWarn>\r
-    <OutputPath>./../../class/lib/net_4_5</OutputPath>\r
-    <DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>\r
-    <NoStdLib>true</NoStdLib>\r
+    <NoWarn>1699,618</NoWarn>\r
+    <OutputPath>bin\Debug\Mono.Http-net_4_5</OutputPath>\r
+    <NoStdLib>True</NoStdLib>\r
+    <NoConfig>True</NoConfig>\r
     \r
     <AppDesignerFolder>Properties</AppDesignerFolder>\r
-    <RootNamespace>mscorlib</RootNamespace>\r
+    <RootNamespace>\r
+    </RootNamespace>\r
     <AssemblyName>Mono.Http</AssemblyName>\r
-    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>\r
+    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>\r
     <FileAlignment>512</FileAlignment>\r
-    <StartupObject>\r
-    </StartupObject>\r
   </PropertyGroup>\r
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">\r
     <DebugSymbols>true</DebugSymbols>\r
     <DebugType>full</DebugType>\r
-    <NoWarn>1699</NoWarn>\r
-    <Optimize>true</Optimize>\r
-    <DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>\r
+    <NoWarn>1699,618</NoWarn>\r
+    <Optimize>false</Optimize>\r
+    <DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>\r
     <ErrorReport>prompt</ErrorReport>\r
     <WarningLevel>4</WarningLevel>\r
-    <AdditionalLibPaths>./../../class/lib/net_4_5</AdditionalLibPaths>\r
   </PropertyGroup>\r
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">\r
     <DebugType>pdbonly</DebugType>\r
-    <NoWarn>1699</NoWarn>\r
+    <NoWarn>1699,618</NoWarn>\r
     <Optimize>true</Optimize>\r
     <DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>\r
     <ErrorReport>prompt</ErrorReport>\r
     <WarningLevel>4</WarningLevel>\r
-    <AdditionalLibPaths>./../../class/lib/net_4_5</AdditionalLibPaths>\r
+  </PropertyGroup>\r
+  <!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0, \r
+  Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This\r
+  is a problem to compile the Mono mscorlib.dll -->\r
+  <PropertyGroup>\r
+    <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>\r
   </PropertyGroup>\r
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />\r
   <ItemGroup>\r
-   <Compile Include="Assembly\AssemblyInfo.cs" />
-   <Compile Include="..\..\build\common\Consts.cs" />
-   <Compile Include="Mono.Http\GZipWebRequest.cs" />
-   <Compile Include="Mono.Http\GZipWebResponse.cs" />
-   <Compile Include="Mono.Http\GZipWriteFilter.cs" />
-   <Compile Include="Mono.Http\GZipWebRequestCreator.cs" />
-   <Compile Include="Mono.Http\NtlmClient.cs" />
-   <Compile Include="Mono.Http.Configuration\AcceptEncodingConfig.cs" />
-   <Compile Include="Mono.Http.Configuration\AcceptEncodingSectionHandler.cs" />
-   <Compile Include="Mono.Http.Modules\AcceptEncodingModule.cs" />
-   <Compile Include="Mono.Http.Modules\AuthenticationModule.cs" />
-   <Compile Include="Mono.Http.Modules\BasicAuthenticationModule.cs" />
-   <Compile Include="Mono.Http.Modules\DigestAuthenticationModule.cs" />
-\r
-  </ItemGroup>\r
+    <Compile Include="..\..\build\common\Consts.cs" />\r
+    <Compile Include="Assembly\AssemblyInfo.cs" />\r
+    <Compile Include="Mono.Http.Configuration\AcceptEncodingConfig.cs" />\r
+    <Compile Include="Mono.Http.Configuration\AcceptEncodingSectionHandler.cs" />\r
+    <Compile Include="Mono.Http.Modules\AcceptEncodingModule.cs" />\r
+    <Compile Include="Mono.Http.Modules\AuthenticationModule.cs" />\r
+    <Compile Include="Mono.Http.Modules\BasicAuthenticationModule.cs" />\r
+    <Compile Include="Mono.Http.Modules\DigestAuthenticationModule.cs" />\r
+    <Compile Include="Mono.Http\GZipWebRequest.cs" />\r
+    <Compile Include="Mono.Http\GZipWebRequestCreator.cs" />\r
+    <Compile Include="Mono.Http\GZipWebResponse.cs" />\r
+    <Compile Include="Mono.Http\GZipWriteFilter.cs" />\r
+    <Compile Include="Mono.Http\NtlmClient.cs" />\r  </ItemGroup>\r
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. \r
        Other similar extension points exist, see Microsoft.Common.targets.\r
   <Target Name="BeforeBuild">\r
   </Target>\r
   -->\r
   <PropertyGroup>\r
-    <PreBuildEvent></PreBuildEvent>\r
-  </PropertyGroup>\r
-  <ItemGroup>
-    <Reference Include="mscorlib.dll">
-      <SpecificVersion>False</SpecificVersion>
-      <HintPath>..\\lib\build\mscorlib.dll</HintPath>
-    </Reference>
-    <Reference Include="mscorlib.dll">
-      <SpecificVersion>False</SpecificVersion>
-      <HintPath>..\\lib\build\mscorlib.dll</HintPath>
-    </Reference>
-    <Reference Include="System.dll">
-      <SpecificVersion>False</SpecificVersion>
-      <HintPath>..\\lib\build\System.dll</HintPath>
-    </Reference>
-    <Reference Include="System.Xml.dll">
-      <SpecificVersion>False</SpecificVersion>
-      <HintPath>..\\lib\build\System.Xml.dll</HintPath>
-    </Reference>
-    <Reference Include="System.Web.dll">
-      <SpecificVersion>False</SpecificVersion>
-      <HintPath>..\\lib\build\System.Web.dll</HintPath>
-    </Reference>
-    <Reference Include="ICSharpCode.SharpZipLib.dll">
-      <SpecificVersion>False</SpecificVersion>
-      <HintPath>..\\lib\build\ICSharpCode.SharpZipLib.dll</HintPath>
-    </Reference>
-    <Reference Include="Mono.Security.dll">
-      <SpecificVersion>False</SpecificVersion>
-      <HintPath>..\\lib\build\Mono.Security.dll</HintPath>
-    </Reference>
-  </ItemGroup>
+    <PreBuildEvent>\r
 \r
+    </PreBuildEvent>\r
+    <PostBuildEvent>\r
+      xcopy $(TargetName).* $(ProjectDir)..\lib\net_4_5\ /Y /R /D\r
+  </PostBuildEvent>\r
+  </PropertyGroup>\r
+  <ItemGroup>\r
+    <ProjectReference Include="..\corlib\corlib-net_4_5.csproj">\r
+      <Project>{07C1F58B-9E99-47F8-A847-79EDA5157DA8}</Project>\r
+      <Name>corlib\corlib-net_4_5</Name>\r
+    </ProjectReference>\r
+    <ProjectReference Include="..\System\System-net_4_5-2.csproj">\r
+      <Project>{38FCD731-0E11-46F7-A31B-DCBE853AD8D7}</Project>\r
+      <Name>System\System-net_4_5-2</Name>\r
+    </ProjectReference>\r
+    <ProjectReference Include="..\System.XML\System.Xml-net_4_5-1.csproj">\r
+      <Project>{4ED6CCE8-8E8A-4D82-8BCA-3EA4D4203AA4}</Project>\r
+      <Name>System.XML\System.Xml-net_4_5-1</Name>\r
+    </ProjectReference>\r
+    <ProjectReference Include="..\System.Web\System.Web-net_4_5-1.csproj">\r
+      <Project>{6CC04C44-1378-4502-B134-FE6D46B1A4B4}</Project>\r
+      <Name>System.Web\System.Web-net_4_5-1</Name>\r
+    </ProjectReference>\r
+    <ProjectReference Include="..\ICSharpCode.SharpZipLib\ICSharpCode.SharpZipLib-net_4_5.csproj">\r
+      <Project>{039AD56A-E91B-4803-8328-287F70B61D14}</Project>\r
+      <Name>ICSharpCode.SharpZipLib\ICSharpCode.SharpZipLib-net_4_5</Name>\r
+    </ProjectReference>\r
+    <ProjectReference Include="..\Mono.Security\Mono.Security-net_4_5.csproj">\r
+      <Project>{99D172A2-7914-496C-9005-AA69F51195AF}</Project>\r
+      <Name>Mono.Security\Mono.Security-net_4_5</Name>\r
+    </ProjectReference>\r
+  </ItemGroup>\r
   <ItemGroup>\r
     <Folder Include="Properties\" />\r
   </ItemGroup>\r
-  \r
-</Project>\r
-
+</Project>