Msbuild p:OutputPath not respected

Hello,
we’ve ran into a problem that we think is a bug. When we try to build our solution via MSBuild using /p:OutputPath argument that should copy all dll files created by the build, the dll files of the Project that wasn’t referenced by any other Project of the Solution won’t get copied to the mentioned path.

Here is our test case:
TCElements2.zip (190.0 KB)

  1. Unzip the files

  2. Run this command in MSBuild (adjust the paths as needed)

    msbuild C:\users\KolarD\Plocha\TCElements\TCElements.sln /p:OutputPath=C:\users\KolarD\Plocha\TCElements\MyOut -t:Rebuild

  3. In the folder \TCElementsy\MyOut should now be visible the dll file “ClassLibrary4” but it isn’t.

Thank you in advance,
David

If you are using Elements 10, you will want to use EBuild to build your project from the command line, not MSBuild. See https://docs.elementscompiler.com/EBuild/ for more details.

Ok, but we have a solution that has not only .element files but also .csproj files which are not supported by Ebuild. Is there a way to make it work?

I’ll see what I can do, for OutputPath specifically. But EBuild embedded in MSBuild will not bw able to see arbitrary parameters set on MSBuild level.

Thanks, logged as bugs://83071