Albacore is a professional quality suite of Rake tasks for building .NET or Mono based systems.
=begin
desc "package nugets"
nugets_pack :create_nugets => ['build/pkg', :versioning, :build] do |p|
p.files = %w[src/Zip/Zip\ DLL.csproj]
p.out = 'build/pkg'
p.exe = 'buildsupport/NuGet.exe'
p.configuration = 'Release'
p.target = 'net20'
p.with_metadata do |m|
m.id = 'DotNetZip'
m.version = ENV['NUGET_VERSION']
# of the nuget at least
m.authors = 'Henrik/Dino Chisa'
m.description = 'A fork of the DotNetZip project without signing with a solution that compiles cleanly. This project aims to follow semver to avoid versioning conflicts. DotNetZip is a FAST, FREE class library and toolset for manipulating zip files. Use VB, C# or any .NET language to easily create, extract, or update zip files.'
m.summary = 'A library for dealing with zip, bzip and zlib from .Net'
m.language = 'en-GB'
m.copyright = 'Dino Chiesa'
m.release_notes = "Full version: #{ENV['BUILD_VERSION']}."
m.license_url = "https://raw.githubusercontent.com/haf/DotNetZip.Semverd/master/LICENSE"
m.project_url = "https://github.com/haf/DotNetZip.Semverd"
end
p.no_project_dependencies
end
=end
desc "package nugets"
nugets_pack :create_nugets => ['build/pkg', :versioning, :build] do |p|
p.configuration = 'Release'
p.files = FileList['src/Zip/*.csproj', 'src/Zip.Android/*.csproj', 'src/Zip.iOS/*.csproj']
p.out = 'build/pkg'
p.exe = 'buildsupport/NuGet.exe'
p.leave_nuspec
p.with_metadata do |m|
m.id = 'DotNetZip'
m.version = ENV['NUGET_VERSION']
# of the nuget at least
m.authors = 'Henrik/Dino Chisa'
m.description = 'A fork of the DotNetZip project without signing with a solution that compiles cleanly. This project aims to follow semver to avoid versioning conflicts. DotNetZip is a FAST, FREE class library and toolset for manipulating zip files. Use VB, C# or any .NET language to easily create, extract, or update zip files.'
m.summary = 'A library for dealing with zip, bzip and zlib from .Net'
m.language = 'en-GB'
m.copyright = 'Dino Chiesa'
m.release_notes = "Full version: #{ENV['BUILD_VERSION']}."
m.license_url = "https://raw.githubusercontent.com/haf/DotNetZip.Semverd/master/LICENSE"
m.project_url = "https://github.com/haf/DotNetZip.Semverd"
end
p.no_project_dependencies
end
bundle exec rake
instead, which only runs for a second or two before exiting, with 0 output. Any idea why it won't produce any output?
gem uninstall rake --version {x}
for the conflicting versions so I can run rake by its self now. However, I'm running into an issue now that you and another developer were actually discussing: logary/logary#27 basically I get an error saying LoadError: cannot load such file -- semver/semvermissingerror
. You mentioned installing gems as root, which is true - I cannot run gem install or gem uninstall without sudo. Should I just be running as root the whole time?
project.rb:137: warning: key :include is duplicated and overwritten on line 140
then it doesn't do anything else.
p.target = 'net20'
and got it to build the nuget package, although when imported into vs the package is still targeting a later version of .NET: targeting '.NETFramework,Version=v4.0,Profile=Client'
when trying to import the package into a project. Nothing exceptionally unusual in the rake output besides lib\net20 not found, removing from nuspec
. Any ideas?
DotNetZip
even though I had to rename it to DotNetZip.Android so the nuget package isn't overwritten. It's almost like I need to have one nuget package targeting all frameworks? Is this possible in rake?