Skip to content

Reference Microsoft.TemplateEngine.Authoring.Tasks in template package template#55384

Merged
MichaelSimons merged 2 commits into
mainfrom
copilot/fix-deprecated-package-reference
Jul 21, 2026
Merged

Reference Microsoft.TemplateEngine.Authoring.Tasks in template package template#55384
MichaelSimons merged 2 commits into
mainfrom
copilot/fix-deprecated-package-reference

Conversation

Copilot AI commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

The TemplatePackage template referenced Microsoft.TemplateEngine.Tasks, which no longer ships and has been replaced by Microsoft.TemplateEngine.Authoring.Tasks. Projects created from the template (with MSBuild tasks enabled) would fail to restore the deprecated package.

Changes

  • New.Template.Package.csproj: swapped the PackageReference to Microsoft.TemplateEngine.Authoring.Tasks.

    <PackageReference Include="Microsoft.TemplateEngine.Authoring.Tasks" Version="*" PrivateAssets="all" IsImplicitlyDefined="true"/>
  • Integration test snapshots: updated the templatepack.Basic, templatepack.CLI, and templatepack.WithName verified .csproj files to match the new template output.

Documentation references to Microsoft.TemplateEngine.Tasks were left as-is, since they describe the old package name for historical/migration context rather than recommending its use.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
3 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI linked an issue Jul 20, 2026 that may be closed by this pull request
…e template

Co-authored-by: ViktorHofer <7412651+ViktorHofer@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix deprecated package referenced on main Reference Microsoft.TemplateEngine.Authoring.Tasks in template package template Jul 20, 2026
Copilot AI requested a review from ViktorHofer July 20, 2026 16:48
@ViktorHofer
ViktorHofer marked this pull request as ready for review July 20, 2026 18:22
@ViktorHofer
ViktorHofer requested a review from a team as a code owner July 20, 2026 18:22
Copilot AI review requested due to automatic review settings July 20, 2026 18:22
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the TemplatePackage authoring template to reference the supported MSBuild tasks package (Microsoft.TemplateEngine.Authoring.Tasks) instead of the deprecated/non-shipping Microsoft.TemplateEngine.Tasks, and refreshes the integration test snapshots to match the new template output.

Changes:

  • Swap the TemplatePackage template’s PackageReference from Microsoft.TemplateEngine.Tasks to Microsoft.TemplateEngine.Authoring.Tasks.
  • Update TemplateEngine integration test verified snapshot .csproj files to reflect the new reference.
Show a summary per file
File Description
template_feed/Microsoft.TemplateEngine.Authoring.Templates/content/TemplatePackage/New.Template.Package.csproj Fixes the template output to reference Microsoft.TemplateEngine.Authoring.Tasks so restores succeed.
test/TemplateEngine/Microsoft.TemplateEngine.Authoring.Templates.IntegrationTests/Snapshots/templatepack.Basic.verified/templatepack/templatepack.csproj Updates verified snapshot to match new template output package reference.
test/TemplateEngine/Microsoft.TemplateEngine.Authoring.Templates.IntegrationTests/Snapshots/templatepack.CLI.verified/templatepack/templatepack.csproj Updates verified snapshot to match new template output package reference.
test/TemplateEngine/Microsoft.TemplateEngine.Authoring.Templates.IntegrationTests/Snapshots/templatepack.WithName.verified/templatepack/MyTemplatePackage.csproj Updates verified snapshot to match new template output package reference.

Copilot's findings

  • Files reviewed: 4/4 changed files
  • Comments generated: 0

@ViktorHofer
ViktorHofer requested a review from baronfel July 20, 2026 18:24
@ViktorHofer
ViktorHofer requested a review from marcpopMSFT July 21, 2026 06:25
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.

Deprecated package referenced on main

4 participants