-
Notifications
You must be signed in to change notification settings - Fork 1.7k
docs(msbuild): clarify UsingTask Runtime=NET support #11176
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
base: main
Are you sure you want to change the base?
Conversation
|
@fuguiKz : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change. |
|
Learn Build status updates of commit 7ba5f31: ✅ Validation status: passed
For more details, please refer to the build report. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR clarifies the MSBuild UsingTask element's Runtime attribute documentation, specifically documenting the new Runtime="NET" support introduced in MSBuild 18.0 (.NET SDK 10/Visual Studio 2026).
Key changes:
- Improved clarity of
Runtimeattribute documentation by removing duplicated/ambiguous wording - Documented
Runtime="NET"support and its current limitation (only works withMicrosoft.NET.Sdkprojects) - Updated code examples to use
$(MSBuildVersion)instead of$(SdkAnalysisLevel)for more accurate version checking
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
docs/msbuild/usingtask-element-msbuild.md |
Clarified the Runtime attribute description, documented Runtime="NET" support and limitations, and improved overall readability |
docs/msbuild/how-to-configure-targets-and-tasks.md |
Aligned TaskHost terminology (tasks→tasks, process→processes), updated warning message for consistency, and improved conditional UsingTask example to use $(MSBuildVersion) for version checks |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Can you review the proposed changes? IMPORTANT: When the changes are ready for publication, adding a #label:"aq-pr-triaged" |
Clarifies MSBuild
UsingTaskRuntimemetadata docs.docs/msbuild/usingtask-element-msbuild.md: removes duplicated/ambiguous wording and documentsRuntime="NET"(MSBuild 18.0+) plus the current limitation (only supported forMicrosoft.NET.Sdkprojects today).docs/msbuild/how-to-configure-targets-and-tasks.md: aligns TaskHost wording and updates the conditional sample to use$(MSBuildVersion).Refs dotnet/msbuild#12905.