C# Conditional Compilation - VS Configuration - Newbie Question

P

Paul

Hi all,

I am having some trouble integrating a C++ native DLL into a C# App.
I am using SWIG to generate the C# wrapper for my DLL.
My problem is that for debugging reasons I have a different DLL for the
debug and release modes. This is reflected into the creation of SWIG wrapper
files, where cs debug and release files have the same filenames but refering
different DLLs in each mode. Those files, by the way, are created in
different directories and imported into my C# App, both, the release and
debug mode files. I used import sub-folders to be able to have both versions
in my project.
So, my question is: how can I make a set of files be compiled in debug
mode and other ser in release mode using C# and Visual Studio?

Thanks!
Paul.
 
G

Guest

in this case you might be better using nAnt to build your app. you would need
to spend a bit of time writing a build script but its not difficult to do and
might give you better productivity long term. have a look at
http://nant.sourceforge.net/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top