Skip to content

Multiple MSBuild Configurations #3193

Open
@fellinga

Description

@fellinga

Hello!

We are working with an old MSBuild project and we want to package all the dependencies (internal and external) of the main project into conan packages and this works well for Release and Debug so far. The main project also has multiple MSBuild configurations like "Fake_Release", which is basically a release configuration but its used in automated tests to mock specific function calls.

The problem is that we can't export-pkgs with "Fake_Release" so that the MSBuildDeps would generate import conditions accordingly. Since "Fake_Release" is basically a release build and therfore relies on the same files, are there any options to generate import conditions that match multiple custom configurations?

I think we would need something like this:
<Import Condition="'$(Configuration)' == 'Fake_Release' And '$(Platform)' == 'Win32'" Project="conan_dep_release_x64.props"/>
<Import Condition="'$(Configuration)' == 'Custom_Release2' And '$(Platform)' == 'Win32'" Project="conan_dep_release_x64.props"/>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions