Skip to content

Incremental build deletes *.runtimeconfig.*.json if there is a runtimeconfig.template.json in the project #471

@nguerrera

Description

@nguerrera

The issue is that the fix made for deps.json (#424) was not made for runtimeconfig.json.

This causes every other F5 of a .NET Core App that has a runtimconfig.template.json to fail.

It turns out that the issue is less common for runtimeconfig.json because we have and Inputs=runtimeconfig.template.json which causes the task to run always if the file does not exist (and it commonly doesn't). However, if the file does exist then we get the same bad behavior for runtimeconfig.json that was seen with deps.json.

When fixing this, we should also:

  • Make sure to actually skip the generation if it's up to date but there is no template file
  • Audit all other uses of FileWrites for other possible latent issues here.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions