How to build from command line both settings: Use Shared DLL and Use Static DLL

  • Thread starter Thread starter Lubomir1
  • Start date Start date
L

Lubomir1

Guest
Hello boys.

I use Visual Studio 2015.
Projekt setting: Use MFC in a Shared DLL.

For building from command line is used:
msbuild .\my_project.sln /t:Rebuild /p:Configuration=Release /p:Platform=x64
All is working well, build runs OK.

I would like to ask you:
Is there a way how to switch (any parametr for msbuild) between Shared and Static MFC DLL?

for example:
msbuild .\my_project.sln /t:Rebuild /p:Configuration=Release /p:Platform=x64 /p:ANYKEYWORD=Shared
or
msbuild .\my_project.sln /t:Rebuild /p:Configuration=Release /p:Platform=x64 p:/ANYKEYWORD=Static
or anything like that.

I can not find a way, how to build project from command line and switch both possibilities: "Use MFC in a Shared DLL" and "Use MFC in a Static DLL" without opening IDE and switching it there manualy in project setting.

Thank you for advices and help.
Lubomir

Continue reading...
 
Back
Top