hkarthik said:

hkarthik

anyone have a good solution for using MSBuild to correctly build .sln files? I'm having to write an extra step to copy .dll's after build.

2 years, 2 months ago.

4 comments so far

  • danhounshell

    MSBuild command line takes params like the following: "{solutiondirectory}{solutions.name}.sln" /target:Rebuild /property:Configuration=Release;OutDir=${outputdirectory}

    2 years, 2 months ago by danhounshell

  • hkarthik

    Yup, the problem with that is that MSbuild doesn't automatically copy every DLL of any referenced projects within the solution over to the /bin directory. You have to write some extra steps in a .proj file to do the DLL copying.

    2 years, 2 months ago by hkarthik

  • danhounshell

    Really? I've used that for CI builds. Maybe I've just gotten lucky. Or Maybe I have another step further in my NANT build file that does it. I might not have looked deep enough

    2 years, 2 months ago by danhounshell

  • keyvan

    You have two choices:

    1- Copy them by MSBuild tasks as you said, yourself. 2- Write a custom task to do all these things automatically or even by getting parameters for paths. You can write this once and let all people use it. Maybe someone has written this already but I don't know about it.

    2 years, 2 months ago by keyvan

Sign in to add a comment