Skip to content

Commit

Permalink
support .NET 3.5 and later
Browse files Browse the repository at this point in the history
  • Loading branch information
SeongTae Jeong committed Sep 25, 2013
1 parent 8d40917 commit 0bb3e7c
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 25 deletions.
1 change: 0 additions & 1 deletion Server/DocumentController/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;

namespace DocumentController
Expand Down
7 changes: 2 additions & 5 deletions Server/DocumentController/DocumentController.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DocumentController</RootNamespace>
<AssemblyName>DocumentController</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
Expand Down Expand Up @@ -97,13 +97,9 @@
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
Expand Down Expand Up @@ -152,6 +148,7 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="app.config" />
<None Include="Generated\ProcessWpfCode.tt">
<Generator>TextTemplatingFileGenerator</Generator>
</None>
Expand Down
1 change: 0 additions & 1 deletion Server/DocumentController/Http/MyHttpServer.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Bend.Util;
using System.IO;
Expand Down
5 changes: 4 additions & 1 deletion Server/DocumentController/Http/SimpleHttpServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,11 @@ public HttpServer(int port) {
this.port = port;
}

public void listen() {
public void listen()
{
#pragma warning disable 0618
listener = new TcpListener(port);
#pragma warning restore 0618
listener.Start();

try
Expand Down
10 changes: 1 addition & 9 deletions Server/DocumentController/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
Expand Down Expand Up @@ -148,14 +147,7 @@ private void DeleteOldSnapshot()
{
if (Directory.Exists(_tempPath) == true)
{
foreach (string path in Directory.EnumerateDirectories(_tempPath))
{
try
{
Directory.Delete(path, true);
}
catch { }
}
Directory.Delete(_tempPath, true);
}
}

Expand Down
2 changes: 1 addition & 1 deletion Server/DocumentController/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Server/DocumentController/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Server/DocumentController/app.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v4.0.30319"/>
<supportedRuntime version="v2.0.50727"/>
</startup>
</configuration>
4 changes: 2 additions & 2 deletions Server/OfficePPT2007/OfficePPT2007.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>OfficePPT2007</RootNamespace>
<AssemblyName>OfficePPT2007</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SccProjectName>
</SccProjectName>
Expand All @@ -20,6 +20,7 @@
</SccAuxPath>
<SccProvider>
</SccProvider>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -43,7 +44,6 @@
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Server/OfficePPT2010/OfficePPT2010.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>OfficePPT2010</RootNamespace>
<AssemblyName>OfficePPT2010</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SccProjectName>
</SccProjectName>
Expand All @@ -20,6 +20,7 @@
</SccAuxPath>
<SccProvider>
</SccProvider>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -44,7 +45,6 @@
<Reference Include="System.Drawing" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Server/OfficePPT2010/ViewerController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public PPTDocument ReadAll(int width, int height)
int slideNumber = 0;

List<string> files = new List<string>();
files.AddRange(Directory.EnumerateFiles(_tempPath));
files.AddRange(Directory.GetFiles(_tempPath));

files.Sort(CompareOnlyNumbers);

Expand Down

0 comments on commit 0bb3e7c

Please sign in to comment.