[MSBUILD SDK] Add README.md to Azure.Functions.Sdk package#3373
[MSBUILD SDK] Add README.md to Azure.Functions.Sdk package#3373jviau wants to merge 2 commits intofeature/msbuild-sdkfrom
Conversation
- Create src/Azure.Functions.Sdk/README.md with SDK usage, minimal csproj example, migration guide from Microsoft.Azure.Functions.Worker.Sdk, azure_functions.g.csproj explanation, and link to SDK rules - Fill out docs/sdk-rules/index.md with full AZFW0100-AZFW0109 rules table - Wire README into NuGet package via PackageReadmeFile in csproj Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Adds end-user documentation for the Azure.Functions.Sdk MSBuild SDK package so the NuGet package includes a proper README, while preserving the existing developer-focused README and expanding the SDK rules index page.
Changes:
- Replaces
src/Azure.Functions.Sdk/README.mdwith a consumer-oriented package README (usage + migration guidance). - Moves local development instructions into
src/Azure.Functions.Sdk/README.DEV.md. - Updates packing metadata to include the README in the
Azure.Functions.SdkNuGet package, and expandsdocs/sdk-rules/index.mdwith the rule list.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/Azure.Functions.Sdk/README.md | New package-facing README content (getting started, migration, rules links). |
| src/Azure.Functions.Sdk/README.DEV.md | New dev-only README containing local development instructions previously in README.md. |
| src/Azure.Functions.Sdk/Azure.Functions.Sdk.csproj | Sets PackageReadmeFile and attempts to pack README into the nupkg. |
| docs/sdk-rules/index.md | Adds intro text and a table enumerating AZFW01xx SDK rules. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| You should **not** build, edit, or reference this project directly. If a traversal or `dirs.proj` file accidentally includes it, see [AZFW0109](https://github.com/Azure/azure-functions-dotnet-worker/blob/feature/msbuild-sdk/docs/sdk-rules/AZFW0109.md) for guidance. | ||
|
|
||
| ## SDK Rules | ||
|
|
||
| The SDK emits diagnostics prefixed with `AZFW01xx`. See the full list of SDK rules [here](https://github.com/Azure/azure-functions-dotnet-worker/blob/feature/msbuild-sdk/docs/sdk-rules/index.md). |
There was a problem hiding this comment.
The README links hard-code the feature/msbuild-sdk branch in GitHub URLs. Once this is merged (or when consumed from a NuGet package), these links are likely to break or point at the wrong content. Use a stable target (e.g., blob/main/..., a tagged version, or a relative link that works on GitHub) for both the AZFW0109 and SDK rules index references.
| You should **not** build, edit, or reference this project directly. If a traversal or `dirs.proj` file accidentally includes it, see [AZFW0109](https://github.com/Azure/azure-functions-dotnet-worker/blob/feature/msbuild-sdk/docs/sdk-rules/AZFW0109.md) for guidance. | |
| ## SDK Rules | |
| The SDK emits diagnostics prefixed with `AZFW01xx`. See the full list of SDK rules [here](https://github.com/Azure/azure-functions-dotnet-worker/blob/feature/msbuild-sdk/docs/sdk-rules/index.md). | |
| You should **not** build, edit, or reference this project directly. If a traversal or `dirs.proj` file accidentally includes it, see [AZFW0109](https://github.com/Azure/azure-functions-dotnet-worker/blob/main/docs/sdk-rules/AZFW0109.md) for guidance. | |
| ## SDK Rules | |
| The SDK emits diagnostics prefixed with `AZFW01xx`. See the full list of SDK rules [here](https://github.com/Azure/azure-functions-dotnet-worker/blob/main/docs/sdk-rules/index.md). |
| <None Include="Build/**" Pack="true" CamelCasePath="true" PackagePath="build/" /> | ||
| <None Include="Sdk/**" Pack="true" CamelCasePath="true" PackagePath="sdk/" /> | ||
| <None Include="Targets/**" Pack="true" CamelCasePath="true" PackagePath="targets/" /> | ||
| <None Include="README.md" Pack="true" PackagePath="\" /> |
There was a problem hiding this comment.
PackageReadmeFile expects README.md at the package root, but this item uses PackagePath="\", which is inconsistent with the rest of the repo (other packages use PackagePath="/") and may result in the readme being packed under an unexpected path (breaking NuGet readme rendering). Pack the readme to the package root using the same PackagePath convention as the other packages.
| <None Include="README.md" Pack="true" PackagePath="\" /> | |
| <None Include="README.md" Pack="true" PackagePath="/" /> |
Issue describing the changes in this PR
resolves #issue_for_this_pr
Pull request checklist
release_notes.mdAdditional information