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

Cache Embedded Resources during compilation task #10928

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

JaynieBai
Copy link
Member

Fixes #10644 and #5334

Context

Fast up-to-date check with SDK project doesn't see new embedded resources!

Changes Made

Add @(_CoreCompileResourceInputs) to CoreCompileCache item, to include them in the cache file which gets
included in the CoreCompile target.

Testing

EmbeddedResourcesFileCompileCache()

Notes

See dotnet/project-system#5794 for more details.

@YuliiaKovalova
Copy link
Member

@JanKrivanek please help with this test failure

@JaynieBai
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@JaynieBai JaynieBai marked this pull request as ready for review January 6, 2025 09:17
@JaynieBai JaynieBai requested a review from Copilot January 7, 2025 03:57

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • src/Tasks/Microsoft.Common.CurrentVersion.targets: Language not supported
Comments suppressed due to low confidence (1)

src/Build.UnitTests/ProjectCache/ProjectCacheTests.cs:1664

  • The comment should start with a capital letter: 'The netfx bootstrap layout created with 'dotnet build' is incomplete'.
/// <summary>
@JaynieBai JaynieBai requested a review from SimaTian January 7, 2025 03:59
@@ -1656,5 +1659,73 @@ private void SetEnvironmentForErrorLocations(ErrorLocations errorLocations, Erro
}
}
}

[DotNetOnlyFact("The netfx bootstrap layout created with 'dotnet build' is incomplete")]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still true?
What happens with the test when run for core?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Deleted embedded resources dont cause rebuild
4 participants