-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from HEskandari/upgrade-to-net46
Upgrade to .NET 4.6
- Loading branch information
Showing
342 changed files
with
104,713 additions
and
38,233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@echo off | ||
cls | ||
|
||
lib\FAKE\FAKE.exe build.fsx %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
#r "./lib/FAKE/FakeLib.dll" | ||
open Fake | ||
open AssemblyInfoFile | ||
|
||
let OutputDir = "./binaries/" | ||
let PublishDir = "./publish/" | ||
let Solution = "FarsiLibrary.sln" | ||
let ToolsFolder = "./lib/" | ||
let PackagesFolder = "./packages" | ||
let TestAssembly = "FarsiLibrary.UnitTest.dll" | ||
let TestRunnerPath = "./packages/NUnit.Runners.2.6.4/tools" | ||
let SolutionItems = "./Solution Items/" | ||
|
||
let GeneratePackage packageName = | ||
let assemblyFile = OutputDir + packageName + ".dll" | ||
let nugetSpec = SolutionItems + packageName + ".nuspec" | ||
let version = GetAssemblyVersionString assemblyFile | ||
tracefn "Generating nuget package for %s version %s ..." packageName version | ||
|
||
NuGet (fun p -> | ||
{p with | ||
Version = version | ||
OutputPath = PublishDir | ||
WorkingDir = OutputDir | ||
Publish = false }) | ||
nugetSpec | ||
|
||
Target "EnsureDir" (fun _ -> | ||
trace "Ensuring directories exists..." | ||
ensureDirectory OutputDir | ||
ensureDirectory PublishDir | ||
) | ||
|
||
Target "Clean" (fun _ -> | ||
trace "Cleaning the output folder..." | ||
CleanDirs [ OutputDir; PublishDir ] | ||
) | ||
|
||
Target "RestorePackages" (fun _ -> | ||
Solution | ||
|> RestoreMSSolutionPackages (fun p -> | ||
{ p with | ||
ToolPath = findNuget ToolsFolder; | ||
OutputPath = PackagesFolder }) | ||
) | ||
|
||
Target "Build" (fun _ -> | ||
!! Solution | ||
|> MSBuildRelease OutputDir "Build" | ||
|> Log "BuildSource output: " | ||
) | ||
|
||
Target "Test" (fun _ -> | ||
!! (OutputDir + TestAssembly) | ||
|> NUnit (fun p -> | ||
{p with | ||
ToolPath = TestRunnerPath; | ||
DisableShadowCopy = true; | ||
OutputFile = OutputDir + "TestResults.xml"}) | ||
) | ||
|
||
Target "PackageAll" (fun _ -> | ||
GeneratePackage "FarsiLibrary.Utils" | ||
GeneratePackage "FarsiLibrary.WPF" | ||
GeneratePackage "FarsiLibrary.Win" | ||
GeneratePackage "FarsiLibrary.Win.DevExpress" | ||
) | ||
|
||
"EnsureDir" | ||
==> "Clean" | ||
==> "Restorepackages" | ||
==> "Build" | ||
|
||
"Build" | ||
==> "Test" | ||
==> "PackageAll" | ||
|
||
RunTargetOrDefault "Test" | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.