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

Fast Up-To-Date Check: Build-time generated <Content/> files not copied #9506

Open
snechaev opened this issue Jul 18, 2024 · 0 comments
Open
Assignees
Labels
Feature-Up-to-date Build up-to-date check that avoids shelling out to MSBuild unless necessary. Triage-Investigate Reviewed and investigation needed by dev team
Milestone

Comments

@snechaev
Copy link

snechaev commented Jul 18, 2024

Visual Studio Version

Microsoft Visual Studio Professional 2022 (64-bit) - Current
Version 17.10.4

Summary

I have a dependency (Class library) which generates some content files in the build-time. And this files are not copied into the app output directory when FUTDC are used.

Steps to Reproduce

  1. Download solution: Test.zip
  2. Make full rebuild
  3. Check the App\bin\Debug\net8.0\ContentDir folder and make sure that both static and dyncmic content files are here: StaticContent.xml & DynamicContent.txt
  4. Remove the App\bin\Debug\net8.0\ContentDir folder.
  5. Hit F5 in VS to make a build with a FUTDC
  6. Check the App\bin\Debug\net8.0\ContentDir folder content

Expected Behavior

both static and dyncmic content files were copied during the build: StaticContent.xml & DynamicContent.txt

Actual Behavior

Only static content was copied, the folder contains only the StaticContent.xml file. DynamicContent.txt is missing.

User Impact

FUTDC gives the unpredictable build resultd depending on the state of the output folder, so I was forced to disable FUTDC globally.

Additional details

<AssignTargetPathsDependsOn>$(AssignTargetPathsDependsOn);MyTarget;</AssignTargetPathsDependsOn>
<GetCopyToOutputDirectoryItemsDependsOn>$(GetCopyToOutputDirectoryItemsDependsOn);MyTarget;</GetCopyToOutputDirectoryItemsDependsOn>

@tmeschter tmeschter added Feature-Up-to-date Build up-to-date check that avoids shelling out to MSBuild unless necessary. Bug labels Jul 18, 2024
@tmeschter tmeschter added the Triage-Investigate Reviewed and investigation needed by dev team label Jul 18, 2024
@tmeschter tmeschter added this to the 17.x milestone Jul 18, 2024
@drewnoakes drewnoakes removed the Bug label Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature-Up-to-date Build up-to-date check that avoids shelling out to MSBuild unless necessary. Triage-Investigate Reviewed and investigation needed by dev team
Projects
None yet
Development

No branches or pull requests

3 participants