Skip to content

Commit

Permalink
paket initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriktsarpalis committed Oct 19, 2014
1 parent 60cb581 commit 1b3f1d5
Show file tree
Hide file tree
Showing 8 changed files with 121 additions and 15 deletions.
Binary file added .paket/paket.bootstrapper.exe
Binary file not shown.
36 changes: 36 additions & 0 deletions .paket/paket.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- Enable the restore command to run before builds -->
<RestorePackages Condition=" '$(RestorePackages)' == '' ">true</RestorePackages>
<!-- Download Paket.exe if it does not already exist -->
<DownloadPaket Condition=" '$(DownloadPaket)' == '' ">true</DownloadPaket>
<PaketToolsPath>$(MSBuildThisFileDirectory)</PaketToolsPath>
<PaketRootPath>$(MSBuildThisFileDirectory)..\</PaketRootPath>
</PropertyGroup>
<PropertyGroup>
<!-- Paket command -->
<PaketExePath Condition=" '$(PaketExePath)' == '' ">$(PaketToolsPath)paket.exe</PaketExePath>
<PaketBootStrapperExePath Condition=" '$(PaketBootStrapperExePath)' == '' ">$(PaketToolsPath)paket.bootstrapper.exe</PaketBootStrapperExePath>
<PaketCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketExePath)"</PaketCommand>
<PaketCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 $(PaketExePath)</PaketCommand>
<PaketBootStrapperCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketBootStrapperExePath)"</PaketBootStrapperCommand>
<PaketBootStrapperCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 $(PaketBootStrapperExePath)</PaketBootStrapperCommand>
<!-- Commands -->
<RestoreCommand>$(PaketCommand) restore</RestoreCommand>
<DownloadPaketCommand>$(PaketBootStrapperCommand)</DownloadPaketCommand>
<!-- We need to ensure packages are restored prior to assembly resolve -->
<BuildDependsOn Condition="$(RestorePackages) == 'true'">RestorePackages; $(BuildDependsOn);</BuildDependsOn>
</PropertyGroup>
<Target Name="CheckPrerequisites">
<!-- Raise an error if we're unable to locate paket.exe -->
<Error Condition="'$(DownloadPaket)' != 'true' AND !Exists('$(PaketExePath)')" Text="Unable to locate '$(PaketExePath)'" />
<MsBuild Targets="DownloadPaket" Projects="$(MSBuildThisFileFullPath)" Properties="Configuration=NOT_IMPORTANT;DownloadPaket=$(DownloadPaket)" />
</Target>
<Target Name="DownloadPaket">
<Exec Command="$(DownloadPaketCommand)" Condition=" '$(DownloadPaket)' == 'true' AND !Exists('$(PaketExePath)')" />
</Target>
<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
<Exec Command="$(RestoreCommand)" WorkingDirectory="$(PaketRootPath)" />
</Target>
</Project>
16 changes: 15 additions & 1 deletion MBrace.Core.sln
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.30723.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".paket", ".paket", "{6382DB39-BBF3-4137-8644-6C915F279363}"
ProjectSection(SolutionItems) = preProject
.paket\paket.bootstrapper.exe = .paket\paket.bootstrapper.exe
paket.dependencies = paket.dependencies
paket.lock = paket.lock
.paket\paket.targets = .paket\paket.targets
EndProjectSection
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "MBrace.Core", "src\MBrace.Core\MBrace.Core.fsproj", "{80182C04-6E3C-486A-B3BF-0E617A837105}"
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "MBrace.InMemory", "tests\MBrace.InMemory\MBrace.InMemory.fsproj", "{47E57317-C820-4AD9-836C-FE131B00E504}"
Expand All @@ -11,6 +18,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{3BA6F0DC
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "MBrace.Core.Tests", "tests\MBrace.Core.Tests\MBrace.Core.Tests.fsproj", "{0C3966D4-2C78-4DCF-B84B-73809F3F51BC}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "project", "project", "{9E6D05F7-4934-49C3-99E7-B935D40F7245}"
ProjectSection(SolutionItems) = preProject
paket.dependencies = paket.dependencies
paket.lock = paket.lock
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -34,6 +47,7 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{6382DB39-BBF3-4137-8644-6C915F279363} = {9E6D05F7-4934-49C3-99E7-B935D40F7245}
{47E57317-C820-4AD9-836C-FE131B00E504} = {3BA6F0DC-9759-458C-B50D-CF31BBE68B42}
{0C3966D4-2C78-4DCF-B84B-73809F3F51BC} = {3BA6F0DC-9759-458C-B50D-CF31BBE68B42}
EndGlobalSection
Expand Down
4 changes: 4 additions & 0 deletions paket.dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source https://nuget.org/api/v2

nuget FsUnit 1.3.0.1
nuget NUnit 2.6.3
6 changes: 6 additions & 0 deletions paket.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
NUGET
remote: https://nuget.org/api/v2
specs:
FsUnit (1.3.0.1)
NUnit (>= 2.6.3)
NUnit (2.6.3)
67 changes: 58 additions & 9 deletions tests/MBrace.Core.Tests/MBrace.Core.Tests.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,13 @@
<Compile Include="SequentialTests.fs" />
<Compile Include="ThreadPoolTests.fs" />
<Content Include="app.config" />
<Content Include="packages.config" />
<Content Include="paket.references" />
</ItemGroup>
<ItemGroup>
<Reference Include="FsUnit.NUnit">
<HintPath>..\..\packages\FsUnit.1.3.0.1\Lib\Net40\FsUnit.NUnit.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="mscorlib" />
<Reference Include="FSharp.Core, Version=$(TargetFSharpCoreVersion), Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<Private>False</Private>
</Reference>
<Reference Include="nunit.framework">
<HintPath>..\..\packages\NUnit.2.6.3\lib\nunit.framework.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Numerics" />
Expand All @@ -91,4 +83,61 @@
<Target Name="AfterBuild">
</Target>
-->
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework'">
<Choose>
<When Condition="$(TargetFrameworkVersion) == 'v1.0'">
</When>
<When Condition="$(TargetFrameworkVersion) == 'v1.1'">
</When>
<When Condition="$(TargetFrameworkVersion) == 'v2.0'">
<ItemGroup>
<Reference Include="FsUnit.NUnit">
<HintPath>..\..\packages\FsUnit\lib\Net20\FsUnit.NUnit.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
<When Condition="$(TargetFrameworkVersion) == 'v3.5'">
<ItemGroup>
<Reference Include="FsUnit.NUnit">
<HintPath>..\..\packages\FsUnit\lib\Net20\FsUnit.NUnit.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
<When Condition="$(TargetFrameworkVersion) == 'v4.0' And $(TargetFrameworkProfile) == 'Client'">
<ItemGroup>
<Reference Include="FsUnit.NUnit">
<HintPath>..\..\packages\FsUnit\lib\Net20\FsUnit.NUnit.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
<Otherwise>
<ItemGroup>
<Reference Include="FsUnit.NUnit">
<HintPath>..\..\packages\FsUnit\lib\Net40\FsUnit.NUnit.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</Otherwise>
</Choose>
</When>
</Choose>
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework'">
<ItemGroup>
<Reference Include="nunit.framework">
<HintPath>..\..\packages\NUnit\lib\nunit.framework.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
</Choose>
</Project>
5 changes: 0 additions & 5 deletions tests/MBrace.Core.Tests/packages.config

This file was deleted.

2 changes: 2 additions & 0 deletions tests/MBrace.Core.Tests/paket.references
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FsUnit
NUnit

0 comments on commit 1b3f1d5

Please sign in to comment.