dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.15k stars 4.71k forks source link

[wasm] Publish deletes *build* intermediate files, causing relinking on incremental build #59278

Open radical opened 3 years ago

radical commented 3 years ago

Steps:

  1. build (creates obj/for-build)
  2. publish (creates obj/for-publish, and deletes obj/for-build)
  3. build (relinking needed because the intermediate native files in obj/for-build are gone!)

Related: Use relative paths for FileWrites

ghost commented 3 years ago

Tagging subscribers to 'arch-wasm': @lewing See info in area-owners.md if you want to be subscribed.

Issue Details
Steps: 1. build (creates `obj/for-build`) 2. publish (creates `obj/for-publish`, and deletes `obj/for-build`) 3. build (relinking needed because the intermediate native files in `obj/for-build` are gone!)
Author: radical
Assignees: radical
Labels: `arch-wasm`, `area-Build-mono`
Milestone: -
ilonatommy commented 2 years ago

@radical, can we make it in the current iteration?

lewing commented 2 years ago

pin @radical

radical commented 2 years ago

note to self: check if this is supported at all, with non-wasm projects .

lewing commented 1 year ago

ping @radical

radical commented 1 year ago

update: This seems to work for a simple console project. Though this might not be a real user case because IIUC publish is usually not meant to work with incremental builds.