Skip to content

Commit 3e5fc68

Browse files
committed
Merge branch 'main' into fix-18205
2 parents b03f828 + 936db46 commit 3e5fc68

File tree

3,334 files changed

+82189
-29533
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,334 files changed

+82189
-29533
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
description: Branch classification configuration for repository
2+
resource: repository
3+
configuration:
4+
branchClassificationSettings:
5+
defaultClassification: nonproduction
6+
ruleset:
7+
- name: prod-branches
8+
branchNames:
9+
- main
10+
- release/*
11+
- net10.0
12+
- net9.0
13+
- inflight/current
14+
classification: production
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## DO NOT MODIFY THIS FILE MANUALLY. This is part of auto-baselining from 1ES Pipeline Templates. Go to [https://aka.ms/1espt-autobaselining] for more details.
2+
3+
pipelines:
4+
1095:
5+
retail:
6+
source:
7+
credscan:
8+
lastModifiedDate: 2024-11-20
9+
policheck:
10+
lastModifiedDate: 2024-11-20
11+
eslint:
12+
lastModifiedDate: 2024-11-20
13+
psscriptanalyzer:
14+
lastModifiedDate: 2024-11-20
15+
armory:
16+
lastModifiedDate: 2024-11-20
17+
binary:
18+
credscan:
19+
lastModifiedDate: 2024-11-20
20+
binskim:
21+
lastModifiedDate: 2025-02-18
22+
1445:
23+
retail:
24+
source:
25+
credscan:
26+
lastModifiedDate: 2025-04-29
27+
policheck:
28+
lastModifiedDate: 2025-04-29
29+
eslint:
30+
lastModifiedDate: 2025-04-29
31+
psscriptanalyzer:
32+
lastModifiedDate: 2025-04-29
33+
armory:
34+
lastModifiedDate: 2025-04-29

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"rollForward": false
2525
},
2626
"microsoft.dotnet.xharness.cli": {
27-
"version": "9.0.0-prerelease.25214.1",
27+
"version": "9.0.0-prerelease.25317.3",
2828
"commands": [
2929
"xharness"
3030
],

.github/CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
This project has adopted the code of conduct defined by the Contributor Covenant
44
to clarify expected behavior in our community.
55

6-
For more information, see the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/about/policies/code-of-conduct).
6+
For more information, see the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct).

.github/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Have a look at our [Development Guide](DEVELOPMENT.md) to learn about setting up
2222

2323
If you're looking for something to work on, please browse our [backlog](https://github.com/dotnet/maui/issues?q=is%3Aopen+is%3Aissue+milestone%3ABacklog). Any issue that is not already assigned is up for grabs.
2424

25-
Follow the style used by the [.NET Foundation](https://github.com/dotnet/runtime/blob/master/docs/coding-guidelines/coding-style.md), with two primary exceptions:
25+
Follow the style used by the [.NET Foundation](https://github.com/dotnet/runtime/blob/main/docs/coding-guidelines/coding-style.md), with two primary exceptions:
2626

2727
- We do not use the `private` keyword, as it is the default accessibility level in C#.
2828
- We use hard tabs over spaces.
@@ -55,7 +55,7 @@ If a BenchmarkDotNet test case is not possible, share before & after profiling i
5555

5656
## Proposals/Enhancements/Suggestions
5757

58-
To propose a change or new feature, open an issue using the [Feature request template](https://github.com/dotnet/maui/issues/new?assignees=&labels=proposal-open%2C+t%2Fenhancement+➕&template=feature_request.md&title=[Enhancement]+YOUR+IDEA!). You may also use the [Spec template](https://github.com/dotnet/maui/issues/new?assignees=&labels=proposal-open%2C+t%2Fenhancement+➕&template=spec.md&title=[Spec]++) if you have an idea of what the API should look like. Be sure to also browse current issues and [discussions](https://github.com/dotnet/maui/discussions) that may be related to what you have in mind.
58+
To propose a change or new feature, open an issue using the [Feature request template](https://github.com/dotnet/maui/issues/new?template=feature-request.yml). You may also use the [Spec template](https://github.com/dotnet/maui/issues/new?template=spec.yml) if you have an idea of what the API should look like. Be sure to also browse current issues and [discussions](https://github.com/dotnet/maui/discussions) that may be related to what you have in mind.
5959

6060
## Review Process
6161
All pull requests need to be reviewed and tested by at least two members of the .NET MAUI team. We do our best to review pull requests in a timely manner, but please be patient! Two reviewers will be assigned and will start the review process as soon as possible. If there are any changes requested, the contributor should make them at their earliest convenience or let the reviewers know that they are unable to make further contributions. If the pull request requires only minor changes, then someone else may pick it up and finish it. We will do our best to make sure that all credit is retained for contributors.

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 20 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,18 @@ body:
4242
label: Version with bug
4343
description: In what version do you see this issue? Run `dotnet workload list` to find your version.
4444
options:
45+
- 10.0.0-preview.7
46+
- 10.0.0-preview.6
47+
- 10.0.0-preview.5
4548
- 10.0.0-preview.4
4649
- 10.0.0-preview.3
4750
- 10.0.0-preview.2
4851
- 10.0.0-preview.1
52+
- 9.0.100 SR10
53+
- 9.0.90 SR9
54+
- 9.0.82 SR8.2
55+
- 9.0.81 SR8.1
56+
- 9.0.80 SR8
4957
- 9.0.70 SR7
5058
- 9.0.61 SR6.1
5159
- 9.0.60 SR6
@@ -67,26 +75,7 @@ body:
6775
- 9.0.0-preview.3.10457
6876
- 9.0.0-preview.2.10293
6977
- 9.0.0-preview.1.9973
70-
- 8.0.100 SR10
71-
- 8.0.93 SR9.3
72-
- 8.0.92 SR9.2
73-
- 8.0.91 SR9.1
74-
- 8.0.90 SR9
75-
- 8.0.83 SR8.3
76-
- 8.0.82 SR8.2
77-
- 8.0.80 SR8
78-
- 8.0.71 SR7.1
79-
- 8.0.70 SR7
80-
- 8.0.61 SR6.1
81-
- 8.0.60 SR6
82-
- 8.0.40 SR5
83-
- 8.0.21 SR4.1
84-
- 8.0.20 SR4
85-
- 8.0.14 SR3.1
86-
- 8.0.10 SR3
87-
- 8.0.7 SR2
88-
- 8.0.6 SR1
89-
- 8.0.3 GA
78+
- .NET 8 (Out of support, please specify exact version)
9079
- Nightly / CI build (Please specify exact version)
9180
- Unknown/Other
9281
validations:
@@ -112,47 +101,9 @@ body:
112101
options:
113102
-
114103
- Unknown/Other
115-
- 6.0
116-
- 7.0.49
117-
- 7.0.52
118-
- 7.0.58
119-
- 7.0.59
120-
- 7.0.81
121-
- 7.0.86
122-
- 7.0.92
123-
- 7.0.96
124-
- 7.0.100
125-
- 7.0.101
126-
- 8.0.0-preview.1.7762
127-
- 8.0.0-preview.2.7871
128-
- 8.0.0-preview.3.8149
129-
- 8.0.0-preview.4.8333
130-
- 8.0.0-preview.5.8529
131-
- 8.0.0-preview.6.8686
132-
- 8.0.0-preview.7.8842
133-
- 8.0.0-rc.1.9171
134-
- 8.0.0-rc.2.9373
135-
- 8.0.0-rc.2.9511
136-
- 8.0.3 GA
137-
- 8.0.6 SR1
138-
- 8.0.7 SR2
139-
- 8.0.10 SR3
140-
- 8.0.14 SR3.1
141-
- 8.0.20 SR4
142-
- 8.0.21 SR4.1
143-
- 8.0.40 SR5
144-
- 8.0.60 SR6
145-
- 8.0.61 SR6.1
146-
- 8.0.70 SR7
147-
- 8.0.71 SR7.1
148-
- 8.0.80 SR8
149-
- 8.0.82 SR8.2
150-
- 8.0.83 SR8.3
151-
- 8.0.90 SR9
152-
- 8.0.91 SR9.1
153-
- 8.0.92 SR9.2
154-
- 8.0.93 SR9.3
155-
- 8.0.100 SR10
104+
- .NET 6 (Please specify exact version)
105+
- .NET 7 (Please specify exact version)
106+
- .NET 8 (Please specify exact version)
156107
- 9.0.0-preview.1.9973
157108
- 9.0.0-preview.2.10293
158109
- 9.0.0-preview.3.10457
@@ -174,10 +125,18 @@ body:
174125
- 9.0.60 SR6
175126
- 9.0.61 SR6.1
176127
- 9.0.70 SR7
128+
- 9.0.80 SR8
129+
- 9.0.81 SR8.1
130+
- 9.0.82 SR8.2
131+
- 9.0.90 SR9
132+
- 9.0.100 SR10
177133
- 10.0.0-preview.1
178134
- 10.0.0-preview.2
179135
- 10.0.0-preview.3
180136
- 10.0.0-preview.4
137+
- 10.0.0-preview.5
138+
- 10.0.0-preview.6
139+
- 10.0.0-preview.7
181140
validations:
182141
required: true
183142
- type: dropdown

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ contact_links:
33
- name: .NET MAUI Community Support
44
url: https://learn.microsoft.com/answers/topics/dotnet-maui.html
55
about: Please ask and answer questions here.
6-
- name: Bug report or feature request for Visual Studio for Windows and Mac
7-
url: https://learn.microsoft.com/visualstudio/ide/how-to-report-a-problem-with-visual-studio?view=vs-2022
6+
- name: Bug report or feature request for Visual Studio
7+
url: https://learn.microsoft.com/visualstudio/ide/how-to-report-a-problem-with-visual-studio
88
about: Use Visual Studio's Report a Problem feature for issues and suggestions with Visual Studio tooling
99
- name: Bug report or feature request for Visual Studio Code (including C# Dev Kit)
1010
url: https://github.com/microsoft/vscode-dotnettools/issues
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: 'Triage Generate Prompt'
2+
description: 'Generates a prompt file from a template using provided labels and parameters.'
3+
4+
inputs:
5+
token:
6+
description: 'GitHub token to use for authentication'
7+
required: false
8+
default: ${{ github.token }}
9+
template:
10+
description: 'Path to the prompt template file'
11+
required: true
12+
output:
13+
description: 'Path to the output prompt file'
14+
required: true
15+
# variable replacement inputs
16+
# TODO: make this be a multiline mapping input:
17+
# NAME1=value1
18+
# NAME2=value2
19+
label-prefix:
20+
description: 'Prefix for label search (e.g., platform/, area-, etc.)'
21+
required: false
22+
default: ''
23+
label:
24+
description: 'The label to apply to an issue'
25+
required: false
26+
default: ''
27+
28+
outputs:
29+
prompt:
30+
description: 'The generated prompt file path'
31+
value: ${{ steps.create-prompt.outputs.prompt }}
32+
33+
runs:
34+
using: 'composite'
35+
steps:
36+
37+
- name: Create prompt file
38+
id: create-prompt
39+
shell: pwsh
40+
env:
41+
GH_TOKEN: ${{ inputs.token }}
42+
run: |
43+
"Create prompt file"
44+
echo "::group::Create prompt file"
45+
${{ github.action_path }}/process-prompt-template.ps1 `
46+
-LabelPrefix "${{ inputs.label-prefix }}" `
47+
-Label "${{ inputs.label }}" `
48+
-Template "${{ inputs.template }}" `
49+
-Output "${{ inputs.output }}"
50+
"prompt=${{ inputs.output }}" >> $env:GITHUB_OUTPUT
51+
echo "::endgroup::"
52+
53+
- name: Print prompt file
54+
shell: pwsh
55+
run: |
56+
"Print prompt file"
57+
echo "::group::Print prompt file"
58+
cat "${{ steps.create-prompt.outputs.prompt }}"
59+
echo "::endgroup::"
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
param(
2+
[Parameter(Mandatory=$true)]
3+
[string]$Template,
4+
[Parameter(Mandatory=$true)]
5+
[string]$Output,
6+
[string]$LabelPrefix,
7+
[string]$Label
8+
)
9+
10+
Write-Host "Processing template: $Template"
11+
Write-Host "Output will be written to: $Output"
12+
13+
# Check if template file exists
14+
if (-not (Test-Path -Path $Template)) {
15+
Write-Error "The specified template file '$Template' does not exist. Please check the path and try again."
16+
exit 1
17+
}
18+
19+
# Ensure output directory exists
20+
$outputDir = Split-Path -Parent $Output
21+
if ($outputDir -and -not (Test-Path -Path $outputDir)) {
22+
New-Item -Path $outputDir -ItemType Directory -Force | Out-Null
23+
}
24+
25+
# Change to the output directory for processing
26+
$originalLocation = Get-Location
27+
try {
28+
Set-Location -Path $outputDir
29+
Write-Host "Changed working directory to: $outputDir"
30+
Write-Host ""
31+
32+
# Read the template file
33+
$lines = Get-Content $Template
34+
$outputContent = @()
35+
36+
foreach ($line in $lines) {
37+
# Replace the placeholders with actual values
38+
if ($LabelPrefix) {
39+
$line = $line.Replace('{{LABEL_PREFIX}}', $LabelPrefix)
40+
}
41+
if ($Label) {
42+
$line = $line.Replace('{{LABEL}}', $Label)
43+
}
44+
45+
# Check for EXEC: command prefix
46+
if ($line -match "^EXEC:\s*(.+)$") {
47+
48+
# Extract the command part
49+
$command = $matches[1]
50+
Write-Host "Executing command:"
51+
Write-Host " $command"
52+
53+
try {
54+
# Execute the command
55+
$result = Invoke-Expression $command
56+
Write-Host "Command output:"
57+
foreach ($resultLine in $result) {
58+
Write-Host " $resultLine"
59+
}
60+
61+
# Append the result to output content
62+
$outputContent += $result
63+
} catch {
64+
Write-Error "ERROR executing command '$command': $_"
65+
exit 1
66+
}
67+
} else {
68+
# Keep original line
69+
$outputContent += $line
70+
}
71+
}
72+
73+
# Save the processed content to the output file
74+
$outputFilename = Split-Path -Leaf $Output
75+
Set-Content -Path $outputFilename -Value $outputContent -ErrorAction Stop
76+
77+
# Log the created prompt for debugging
78+
Write-Host ""
79+
Write-Host "Created prompt from template:"
80+
Write-Host ""
81+
Get-Content $outputFilename
82+
83+
} finally {
84+
# Return to original location
85+
Set-Location -Path $originalLocation
86+
}

0 commit comments

Comments
 (0)