Document some new tasks in MSBuild 15.8#1080
Document some new tasks in MSBuild 15.8#1080jeffkl wants to merge 7 commits intoMicrosoftDocs:masterfrom jeffkl:df-rctf-z-uz
Conversation
|
@jeffkl : Thanks for your contribution! The author, @Mikejo5000, has been notified to review your proposed change. |
✅ Validation status: passed
For more details, please refer to the build report. Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report. |
| Starting in .NET Framework version 4, you can create tasks inline in the project file. You do not have to create a separate assembly to host the task. This makes it easier to keep track of source code and easier to deploy the task. The source code is integrated into the script. | ||
|
|
||
|
|
||
| In MSBuild 15.8, the [RoslnCodeTaskFactory](../msbuild/msbuild-roslyncodetaskfactory.md) was added which can create .NET Standard cross-platform inline tasks. If you need to use inline tasks on .NET Core, you must use the RoslynCodeTaskFactory. |
There was a problem hiding this comment.
Is it worth saying this is now the preferred way of doing inline tasks? Is it the new preferred way? :)
There was a problem hiding this comment.
Its required for inline tasks on .NET Core but existing builds can just stick with CodeTaskFactory.
| ```xml | ||
| <ParameterGroup> | ||
| <Expression Required="true" /> | ||
| <Files ParameterType="Microsoft.Build.Framework.ITaskItem[]" Required="true" /> |
| ms.suite: "" | ||
| ms.technology: msbuild | ||
| ms.tgt_pltfrm: "" | ||
| ms.topic: "article" |
There was a problem hiding this comment.
Jeff, can you make sure the articles use ms.topic: "conceptual" instead of "article", and that "douge" is listed as the manager? Thanks.
There was a problem hiding this comment.
@jeffkl Reading closer. Some are reference docs so ms.topic would be "reference"
|
@jeffkl Jeff, for the new topics we will need them in toc.yml before they can get through the approval process. Can you add them? Looks like the ref topics go here: https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild-task-reference |
|
@jeffkl : Thanks for your contribution! The author, @Mikejo5000, has been notified to review your proposed change. |
jeffkl
left a comment
There was a problem hiding this comment.
@Mikejo5000 sorry for the delay, please review my latest commit to see if it addresses your comments!
| ms.suite: "" | ||
| ms.technology: msbuild | ||
| ms.tgt_pltfrm: "" | ||
| ms.topic: "article" |
✅ Validation status: passed
For more details, please refer to the build report. Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report. |
Mikejo5000
left a comment
There was a problem hiding this comment.
@jeffkl Thanks, Jeff. Looks good.
|
#sign-off |
|
Microsoft authors of technical articles need to add content and make updates through the private repository so the updates can be staged and validated by the current validation rules. Read about authors working in the public repo for more information. Would you submit your updates through the private repo and close this pull request? Thank you. |
|
@ktoliver I get a 404 when visiting the private repo and I'm assuming its a permissions issue. The doc you linked to has no mention of how to request access and I can't figure it out. How do I request access? |
DownloadFiletask (Add DownloadFile task dotnet/msbuild#3297)ZipDirectorytask (Add ZipDirectory and Unzip tasks dotnet/msbuild#3291)Unziptask (Add ZipDirectory and Unzip tasks dotnet/msbuild#3291)RoslynCodeTaskFactory(Roslyn-based code task factory dotnet/msbuild#3175)