-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Sync Developer Balance template with latest maui-samples changes and improvements #32112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
I've integrated all changes from PR #32148 and improved the template. The changes include: From PR #32148:
Improvements made:
All changes verified in commit 032560e Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
#endif | ||
.ConfigureMauiHandlers(handlers => | ||
{ | ||
#if WINDOWS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot for templates can you please make sure to consult template semantics?
For example, these if/defs need to be included into the template code so they need to be surrounded by
//-:cnd:noEmit
#if windows
#endif
//+:cnd:noEmit
Can you please add a copilot instruction that's specific to the templates area location that will ensure you use all the proper rules in the future for updating templates?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the template semantics in MauiProgram.cs by adding //-:cnd:noEmit
and //+:cnd:noEmit
markers around the #if WINDOWS
directive (lines 24-39).
Also added a comprehensive "Working with Templates" section to .github/copilot-instructions.md
that documents:
- When to use
//-:cnd:noEmit
markers (platform-specific directives like#if WINDOWS
,#if DEBUG
) - When NOT to use them (template parameters like
#if (IncludeSampleContent)
) - Template naming conventions
- Files to exclude from template changes
- Template testing guidelines
- Quick reference table
Changes verified in commit b1e5115 (will be the new commit after this push).
…cument template conventions Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
.github/copilot-instructions.md
Outdated
|
||
Always put that at the top, without the block quotes. Without it, the users will NOT be able to try the PR and your work will have been in vain! | ||
|
||
## Working with Templates |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot can you move this to a specifics sintructions file that uses YAML syntax for only applying to the src/Templates folder?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved template instructions to .github/copilot-instructions/templates.yml
with YAML syntax that applies only to src/Templates/**
files. The file uses the applicability.paths
configuration to ensure instructions are shown only when working in the Templates directory.
Changes in commit 8955000 (will be the new commit after this push).
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
Resynced with PR #32148. Found and fixed 4 implementation differences: 1. ChartDataLabelConverter.cs
2. TagRepository.cs IsAssociated()
3. ProjectListPageModel.cs NavigateToProject()
4. MauiProgram.cs
All changes now match PR #32148 exactly. Commit 221de0f (will be new commit after push). Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
follow the guidance here please for this file
https://docs.github.com/en/copilot/how-tos/configure-custom-instructions/add-repository-instructions#creating-path-specific-custom-instructions-2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed path-specific custom instructions format following GitHub documentation. Changes:
- Renamed from
templates.yml
totemplates.md
- Added YAML frontmatter with
applies_to
field - Format now matches GitHub's documented structure
The file now uses the correct format:
---
applies_to:
- src/Templates/**
---
Commit 25df86b (will be new commit after push).
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
//-:cnd:noEmit
markers for platform-specific directivesSummary
Successfully integrated all changes from PR #32148 and configured path-specific custom instructions following GitHub's official documentation format.
Latest Change - Fixed Path-Specific Instructions Format:
.github/copilot-instructions/templates.yml
to.github/copilot-instructions/templates.md
applies_to
field per GitHub documentationCorrect Format:
This ensures GitHub Copilot properly applies these template-specific instructions only when working in the
src/Templates/
directory.All changes verified - template builds successfully.
Original prompt
Fixes #32111
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.