[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69AKVJQWXZ4J8EC0ZBQV36F":3,"skill-same:01M69AKVJQWXZ4J8EC0ZBQV36F":70},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":32,"linkOnly":33,"markdownContent":34,"markdownBody":35,"frontMatter":36,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":17,"ownerHtmlUrl":43,"ownerBlogUrl":44,"ownerDescription":45,"updatedAt":46,"install":47,"resources":59},"01M69AKVJQWXZ4J8EC0ZBQV36F","update-library-template","库模板合并与冲突解决","Merges the latest Library.Template into this repo (at position of HEAD) and resolves conflicts.","将最新的 Library.Template 合并到本仓库（在 HEAD 位置），并解决冲突。","microsoft\u002Fvs-solutionpersistence","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69AKR7YCE4M9R0CKWW8JFZY",214,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvs-solutionpersistence\u002Fblob\u002Fauto\u002FlibtemplateUpdate\u002F.github\u002Fskills\u002Fupdate-library-template\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理","SCENARIO","使用场景",[31],"update library template","2026-11-10 10:12:30",false,"---\nname: update-library-template\ndescription: Merges the latest Library.Template into this repo (at position of HEAD) and resolves conflicts.\ndisable-model-invocation: true\n---\n\n# Instructions\n\n1. Run `.\u002Ftools\u002FMergeFrom-Template.ps1` from the repo root.\n2. Resolve merge conflicts, taking into account conflict resolution policy below.\n3. Validate the changes, as described in the validation section below.\n4. Committing your changes (if applicable).\n\n## Conflict resolution policy\n\nThere may be [special notes](template-release-notes.md) that describe special considerations for certain files or scenarios to help you resolve conflicts appropriately.\nAlways refer to that file before proceeding.\nIn particular, focus on the *incoming* part of the file, since it represents the changes from the Library.Template that you are merging into your repo.\nAlso refer to `.github\u002Fprompts\u002Frepo-merge-notes.md` for notes specific to this repo (e.g. which deleted files to keep, which customizations to preserve).\nAlso consider that some repos choose to reject certain Library.Template patterns.\nFor example the template uses MTPv2 for test projects, but a repo might have chosen not to adopt that.\nWhen resolving merge conflicts, consider whether it looks like the relevant code file is older than it should be given the changes the template is bringing in.\nAsk the user when in doubt as to whether the conflict should be resolved in favor of 'catching up' with the template or keeping the current changes.\n\nUse #runSubagent to analyze and resolve merge conflicts across files in parallel.\n\n### Keep Current files\n\nConflicts in the following files should always be resolved by keeping the current version (i.e. discard incoming changes):\n\n* README.md\n\n### Deleted files\n\nVery typically, when the incoming change is to a file that was deleted locally, the correct resolution is to re-delete the file.\n\nIn some cases however, the deleted file may have incoming changes that should be applied to other files.\nThe `test\u002FLibrary.Tests\u002FLibrary.Tests.csproj` file is very typical of this.\nChanges to this file should very typically be applied to any and all test projects in the repo.\nYou are responsible for doing this in addition to re-deleting this template file.\n\n### Files deleted by the template\n\nWhen the template deletes a file that exists locally, check the template's commit history to understand *why* it was removed.\nUse the GitHub commit history page for the file (e.g. `https:\u002F\u002Fgithub.com\u002Faarnott\u002FLibrary.Template\u002Fcommits\u002Fmicrobuild\u002Fpath\u002Fto\u002Ffile`) to find the relevant commit.\nIf the template restructured or centralized the functionality (e.g. OptProf pipelines moved to a centralized VS pipeline), accept the deletion.\nIf the file contains repo-specific customizations not present in the template, keep it.\n\n### Files deleted locally but updated by the template\n\nThese show as \"deleted by us\" conflicts. Refer to `repo-merge-notes.md` for this repo's specific decisions on which files to keep or re-delete.\n\n## Updating package and SDK versions\n\nAfter the merge, always check global.json for MSBuild Sdks with names starting with `Microsoft.VisualStudio.Internal.MicroBuild`.\nThese SDK versions should match the value of the `MicroBuildVersion` property found in `Directory.Packages.props`.\nAlways take the latest of the versions you see among these SDKs and the `MicroBuildVersion` property.\n\n## Validation\n\nValidate the merge result (after resolving any conflicts, if applicable).\nUse #runSubagent for each step.\n\n1. Verify that `dotnet restore` succeeds. Fix any issues that come up.\n2. Verify that `dotnet build` succeeds.\n3. Verify that tests succeed by running `tools\u002Fdotnet-test-cloud.ps1`.\n\nWhile these validations are described using `dotnet` CLI commands, some repos require using full msbuild.exe.\nYou can detect this by checking the `azure-pipelines\u002Fdotnet.yml` or `.github\u002Fworkflows\u002Fbuild.yml` files for use of one or the other tool.\n\nYou are *not* responsible for fixing issues that the merge did not cause.\nIf validation fails for reasons that seem unrelated to the changes brought in by the merge, advise the user and ask how they'd like you to proceed.\nThat said, sometimes merges will bring in SDK or dependency updates that can cause breaks in seemingly unrelated areas.\nIn such cases, you should investigate and solve the issues as needed.\n\n## Committing your changes\n\nIf you have to make any changes for validations to pass, consider whether they qualify as a bad merge conflict resolution or more of a novel change that you're making to work with the Library.Template update.\nMerge conflict resolution fixes ideally get amended into the merge commit, while novel changes would go into a novel commit after the merge commit.\n\nAlways author your commits using `git commit --author \"? Copilot \u003Cno-reply@github.com>\"` (and possibly other parameters).\nDescribe the nature of the merge conflicts you encountered and how you resolved them in your commit message.\n\nLater, if asked to review pull request validation breaks, always author a fresh commit with each fix that you push, unless the user directs you to do otherwise.\n","# Instructions\n\n1. Run `.\u002Ftools\u002FMergeFrom-Template.ps1` from the repo root.\n2. Resolve merge conflicts, taking into account conflict resolution policy below.\n3. Validate the changes, as described in the validation section below.\n4. Committing your changes (if applicable).\n\n## Conflict resolution policy\n\nThere may be [special notes](template-release-notes.md) that describe special considerations for certain files or scenarios to help you resolve conflicts appropriately.\nAlways refer to that file before proceeding.\nIn particular, focus on the *incoming* part of the file, since it represents the changes from the Library.Template that you are merging into your repo.\nAlso refer to `.github\u002Fprompts\u002Frepo-merge-notes.md` for notes specific to this repo (e.g. which deleted files to keep, which customizations to preserve).\nAlso consider that some repos choose to reject certain Library.Template patterns.\nFor example the template uses MTPv2 for test projects, but a repo might have chosen not to adopt that.\nWhen resolving merge conflicts, consider whether it looks like the relevant code file is older than it should be given the changes the template is bringing in.\nAsk the user when in doubt as to whether the conflict should be resolved in favor of 'catching up' with the template or keeping the current changes.\n\nUse #runSubagent to analyze and resolve merge conflicts across files in parallel.\n\n### Keep Current files\n\nConflicts in the following files should always be resolved by keeping the current version (i.e. discard incoming changes):\n\n* README.md\n\n### Deleted files\n\nVery typically, when the incoming change is to a file that was deleted locally, the correct resolution is to re-delete the file.\n\nIn some cases however, the deleted file may have incoming changes that should be applied to other files.\nThe `test\u002FLibrary.Tests\u002FLibrary.Tests.csproj` file is very typical of this.\nChanges to this file should very typically be applied to any and all test projects in the repo.\nYou are responsible for doing this in addition to re-deleting this template file.\n\n### Files deleted by the template\n\nWhen the template deletes a file that exists locally, check the template's commit history to understand *why* it was removed.\nUse the GitHub commit history page for the file (e.g. `https:\u002F\u002Fgithub.com\u002Faarnott\u002FLibrary.Template\u002Fcommits\u002Fmicrobuild\u002Fpath\u002Fto\u002Ffile`) to find the relevant commit.\nIf the template restructured or centralized the functionality (e.g. OptProf pipelines moved to a centralized VS pipeline), accept the deletion.\nIf the file contains repo-specific customizations not present in the template, keep it.\n\n### Files deleted locally but updated by the template\n\nThese show as \"deleted by us\" conflicts. Refer to `repo-merge-notes.md` for this repo's specific decisions on which files to keep or re-delete.\n\n## Updating package and SDK versions\n\nAfter the merge, always check global.json for MSBuild Sdks with names starting with `Microsoft.VisualStudio.Internal.MicroBuild`.\nThese SDK versions should match the value of the `MicroBuildVersion` property found in `Directory.Packages.props`.\nAlways take the latest of the versions you see among these SDKs and the `MicroBuildVersion` property.\n\n## Validation\n\nValidate the merge result (after resolving any conflicts, if applicable).\nUse #runSubagent for each step.\n\n1. Verify that `dotnet restore` succeeds. Fix any issues that come up.\n2. Verify that `dotnet build` succeeds.\n3. Verify that tests succeed by running `tools\u002Fdotnet-test-cloud.ps1`.\n\nWhile these validations are described using `dotnet` CLI commands, some repos require using full msbuild.exe.\nYou can detect this by checking the `azure-pipelines\u002Fdotnet.yml` or `.github\u002Fworkflows\u002Fbuild.yml` files for use of one or the other tool.\n\nYou are *not* responsible for fixing issues that the merge did not cause.\nIf validation fails for reasons that seem unrelated to the changes brought in by the merge, advise the user and ask how they'd like you to proceed.\nThat said, sometimes merges will bring in SDK or dependency updates that can cause breaks in seemingly unrelated areas.\nIn such cases, you should investigate and solve the issues as needed.\n\n## Committing your changes\n\nIf you have to make any changes for validations to pass, consider whether they qualify as a bad merge conflict resolution or more of a novel change that you're making to work with the Library.Template update.\nMerge conflict resolution fixes ideally get amended into the merge commit, while novel changes would go into a novel commit after the merge commit.\n\nAlways author your commits using `git commit --author \"? Copilot \u003Cno-reply@github.com>\"` (and possibly other parameters).\nDescribe the nature of the merge conflicts you encountered and how you resolved them in your commit message.\n\nLater, if asked to review pull request validation breaks, always author a fresh commit with each fix that you push, unless the user directs you to do otherwise.\n",{"name":5,"description":7,"disable-model-invocation":37},true,"auto\u002FlibtemplateUpdate","ffe47c0b76b8927c92f8795d891ad0a1d06acb03",".github\u002Fskills\u002Fupdate-library-template",14,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvs-solutionpersistence","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-07 03:32:02",{"source":9,"skillName":5,"commands":48,"prompt":58,"zipAvailable":37},[49,52,55],{"tool":50,"command":51},"npx","npx skills add microsoft\u002Fvs-solutionpersistence --skill update-library-template",{"tool":53,"command":54},"bunx","bunx skills add microsoft\u002Fvs-solutionpersistence --skill update-library-template",{"tool":56,"command":57},"pnpm","pnpm dlx skills add microsoft\u002Fvs-solutionpersistence --skill update-library-template","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvs-solutionpersistence\u002Fblob\u002Fauto\u002FlibtemplateUpdate\u002F.github\u002Fskills\u002Fupdate-library-template\u002FSKILL.md",[60,66],{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"repo-merge-notes.md","REFERENCE","参考文档",2772,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvs-solutionpersistence\u002Fblob\u002Fauto\u002FlibtemplateUpdate\u002F.github\u002Fskills\u002Fupdate-library-template\u002Frepo-merge-notes.md",{"path":67,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":68,"sourceHtmlUrl":69},"template-release-notes.md",1112,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvs-solutionpersistence\u002Fblob\u002Fauto\u002FlibtemplateUpdate\u002F.github\u002Fskills\u002Fupdate-library-template\u002Ftemplate-release-notes.md",[]]