
plugin :Csharp

src_files = FileList["src/*.cs"]

gen Assembly, "hello.exe" do |t|
    t.sources = %w(Hello.cs)
end

gen Assembly, "AB.dll" => "hello.exe" do |t|
    t.sources = src_files
    t.debug = true
    t.optimize = true
    t.warnings = true
end

=begin
assembly "hello.exe" => "Hello.cs"

assembly "AB.dll" => src_files + ["hello.exe"] do |t|
    t.sources = src_files
    t.debug = true
    t.optimize = true
    t.warnings = true
end
=end

task :clean do
    sys.rm_f FileList["*.{exe,dll,obj}"]
end
