Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optimization targets to .NET #20129

Open
3 tasks
rolfbjarne opened this issue Feb 16, 2024 · 0 comments
Open
3 tasks

Add optimization targets to .NET #20129

rolfbjarne opened this issue Feb 16, 2024 · 0 comments
Labels
enhancement The issue or pull request is an enhancement performance If an issue or pull request is related to performance
Projects
Milestone

Comments

@rolfbjarne
Copy link
Member

rolfbjarne commented Feb 16, 2024

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.

@rolfbjarne rolfbjarne added enhancement The issue or pull request is an enhancement performance If an issue or pull request is related to performance labels Feb 16, 2024
@rolfbjarne rolfbjarne added this to the .NET 9 milestone Feb 16, 2024
@rolfbjarne rolfbjarne added this to Optimizations in .NET 9 Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue or pull request is an enhancement performance If an issue or pull request is related to performance
Projects
.NET 9
Optimizations
Development

No branches or pull requests

1 participant