I have the following project structure:
SLN
libA
libB (references libA)
exeWPF (references libA and libB)
I use NAnt to compile libA and libB, with csc, but I cannot use csc with the WPF project, XAML targets cannot be compiled with NAnt, so I use a MSBuild task inside the NAnt project.
The problem is that when I launch a complete build, libA and libB are already by NAnt, and then when the MSBuild task is launched, the libA
and libB
libraries are compiled again, because the exeWPF
csproj file references the libA and the libB projects.
An alternative could be instead referencing libA
and libB
as projects, I could reference them as dlls in the exeWPF
csproj file. The problem is that in this case I loose the code and, navigate to reference.
The solution for me would be to be able to specify from the MSBuild task the references to the MsBuild project.