Skip to content

Conversation

@jviau
Copy link
Contributor

@jviau jviau commented Jan 22, 2026

Issue describing the changes in this PR

resolves #3307

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes should not be added to the release notes for the next release
    • Otherwise: I've added my notes to release_notes.md
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • I have added all required tests (Unit tests, E2E tests)

Additional information

This PR adds a build-time check if the inner-project is generated, restored, and up-to-date for the build. A warning is emitted if not up to date and then the inner-build process is attempted at that time. On CI builds with no network access, it is expected for that fallback to fail. The fallback is primarily for local development.

Copilot AI review requested due to automatic review settings January 22, 2026 23:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a build-time verification/fallback to ensure the generated inner extensions project has been restored, emitting a new SDK warning (AZFW0108) when the restore hook didn’t run.

Changes:

  • Touches a restore marker during inner extension project restore and adds a build-time target to warn + run restore during build when the marker is missing/out-of-date.
  • Introduces new warning AZFW0108 (resource + LogMessage) and adds a corresponding rule doc.
  • Updates integration tests to validate the new restore marker behavior and adds a build scenario test.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
test/Azure.Functions.Sdk.Tests/Integration/SdkEndToEndTests.Restore.cs Adds restore marker assertions and incremental timestamp expectations.
test/Azure.Functions.Sdk.Tests/Integration/SdkEndToEndTests.Build.cs Adds a build test intended to cover the “missing restore hook” scenario.
src/Azure.Functions.Sdk/Targets/Extensions/Azure.Functions.Sdk.Extensions.targets Touches marker on restore; adds _VerifyRestoredFunctionsExtensions build-time warning + fallback.
src/Azure.Functions.Sdk/Targets/Extensions/Azure.Functions.Sdk.Extensions.props Defines marker path property for extensions restore verification.
src/Azure.Functions.Sdk/Strings.resx Adds AZFW0108 warning text.
src/Azure.Functions.Sdk/LogMessage.cs Registers Warning_ExtensionsNotRestored for FuncSdkLog.
docs/sdk-rules/AZFW0108.md Adds documentation for the new AZFW0108 warning and mitigation steps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

jviau and others added 2 commits January 23, 2026 09:22
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jviau jviau requested a review from RohitRanjanMS January 23, 2026 17:26
@jviau jviau merged commit 91a30eb into feature/msbuild-sdk Jan 23, 2026
28 checks passed
@jviau jviau deleted the jviau/msbuild-sdk/restore-fallback branch January 23, 2026 18:09
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.

3 participants