Skip to content

Commit

Permalink
Compile Expecto.netcore via Rake build
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchester committed Feb 19, 2017
1 parent c4cc3e5 commit f81fb5f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,23 @@ task :restore_quick do
system 'tools/paket.exe', 'restore', clr_command: true
end

task :restore_dotnetcli do
system "dotnet", %W|restore Expecto.netcore/Expecto.netcore.fsproj|
end

desc 'restore all nugets as per the packages.config files'
task :restore => [:paket_bootstrap, :restore_quick, :paket_files]
task :restore => [:paket_bootstrap, :restore_quick, :paket_files, :restore_dotnetcli]

desc 'Perform full build'
build :compile => [:versioning, :restore, :assembly_info] do |b|
build :compile => [:versioning, :restore, :assembly_info, :build_dotnetcli] do |b|
b.prop 'Configuration', Configuration
b.sln = 'Expecto.Tests/Expecto.Tests.fsproj'
end

task :build_dotnetcli => [:versioning, :restore_dotnetcli, :assembly_info] do
system "dotnet", %W|build -c #{Configuration} -f netstandard1.6 Expecto.netcore/Expecto.netcore.fsproj|
end

directory 'build/pkg'

desc 'package nugets - finds all projects and package them'
Expand Down

0 comments on commit f81fb5f

Please sign in to comment.