Skip to content

Commit

Permalink
attach package info to fsproj
Browse files Browse the repository at this point in the history
  • Loading branch information
robertluo committed Jul 30, 2019
1 parent 260c05c commit eea8d27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
22 changes: 6 additions & 16 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,13 @@ let libProj = "src/Edn.Net/Edn.Net.fsproj"
let testProj = "test/Edn.Net.Test/Edn.Net.Test.fsproj"

// Targets
Target.create "BuildApp" (fun _ ->
DotNet.build id libProj
)

Target.create "Test" (fun _ ->
DotNet.exec id "run" (sprintf "-p %s" testProj) |> ignore
)

Target.create "Pack" (fun _ ->
DotNet.pack id libProj
)
Target.create "BuildApp" (fun _ -> DotNet.build id libProj)
Target.create "Test"
(fun _ -> DotNet.exec id "run" (sprintf "-p %s" testProj) |> ignore)
Target.create "Pack" (fun _ -> DotNet.pack id libProj)

open Fake.Core.TargetOperators

"BuildApp"
==> "Test"
==> "Pack"

"BuildApp" ==> "Test" ==> "Pack"
// start build
Target.runOrDefault "Test"
Target.runOrDefault "Test"
2 changes: 2 additions & 0 deletions src/Edn.Net/Edn.Net.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>Robertluo.Edn</PackageId>
<version>0.1.0</version>
</PropertyGroup>
<ItemGroup>
<Compile Include="Library.fs" />
Expand Down

0 comments on commit eea8d27

Please sign in to comment.