Skip to content

Standardize sample directory names - #37823

Open
gewarren wants to merge 1 commit into
dotnet:mainfrom
gewarren:samples-directory-name
Open

gewarren wants to merge 1 commit into
dotnet:mainfrom
gewarren:samples-directory-name

Conversation

@gewarren

@gewarren gewarren commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

For the sake of the Dependabot config, let's use a standard samples directory name of "samples". (See #37822 (comment).)


Internal previews

Toggle expand/collapse
File Preview link
.openpublishing.redirection.json Learn preview
aspnetcore/blazor/host-and-deploy/webassembly/bundle-caching-and-integrity-check-failures.md Learn preview
aspnetcore/blazor/host-and-deploy/webassembly/iis.md Learn preview
aspnetcore/client-side/spa-services.md Learn preview
aspnetcore/client-side/spa-services/samples/SpaServicesSampleApp/ClientApp/app/components/counter/counter.component.spec.ts Learn preview
aspnetcore/client-side/spa-services/samples/SpaServicesSampleApp/ClientApp/boot-server.ts Learn preview
aspnetcore/client-side/spa-services/samples/SpaServicesSampleApp/ClientApp/test/karma.conf.js Learn preview
aspnetcore/client-side/spa-services/samples/SpaServicesSampleApp/SpaServicesSampleApp.csproj Learn preview
aspnetcore/client-side/spa-services/samples/SpaServicesSampleApp/Startup.cs Learn preview
aspnetcore/client-side/spa-services/samples/SpaServicesSampleApp/Views/_ViewImports.cshtml Learn preview
aspnetcore/client-side/spa-services/samples/SpaServicesSampleApp/Views/Home/Index.cshtml Learn preview
aspnetcore/client-side/spa-services/samples/SpaServicesSampleApp/webpack.config.js Learn preview
aspnetcore/data/entity-framework-6.md Learn preview
aspnetcore/data/entity-framework-6/samples/EF6/SchoolContext.cs Learn preview
aspnetcore/data/entity-framework-6/samples/EF6/SchoolContextFactory.cs Learn preview
aspnetcore/data/entity-framework-6/samples/MVCCore/Controllers/StudentsController.cs Learn preview
aspnetcore/data/entity-framework-6/samples/MVCCore/MVCCore.csproj Learn preview
aspnetcore/data/entity-framework-6/samples/MVCCore/Startup.cs Learn preview
aspnetcore/data/entity-framework-6/samples/MVCCore/wwwroot/images/banner1.svg Learn preview
aspnetcore/data/entity-framework-6/samples/MVCCore/wwwroot/images/banner2.svg Learn preview
aspnetcore/data/entity-framework-6/samples/MVCCore/wwwroot/images/banner3.svg Learn preview
aspnetcore/data/entity-framework-6/samples/MVCCore/wwwroot/images/banner4.svg Learn preview
aspnetcore/fundamentals/app-state.md Learn preview
aspnetcore/fundamentals/app-state/samples/3.0/RazorPagesContacts/Pages/Customers/Create.cshtml.cs Learn preview
aspnetcore/fundamentals/app-state/samples/3.0/RazorPagesContacts/Pages/Customers/Index.cshtml Learn preview
aspnetcore/fundamentals/app-state/samples/3.0/RazorPagesContacts/Pages/Customers/IndexKeep.cshtml Learn preview
aspnetcore/fundamentals/app-state/samples/3.0/RazorPagesContacts/Pages/Customers/IndexPeek.cshtml Learn preview
aspnetcore/fundamentals/app-state/samples/6.0/RazorPagesContacts/Pages/Customers/Index.cshtml Learn preview
aspnetcore/fundamentals/app-state/samples/6.0/RazorPagesContacts/Pages/Customers/IndexKeep.cshtml Learn preview
aspnetcore/fundamentals/app-state/samples/6.0/RazorPagesContacts/Program.cs Learn preview
aspnetcore/fundamentals/app-state/samples/6.0/SessionSample/Extensions/SessionExtensions.cs Learn preview
aspnetcore/fundamentals/app-state/samples/6.0/SessionSample/Middleware/HttpContextItemsMiddleware.cs Learn preview
aspnetcore/fundamentals/app-state/samples/6.0/SessionSample/Pages/Index.cshtml.cs Learn preview
aspnetcore/fundamentals/app-state/samples/6.0/SessionSample/Pages/Index2.cshtml.cs Learn preview
aspnetcore/fundamentals/app-state/samples/6.0/SessionSample/Pages/Index6.cshtml.cs Learn preview
aspnetcore/fundamentals/app-state/samples/6.0/SessionSample/Pages/Privacy.cshtml Learn preview
aspnetcore/fundamentals/app-state/samples/6.0/SessionSample/Program.cs Learn preview
aspnetcore/fundamentals/error-handling-api.md Learn preview
aspnetcore/fundamentals/host/generic-host.md Learn preview
aspnetcore/fundamentals/host/generic-host/samples/snapshot/3.x/LifetimeEventsHostedService.cs Learn preview
aspnetcore/fundamentals/host/generic-host/samples/snapshot/3.x/Program.cs Learn preview
aspnetcore/fundamentals/host/platform-specific-configuration.md Learn preview
aspnetcore/fundamentals/host/platform-specific-configuration/samples/snapshot/2.x/StartupEnhancement.cs Learn preview
aspnetcore/fundamentals/host/platform-specific-configuration/samples/snapshot/2.x/StartupEnhancement.csproj Learn preview
aspnetcore/fundamentals/host/platform-specific-configuration/samples/snapshot/2.x/StartupEnhancement1.deps.json Learn preview
aspnetcore/fundamentals/host/platform-specific-configuration/samples/snapshot/3.x/StartupEnhancement.cs Learn preview
aspnetcore/fundamentals/host/platform-specific-configuration/samples/snapshot/3.x/StartupEnhancement.csproj Learn preview
aspnetcore/fundamentals/host/platform-specific-configuration/samples/snapshot/3.x/StartupEnhancement1.deps.json Learn preview
aspnetcore/fundamentals/http-logging/index.md Learn preview
aspnetcore/fundamentals/http-logging/samples/snapshot/9.x/Program.cs Learn preview

Note

This table shows the first 50 preview links (sorted alphabetically by file path) found in the OPS build report. For the full list, select OpenPublishing.Build Details within checks.

Build report

Copilot AI balanced review requested due to automatic review settings October 9, 2026 01:05
@gewarren
gewarren requested a review from guardrex as a code owner October 9, 2026 01:05

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.

🟡 Changes recommended

Fifty-four sample links remain broken, and the redirect change removes coverage for an existing legacy URL.

1 open finding
What changed in this PR

Standardizes sample directories as samples so Dependabot patterns can cover them consistently.

Changes:

  • Moves legacy sample directory variants into samples.
  • Updates related snippet paths and selected metadata.
  • Adjusts a legacy publishing redirect.
File(s) Description
aspnetcore/​**/​samples/​** Relocates sample projects and assets.
Related ASP.NET Core articles Updates references to moved samples.
.openpublishing.redirection.json Changes a legacy redirect source path.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

},
{
"source_path": "aspnet/mvc/overview/getting-started/introduction/sample/code-location.md",
"source_path": "aspnet/mvc/overview/getting-started/introduction/samples/code-location.md",
@guardrex

guardrex commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Is it ok if we wait to merge this until after I've cleared through most of the PRs? I don't want to create a large number of merge conflicts with open work.

UPDATE: Yes, let's please hold off on this until at least next week. I just had to go through and fix a bunch of merge conflicts for the metadata updates. I'd like to get down to just a handful of open PRs, and then we can get this in smoothly.

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.

3 participants