We solved it in-house by creating a new solution configuration based
on the Release configuration and called it "NAnt". The NAnt
configuration disables all the projects and uses Makefiles to call
NAnt to build the debug configuration.
This sounds very interesting. Please can you describe this more detailed ?
What do you mean with "disable all projects" ?
I don't have VS.NET in front of me, so I'll try to remember what we did.
Use the build configuration dialog to create a copy of your Release
configuration called "NAnt". Once you've created the copy, uncheck the
box that selects the projects to build.
Use the C++ makefile project to create yourself a new, empty project.
For the build command of the project, specify:
nant -f:your-nant-file -emacs your-build-target
This will run the NAnt build whenever you try to build the Makefile
project.
Once you've got your NAnt projects, disable the building of all projects
except your NAnt ones from your build configuration dialog. This way,
VS.NET won't attempt to build them under any circumstances.
In the end, this configuration should have Release selected for each of
your projects.
We've been running with NAnt as our main build engine for some time now
(six months or more). I couldn't imagine going back to locked files. :)
Because VS.NET thinks you are building in release mode, it locks
release files and lets your debug build work perfectly. The only
problem with this solution is that VS.NET's default intellisense
doesn't work properly in this mode.
The solution for the intellisense problem is to shell out for a copy
of Resharper from Jetbrains. Their intellisense is source-code based,
rather than DLL-based like VS.NET. :)
I use ReSharper since they started theit EAP program and won't miss it any
more ;-)
Excellent - this means that you can work around VS.NET's autocomplete
problem. Note that if you did not have Resharper, you'd have to
occasionally compile in release mode to update your intellisense.
Good luck,
Matt.
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users