Skip to content

How to create multiple assets (dll) for one project with msbuild depend on Constans value? #5108

@soroshsabz

Description

@soroshsabz

ITNOA

I have a question in stackoverflow but I think this place can make better for get better answer to my question.

I have Visual Studio 2019.

I know we can build one project with multiple configurations, and have a dll per configuration, for example we can have one dll for the Debug configuration of our project and we can have one dll for the Release configuration of our project.

But my question is how to have multiple dlls for one project based on DefineConstants, for example one dll when we <DefineConstants>ML_HOOSHANG</DefineConstants> and have another dll for this project without define this constant?

Another question is how to package this project with hold all of these dlls per definition of our define constants?

Another question is, can I force Visual Studio (msbuild) to generate all dlls per build request?

Is UsingTask useful for this purpose? or not?

Is there anyway to change DefineConstants per UsingTask?

Thanks a lot

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions