[banshee] [YouTube] Fix the Windows build (bgo#614416)



commit e9e6ff14ffe13f2963f26667de1f2c463c849359
Author: Ján Sokoly <cruster gmail com>
Date:   Wed Mar 31 11:32:01 2010 +1100

    [YouTube] Fix the Windows build (bgo#614416)
    
    Added missing Windows configuration to the *.csproj, added missing
    reference and fixed a weird accessing of .value__ in Enums which is
    invalid in .NET.
    
    Signed-off-by: Alexander Kojevnikov <alexander kojevnikov com>

 .../Banshee.YouTube.Data/DataFetch.cs              |    1 -
 .../Banshee.YouTube.Gui/YouTubeTile.cs             |    4 +-
 .../Banshee.YouTube/Banshee.YouTube.csproj         |   31 ++++++++++++++------
 3 files changed, 24 insertions(+), 12 deletions(-)
---
diff --git a/src/Extensions/Banshee.YouTube/Banshee.YouTube.Data/DataFetch.cs b/src/Extensions/Banshee.YouTube/Banshee.YouTube.Data/DataFetch.cs
index c554cfe..bad4de1 100644
--- a/src/Extensions/Banshee.YouTube/Banshee.YouTube.Data/DataFetch.cs
+++ b/src/Extensions/Banshee.YouTube/Banshee.YouTube.Data/DataFetch.cs
@@ -30,7 +30,6 @@ using System;
 using System.IO;
 using System.Net;
 using System.Web;
-using System.Xml;
 using System.Collections;
 using System.Collections.Generic;
 using ICSharpCode.SharpZipLib.GZip;
diff --git a/src/Extensions/Banshee.YouTube/Banshee.YouTube.Gui/YouTubeTile.cs b/src/Extensions/Banshee.YouTube/Banshee.YouTube.Gui/YouTubeTile.cs
index 8c9aece..24419cb 100644
--- a/src/Extensions/Banshee.YouTube/Banshee.YouTube.Gui/YouTubeTile.cs
+++ b/src/Extensions/Banshee.YouTube/Banshee.YouTube.Gui/YouTubeTile.cs
@@ -102,8 +102,8 @@ namespace Banshee.YouTube.Gui
 
         private static string GetPlaybackUri (Video yt_video)
         {
-            int flv = YouTubeQuery.VideoFormat.Embeddable.value__;
-            int mobile = YouTubeQuery.VideoFormat.Mobile.value__;
+            int flv = (int)YouTubeQuery.VideoFormat.Embeddable;
+            int mobile = (int)YouTubeQuery.VideoFormat.Mobile;
             const string format_param = "&fmt=18"; // Assumes user has broadband connection
             string video_id = yt_video.VideoId;
             string playback_uri = String.Empty;
diff --git a/src/Extensions/Banshee.YouTube/Banshee.YouTube.csproj b/src/Extensions/Banshee.YouTube/Banshee.YouTube.csproj
index d4e5510..8b6f147 100644
--- a/src/Extensions/Banshee.YouTube/Banshee.YouTube.csproj
+++ b/src/Extensions/Banshee.YouTube/Banshee.YouTube.csproj
@@ -11,15 +11,14 @@
     <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
     <RootNamespace>Banshee.YouTube</RootNamespace>
     <ReleaseVersion>1.3</ReleaseVersion>
+    <ErrorReport>prompt</ErrorReport>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
     <DebugType>full</DebugType>
     <Optimize>true</Optimize>
-    <OutputPath>bin\Debug</OutputPath>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>3</WarningLevel>
-    <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
+    <OutputPath>..\..\..\bin</OutputPath>
+    <WarningLevel>4</WarningLevel>
     <CustomCommands>
       <CustomCommands>
         <Command type="Build" command="make" workingdir="${SolutionDir}" />
@@ -27,11 +26,12 @@
       </CustomCommands>
     </CustomCommands>
   </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
-    <DebugType>none</DebugType>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Windows|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <PlatformTarget>x86</PlatformTarget>
     <Optimize>false</Optimize>
-    <OutputPath>bin\Release</OutputPath>
-    <ErrorReport>prompt</ErrorReport>
+    <OutputPath>..\..\..\bin</OutputPath>
     <WarningLevel>4</WarningLevel>
   </PropertyGroup>
   <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
@@ -45,13 +45,26 @@
   </ItemGroup>
   <ItemGroup>
     <Reference Include="System" />
-    <Reference Include="ICSharpCode.SharpZipLib" />
+    <Reference Include="ICSharpCode.SharpZipLib">
+      <HintPath>..\..\..\bin\ICSharpCode.SharpZipLib.dll</HintPath>
+    </Reference>
     <Reference Include="Google.GData.YouTube, Version=1.4.0.2, Culture=neutral, PublicKeyToken=af04a32718ae8833">
+      <HintPath>..\..\..\bin\Google.GData.YouTube.dll</HintPath>
     </Reference>
     <Reference Include="Google.GData.Extensions, Version=1.4.0.2, Culture=neutral, PublicKeyToken=0b4c5df2ebf20876">
+      <HintPath>..\..\..\bin\Google.GData.Extensions.dll</HintPath>
     </Reference>
     <Reference Include="Google.GData.Client, Version=1.4.0.2, Culture=neutral, PublicKeyToken=04a59ca9b0273830">
+      <HintPath>..\..\..\bin\Google.GData.Client.dll</HintPath>
+    </Reference>
+    <Reference Include="Mono.Posix">
+      <HintPath>..\..\..\bin\Mono.Posix.dll</HintPath>
     </Reference>
+    <Reference Include="gtk-sharp" />
+    <Reference Include="glib-sharp" />
+    <Reference Include="atk-sharp" />
+    <Reference Include="gdk-sharp" />
+    <Reference Include="pango-sharp" />
   </ItemGroup>
   <ProjectExtensions>
     <MonoDevelop>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]