Skip to content

Add optimization targets to .NET #20129

@rolfbjarne

Description

@rolfbjarne

Looks like the following targets are never called from .NET projects:

  • _OptimizePngImages
  • _OptimizePropertyLists
  • _OptimizeLocalizationFiles

I don't remember a reason why, so this might very well just be an oversight.

We should look into this, and see if we can use them in .NET projects.

A possible workaround would be to add something like this to the project file:

<PropertyGroup>
    <BuildDependsOn>
        $(BuildDependsOn);
		_OptimizePngImages;
	</BuildDependsOn>
</BuildDependsOn>

(in this case to run the _OptimizePngImages target).

Ref: #20106.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThe issue or pull request is an enhancementperformanceIf an issue or pull request is related to performance

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions