Skip to content

Commit

Permalink
add build scripts for .NET 2, .NET 4 and .NET 4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyqus committed Dec 14, 2014
1 parent 4db22b6 commit 3b99045
Show file tree
Hide file tree
Showing 6 changed files with 191 additions and 4 deletions.
File renamed without changes.
26 changes: 26 additions & 0 deletions Toxy-dotnet45.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ToxyFramework", "ToxyFramework\ToxyFramework_dotnet45.csproj", "{CCB814A5-A750-4B96-AFD3-F7E4D868F231}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Toxy.Test", "Toxy.Test\Toxy.Test.csproj", "{E16C30D3-D4EB-4608-A292-5BCFBE86F230}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{CCB814A5-A750-4B96-AFD3-F7E4D868F231}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CCB814A5-A750-4B96-AFD3-F7E4D868F231}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CCB814A5-A750-4B96-AFD3-F7E4D868F231}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CCB814A5-A750-4B96-AFD3-F7E4D868F231}.Release|Any CPU.Build.0 = Release|Any CPU
{E16C30D3-D4EB-4608-A292-5BCFBE86F230}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E16C30D3-D4EB-4608-A292-5BCFBE86F230}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E16C30D3-D4EB-4608-A292-5BCFBE86F230}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E16C30D3-D4EB-4608-A292-5BCFBE86F230}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
4 changes: 2 additions & 2 deletions ToxyFramework/ToxyFramework.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\Build\Debug\</OutputPath>
<OutputPath>..\Build\Net20\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\Build\Release\</OutputPath>
<OutputPath>..\Build\Net20\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand Down
4 changes: 2 additions & 2 deletions ToxyFramework/ToxyFramework_dotnet4.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\Build\Debug\</OutputPath>
<OutputPath>..\Build\Net40\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\Build\Release\</OutputPath>
<OutputPath>..\Build\Net40\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand Down
126 changes: 126 additions & 0 deletions ToxyFramework/ToxyFramework_dotnet45.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{CCB814A5-A750-4B96-AFD3-F7E4D868F231}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Toxy</RootNamespace>
<AssemblyName>Toxy</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\Build\Net45\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\Build\Net45\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="DCSoft.RTF">
<HintPath>..\3rdParty\DCSoft.RTF.dll</HintPath>
</Reference>
<Reference Include="HtmlAgilityPack">
<HintPath>..\3rdParty\HtmlAgilityPack.dll</HintPath>
</Reference>
<Reference Include="ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\3rdParty\NPOI\dotnet2\ICSharpCode.SharpZipLib.dll</HintPath>
</Reference>
<Reference Include="itextsharp">
<HintPath>..\3rdParty\itextsharp-dll-core\itextsharp.dll</HintPath>
</Reference>
<Reference Include="LumenWorks.Framework.IO">
<HintPath>..\3rdParty\LumenWorks.Framework.IO.dll</HintPath>
</Reference>
<Reference Include="NPOI, Version=2.1.3.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\3rdParty\NPOI\dotnet4\NPOI.dll</HintPath>
</Reference>
<Reference Include="NPOI.OOXML, Version=2.1.3.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\3rdParty\NPOI\dotnet4\NPOI.OOXML.dll</HintPath>
</Reference>
<Reference Include="NPOI.OpenXml4Net, Version=2.1.3.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\3rdParty\NPOI\dotnet4\NPOI.OpenXml4Net.dll</HintPath>
</Reference>
<Reference Include="NPOI.OpenXmlFormats, Version=2.1.3.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\3rdParty\NPOI\dotnet4\NPOI.OpenXmlFormats.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="Thought.vCards">
<HintPath>..\3rdParty\Thought.vCards\Thought.vCards.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="3rdParty\DateTimeParser.cs" />
<Compile Include="3rdParty\EMLReader.cs" />
<Compile Include="Entities\ToxyAddress.cs" />
<Compile Include="Entities\ToxyBusinessCard\ToxyBusinessCard.cs" />
<Compile Include="Entities\ToxyBusinessCard\ToxyBusinessCards.cs" />
<Compile Include="Entities\ToxyBusinessCard\ToxyContact.cs" />
<Compile Include="Entities\ToxyDom\ToxyDom.cs" />
<Compile Include="Entities\ToxyDom\ToxyNode.cs" />
<Compile Include="Entities\ToxyName.cs" />
<Compile Include="Entities\ToxySpreadsheet\MergeCellRange.cs" />
<Compile Include="Entities\ToxySpreadsheet\ToxyCell.cs" />
<Compile Include="Entities\ToxySpreadsheet\ToxyRow.cs" />
<Compile Include="Entities\ToxySpreadsheet\ToxyTable.cs" />
<Compile Include="Parsers\EMLTextParser.cs" />
<Compile Include="Parsers\HtmlDomParser.cs" />
<Compile Include="IDomParser.cs" />
<Compile Include="IEmailParser.cs" />
<Compile Include="IDocumentParser.cs" />
<Compile Include="Entities\IToxyProperties.cs" />
<Compile Include="Parsers\EMLEmailParser.cs" />
<Compile Include="Parsers\ExcelSpreadsheetParser.cs" />
<Compile Include="ITextParser.cs" />
<Compile Include="ParserContext.cs" />
<Compile Include="ISpreadsheetParser.cs" />
<Compile Include="Parsers\PDFTextParser.cs" />
<Compile Include="Parsers\RTFTextParser.cs" />
<Compile Include="Parsers\VCardDocumentParser.cs" />
<Compile Include="Parsers\VCardTextParser.cs" />
<Compile Include="Parsers\WordDocumentParser.cs" />
<Compile Include="Entities\ToxyDocument.cs" />
<Compile Include="Entities\ToxyEmail.cs" />
<Compile Include="Entities\ToxySpreadsheet\ToxySpreadsheet.cs" />
<Compile Include="ParserFactory.cs" />
<Compile Include="Parsers\PlainTextParser.cs" />
<Compile Include="Parsers\CSVSpreadsheetParser.cs" />
<Compile Include="Parsers\PDFDocumentParser.cs" />
<Compile Include="Parsers\WordTextParser.cs" />
<Compile Include="Parsers\XMLDomParser.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Utility.cs" />
</ItemGroup>
<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>
35 changes: 35 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@echo off

set fdir=%WINDIR%\Microsoft.NET\Framework64

if not exist %fdir% (
set fdir=%WINDIR%\Microsoft.NET\Framework
)

set msbuild=%fdir%\v4.0.30319\msbuild.exe

%msbuild% ToxyFramework\ToxyFramework_dotnet45.csproj /p:Configuration=Release /t:Rebuild /p:OutputPath=..\Build\Net45\Release

FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G"

%msbuild% ToxyFramework\ToxyFramework_dotnet4.csproj /p:Configuration=Release /t:Rebuild /p:OutputPath=..\Build\Net40\Release

FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G"

%msbuild% ToxyFramework\ToxyFramework.csproj /p:Configuration=Release /t:Rebuild /p:OutputPath=..\Build\Net20\Release

FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G"

%msbuild% ToxyFramework\ToxyFramework_dotnet45.csproj /p:Configuration=Debug /t:Rebuild /p:OutputPath=..\Build\Net45\Debug

FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G"

%msbuild% ToxyFramework\ToxyFramework_dotnet4.csproj /p:Configuration=Debug /t:Rebuild /p:OutputPath=..\Build\Net40\Debug

FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G"

%msbuild% ToxyFramework\ToxyFramework.csproj /p:Configuration=Debug /t:Rebuild /p:OutputPath=..\Build\Net20\Debug

FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G"

pause

0 comments on commit 3b99045

Please sign in to comment.