Skip to content

[ExtensionsMetadataGenerator] Improve configuration for cleaning build output #5894

@brettsam

Description

@brettsam

Today we have an "all or nothing" approach to cleaning your build output and disabling this involves a (currently) undocumented MSBuild setting: _FunctionsSkipCleanOutput. We're seeing a handful of customers run into this -- they move forward to a newer version of an assembly that we're cleaning away.

This often fails with Could not load file or assembly... exceptions during runtime.

I think we need to:

  1. Make this setting not as "internal" (remove the underscore) and document this... I'd assume here: https://docs.microsoft.com/en-us/azure/azure-functions/functions-develop-vs
  2. How fancy we can get with the cleanup and still have it be maintainable? Can we only delete if the version is to an exact match to what we have in https://github.com/Azure/azure-functions-host/blob/dev/tools/ExtensionsMetadataGenerator/src/ExtensionsMetadataGenerator/runtimeassemblies.txt?
  3. If we can't do this smart enough with number 2, allow you use MSBuild items to selectively exclude or include assemblies. That way you can still benefit from the cleaning but get things running.

Some related issues that have come up (I'm resolving all of those to this one):

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions