Skip to content

Commit 4f46a7b

Browse files
committed
Use BuildLib 0.2.5
1 parent a8189cd commit 4f46a7b

File tree

3 files changed

+26
-16
lines changed

3 files changed

+26
-16
lines changed

build.cmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ IF NOT EXIST %PACKAGEPATH%FAKE\Ver_4.23.0 (
1212
COPY NUL %PACKAGEPATH%FAKE\Ver_4.23.0
1313
)
1414

15-
IF NOT EXIST %PACKAGEPATH%FAKE.BuildLib\Ver_0.1.6 (
15+
IF NOT EXIST %PACKAGEPATH%FAKE.BuildLib\Ver_0.2.5 (
1616
RD /S/Q %PACKAGEPATH%FAKE.BuildLib
17-
%NUGET% install FAKE.BuildLib -Version 0.1.6 %NUGETOPTIONS%
18-
COPY NUL %PACKAGEPATH%FAKE.BuildLib\Ver_0.1.6
17+
%NUGET% install FAKE.BuildLib -Version 0.2.5 %NUGETOPTIONS%
18+
COPY NUL %PACKAGEPATH%FAKE.BuildLib\Ver_0.2.5
1919
)
2020

2121
set encoding=utf-8

build.fsx

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ Target "Test" <| fun _ -> testSolution solution
3131

3232
Target "Cover" <| fun _ -> coverSolution solution
3333

34-
Target "Nuget" <| fun _ ->
35-
createNugetPackages solution
36-
publishNugetPackages solution
34+
Target "PackNuget" <| fun _ -> createNugetPackages solution
3735

38-
Target "CreateNuget" <| fun _ ->
39-
createNugetPackages solution
36+
Target "PackUnity" <| fun _ -> packUnityPackage "./core/UnityPackage/unitypackage.json"
4037

41-
Target "PublishNuget" <| fun _ ->
42-
publishNugetPackages solution
38+
Target "Pack" <| fun _ -> ()
39+
40+
Target "PublishNuget" <| fun _ -> publishNugetPackages solution
41+
42+
Target "Publish" <| fun _ -> ()
4343

4444
Target "CI" <| fun _ -> ()
4545

@@ -52,12 +52,18 @@ Target "Help" <| fun _ ->
5252
==> "Build"
5353
==> "Test"
5454

55-
"Build" ==> "Nuget"
56-
"Build" ==> "CreateNuget"
5755
"Build" ==> "Cover"
5856

57+
let isPublishOnly = getBuildParam "publishonly"
58+
59+
"Build" ==> "PackNuget" =?> ("PublishNuget", isPublishOnly = "")
60+
"Build" ==> "PackUnity"
61+
"PackNuget" ==> "Pack"
62+
"PackUnity" ==> "Pack"
63+
"PublishNuget" ==> "Publish"
64+
5965
"Test" ==> "CI"
6066
"Cover" ==> "CI"
61-
"Nuget" ==> "CI"
67+
"Publish" ==> "CI"
6268

6369
RunTargetOrDefault "Help"
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{
22
"id": "NetLegacySupport",
3+
"version": "1.1.0",
4+
"authors": [ "Microsoft" ],
5+
"owners": [ "Esun Kim" ],
6+
"description": "Action, Func, Tuple and ConcurrentDictionary for Unity3D. This is a backport from .NET Core.",
37
"files": [
4-
"Action.Net35/bin/Release/NetLegacySupport.Action.dll",
5-
"ConcurrentDictionary.Net35/bin/Release/NetLegacySupport.ConcurrentDictionary.dll",
6-
"Tuple.Net35/bin/Release/NetLegacySupport.Tuple.dll"
8+
"../Action.Net35/bin/Release/NetLegacySupport.Action.dll",
9+
"../ConcurrentDictionary.Net35/bin/Release/NetLegacySupport.ConcurrentDictionary.dll",
10+
"../Tuple.Net35/bin/Release/NetLegacySupport.Tuple.dll"
711
]
812
}

0 commit comments

Comments
 (0)