project "Hello" SetupNativeProject() kind "SharedLib" language "C++" flags { common_flags, "Managed" } files { "**.h", "**.cpp", "./*.lua" } -- Autogenerated files, so not available on first build - specify them manually excludes { "CppCsBind/*.*" } files { "CppCsBind/hello_wrapper.h", "CppCsBind/hello_wrapper.cpp" } configuration "hello.h" buildrule { description = "Compiling $(InputFile)...", commands = { '..\\..\\bin\\generator.exe -D=WIN32 -vs=10 -ns=CppCsBind -outdir=CppCsBind -I. hello.h', }, outputs = { "CppCsBind\\hello_wrapper.cpp" } } project "SayHello" kind "ConsoleApp" language "C#" location "." files { "**.cs", "./*.lua" } links { "Hello" }