csoltenborn / GoogleTestAdapter

Visual studio extension that adds support for the C++ testing framework Google Test.
Other
143 stars 100 forks source link

Project configurations other than Debug/Release #356

Open kazuhiro-nishimura opened 10 months ago

kazuhiro-nishimura commented 10 months ago

I wish it would support project configurations other than Debug and Release with the NuGet package. It would be better if it does not look the configuration name but the project properties to switch the linked libraries.

https://github.com/csoltenborn/GoogleTestAdapter/blob/d619bf84730eb33d13b11db4e07facd45dc18ee0/GoogleTestNuGet/googletest.targets.tt#L18-L27

kazuhiro-nishimura commented 9 months ago

It could use similar conditions as files installed with VS, couldn't it?

      <RuntimeLibrary Condition="'$(UseDebugLibraries)' != 'true'">MultiThreadedDll</RuntimeLibrary>
      <RuntimeLibrary Condition="'$(UseDebugLibraries)' == 'true'">MultiThreadedDebugDll</RuntimeLibrary>