updated nuget targets to include nightly build source

This commit is contained in:
Aaron Stannard 2015-08-05 19:10:05 -07:00
Родитель 9ccd91772b
Коммит 9f6d7b1df2
6 изменённых файлов: 51 добавлений и 9 удалений

Просмотреть файл

@ -56,6 +56,7 @@ let slnFile = "./src/Akka.Persistence.Cassandra.sln"
open Fake.RestorePackageHelper
Target "RestorePackages" (fun _ ->
printfn "Restoring packages for %s" slnFile
slnFile
|> RestoreMSSolutionPackages (fun p ->
{ p with
@ -153,7 +154,44 @@ module Nuget =
| _ -> release.NugetVersion
open Nuget
open NuGet.Update
//--------------------------------------------------------------------------------
// Upgrade nuget package versions for dev and production
let updateNugetPackages _ =
printfn "Updating NuGet dependencies"
let getConfigFile preRelease =
match preRelease with
| true -> "src/.nuget/NuGet.Dev.Config"
| false -> "src/.nuget/NuGet.Config"
let getPackages project =
match project with
| "Akka.Persistence.Cassandra" -> ["Akka.Persistence";]
| "Akka.Persistence.Cassandra.Tests" -> ["Akka.Persistence.TestKit";]
| _ -> []
for projectFile in !! "src/**/*.csproj" do
printfn "Updating packages for %s" projectFile
let project = Path.GetFileNameWithoutExtension projectFile
let projectDir = Path.GetDirectoryName projectFile
let config = projectDir @@ "packages.config"
NugetUpdate
(fun p ->
{ p with
ConfigFile = Some (getConfigFile isPreRelease)
Prerelease = true
ToolPath = nugetExe
RepositoryPath = "src/Packages"
Ids = getPackages project
}) config
Target "UpdateDependencies" <| fun _ ->
printfn "Invoking updateNugetPackages"
updateNugetPackages()
//--------------------------------------------------------------------------------
// Clean nuget directory
@ -383,7 +421,7 @@ Target "HelpDocs" <| fun _ ->
//--------------------------------------------------------------------------------
// build dependencies
"Clean" ==> "AssemblyInfo" ==> "RestorePackages" ==> "Build" ==> "CopyOutput" ==> "BuildRelease"
"Clean" ==> "AssemblyInfo" ==> "RestorePackages" ==> "UpdateDependencies" ==> "Build" ==> "CopyOutput" ==> "BuildRelease"
// tests dependencies
"CleanTests" ==> "RunTests"

Просмотреть файл

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<solution>
<add key="disableSourceControlIntegration" value="true" />
</solution>
<packageSources>
<add key="NuGet official" value="https://www.nuget.org/api/v2/" /> <!-- Official package source -->
<add key="Akka.NET Nightly Build" value="https://www.myget.org/F/akkadotnet/api/v2" /> <!-- Nightly package source -->
</packageSources>
</configuration>

Двоичные данные
src/.nuget/NuGet.exe

Двоичный файл не отображается.

Просмотреть файл

@ -19,10 +19,6 @@
<ItemGroup Condition=" '$(PackageSources)' == '' ">
<!-- Package sources used to restore packages. By default, registered sources under %APPDATA%\NuGet\NuGet.Config will be used -->
<!-- The official NuGet package source (https://www.nuget.org/api/v2/) will be excluded if package sources are specified and it does not appear in the list -->
<!--
<PackageSource Include="https://www.nuget.org/api/v2/" />
<PackageSource Include="https://my-nuget-source/nuget/" />
-->
</ItemGroup>
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT'">

Просмотреть файл

@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.30723.0
VisualStudioVersion = 12.0.31101.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Akka.Persistence.Cassandra", "Akka.Persistence.Cassandra\Akka.Persistence.Cassandra.csproj", "{54BD0B45-8A46-4194-8C33-AD287CAC8FA4}"
EndProject
@ -10,6 +10,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{8595E89A-2B9E-44CE-8286-0B755DA92226}"
ProjectSection(SolutionItems) = preProject
.nuget\NuGet.Config = .nuget\NuGet.Config
.nuget\NuGet.Dev.Config = .nuget\NuGet.Dev.Config
.nuget\NuGet.exe = .nuget\NuGet.exe
.nuget\NuGet.targets = .nuget\NuGet.targets
EndProjectSection

Просмотреть файл

@ -45,18 +45,15 @@
</Reference>
<Reference Include="Google.ProtocolBuffers">
<HintPath>..\packages\Google.ProtocolBuffers.2.4.1.521\lib\net40\Google.ProtocolBuffers.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Google.ProtocolBuffers.Serialization">
<HintPath>..\packages\Google.ProtocolBuffers.2.4.1.521\lib\net40\Google.ProtocolBuffers.Serialization.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="LZ4">
<HintPath>..\packages\lz4net.1.0.5.93\lib\net40-client\LZ4.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json">
<HintPath>..\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />