Repository navigation
Conversation
The test installed the latest package, so publishing 11.0.100 changed the generated F# project (FSharp.NET.Sdk removed) and broke the checked-in snapshot. Pin to 10.0.404, which the snapshots match. Fixes dotnet#57031 Co-authored-by: Copilot App <[email protected]>
|
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. |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the package pin intended to prevent snapshot drift.
No open issues 🎉
What changed in this PR
Stabilizes the .NET SDK’s template sample integration tests against package-driven snapshot drift reported in #57031.
Changes:
- Pins
Microsoft.TemplateEngine.Samplesto10.0.404instead of installing the latest release. - Adds a comment explaining the pin; existing snapshots remain unchanged.
| File | Description |
|---|---|
test/dotnet-new.IntegrationTests/TemplateEngineSamplesTest.cs |
Pins the samples package during test initialization and documents why. |
Review effort: Balanced
…he published one Pack documentation/TemplateEngine/Samples as part of building dotnet-new.IntegrationTests and install that nupkg in TemplateEngineSamplesTest, replacing the unversioned install of the latest published package. Update the F# snapshot to match the in-repo sample. Fixes dotnet#57031 Co-authored-by: Copilot App <[email protected]>
…kage Mark the samples content CopyToOutputDirectory (under TemplateEngineSamples/) so a ProjectReference copies it into the dotnet-new.IntegrationTests output, and install that folder in TemplateEngineSamplesTest. The package layout is unchanged. Co-authored-by: Copilot App <[email protected]>
MiYanni
enabled auto-merge
November 12, 2026 01:53
JeremyKuhne
approved these changes
Nov 12, 2026
Member
Author
|
/azp run dotnet-sdk-public-ci |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Member
Author
|
I've moved the changes from this PR into here: #57089 Both sets of changes were necessary for |
auto-merge was automatically disabled
November 12, 2026 23:50
Pull request was closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TemplateEngineSamplesTestinstalled the latest publishedMicrosoft.TemplateEngine.Samplespackage, so publishing11.0.100(which dropsFSharp.NET.Sdkfrom the F# sample) broke the checked-insample06 --language F#snapshot.The samples live in this repo (
documentation/TemplateEngine/Samples), so the test now uses them directly instead of any package:Microsoft.TemplateEngine.Samples.csprojmarks its template contentCopyToOutputDirectory(linked underTemplateEngineSamples/). The package layout is unchanged (verified the nupkg entries are identical).dotnet-new.IntegrationTests.csprojhas aProjectReference(ReferenceOutputAssembly="false") to the samples project, so building the tests copies the templates into the test output.TemplateEngineSamplesTestinstalls theTemplateEngineSamplesfolder from its output directory.Microsoft.NET.Sdk, no legacy package references).Snapshots now always match the template content in the same commit.
Validated locally: all 16
TemplateEngineSamplesTestcases pass.Fixes #57031