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
MSBuild command line takes params like the following:
"{solutiondirectory}{solutions.name}.sln" /target:Rebuild /property:Configuration=Release;OutDir=${outputdirectory}
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.
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
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.
4 comments so far
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
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
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
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