Skip to content

Commit 5c257a7

Browse files
Merge pull request #2970 from microsoft/staging
Release - 5/19/24
2 parents ec21b0e + 788c282 commit 5c257a7

File tree

630 files changed

+24760
-3602
lines changed

Some content is hidden

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

630 files changed

+24760
-3602
lines changed

.editorconfig

+6
Original file line numberDiff line numberDiff line change
@@ -206,3 +206,9 @@ dotnet_style_prefer_simplified_interpolation = true:suggestion
206206
# Spelling
207207

208208
spelling_exclusion_path = .\exclusion.dic
209+
210+
# Diagnostic configuration
211+
212+
# CS8305: Type is for evaluation purposes only and is subject to change or removal in future updates.
213+
dotnet_diagnostic.CS8305.severity = suggestion
214+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: "Suggest a new setting/feature within Windows Customization"
2+
description: Suggest a new feature or improvement within Windows Customization (this does not mean you have to implement
3+
it)
4+
labels:
5+
- Issue-Feature
6+
- Area-Windows-Customization
7+
body:
8+
- id: minwindowsversion
9+
type: input
10+
attributes:
11+
label: Minimum Supported Windows Version
12+
placeholder: "10.0.23400.0"
13+
description: What is the minimum version of Windows that should support this feature?
14+
validations:
15+
required: true
16+
17+
- id: maxwindowsversion
18+
type: input
19+
attributes:
20+
label: Maximum Supported Windows Version
21+
placeholder: "10.0.23400.0"
22+
description: Did this feature stop working on a specific version of Windows? If so, what version? If you are unsure please put "Unknown".
23+
validations:
24+
required: false
25+
26+
- id: registrykeys
27+
type: textarea
28+
attributes:
29+
label: Registry Keys
30+
placeholder: What registry keys are needed to enable this feature? Please provide the full path and value. If not applicable, please enter "None".
31+
validations:
32+
required: true
33+
34+
- id: ispublic
35+
type: dropdown
36+
attributes:
37+
label: Is this feature publicly documented?
38+
options:
39+
- "Yes"
40+
- "No"
41+
description: Is this feature publicly documented? Is there a public API or documentation available?
42+
validations:
43+
required: true
44+
45+
- id: publicdocumentation
46+
type: textarea
47+
attributes:
48+
label: Public Documentation
49+
placeholder: If there is public documentation for this feature, please provide the link here. If not applicable, please enter "None".
50+
validations:
51+
required: true
52+
53+
- id: scenario
54+
type: textarea
55+
attributes:
56+
label: Scenario
57+
placeholder: How could this new feature be used? Feel free to provide examples.
58+
validations:
59+
required: true
60+
61+
- id: supportinginfo
62+
type: textarea
63+
attributes:
64+
label: Additional details
65+
placeholder: Enter more info or links to give us more details.
66+
validations:
67+
required: false
68+
69+
- type: markdown
70+
attributes:
71+
value: Please limit one request per issue.

.github/workflows/DevHome-CI.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,21 @@ jobs:
6767

6868
- name: Build_DevSetupAgent_x86
6969
if: ${{ matrix.platform != 'arm64' }}
70-
run: cmd /c "$env:VSDevCmd" "&" msbuild /p:Configuration=${{ matrix.configuration }},Platform=x86 HyperVExtension\\DevSetupAgent.sln
70+
run: cmd /c "$env:VSDevCmd" "&" msbuild /p:Configuration=${{ matrix.configuration }},Platform=x86 extensions\HyperVExtension\\DevSetupAgent.sln
7171

7272
- name: Compress_DevSetupAgent_x86
7373
if: ${{ matrix.platform != 'arm64' }}
7474
shell: pwsh
75-
run: Compress-Archive -Force -Path HyperVExtension\src\DevSetupAgent\bin\x86\${{ matrix.configuration }}\net8.0-windows10.0.22621.0\win-x86\* -DestinationPath "HyperVExtension\src\DevSetupAgent\bin\x86\${{ matrix.configuration }}\DevSetupAgent_x86.zip"
75+
run: Compress-Archive -Force -Path extensions\HyperVExtension\src\DevSetupAgent\bin\x86\${{ matrix.configuration }}\net8.0-windows10.0.22621.0\win-x86\* -DestinationPath "extensions\HyperVExtension\src\DevSetupAgent\bin\x86\${{ matrix.configuration }}\DevSetupAgent_x86.zip"
7676

7777
- name: Build_DevSetupAgent_arm64
7878
if: ${{ matrix.platform == 'arm64' }}
79-
run: cmd /c "$env:VSDevCmd" "&" msbuild /p:Configuration=${{ matrix.configuration }},Platform=arm64 HyperVExtension\\DevSetupAgent.sln
79+
run: cmd /c "$env:VSDevCmd" "&" msbuild /p:Configuration=${{ matrix.configuration }},Platform=arm64 extensions\HyperVExtension\\DevSetupAgent.sln
8080

8181
- name: Compress_DevSetupAgent_arm64
8282
if: ${{ matrix.platform == 'arm64' }}
8383
shell: pwsh
84-
run: Compress-Archive -Force -Path HyperVExtension\src\DevSetupAgent\bin\arm64\${{ matrix.configuration }}\net8.0-windows10.0.22621.0\win-arm64\* -DestinationPath "HyperVExtension\src\DevSetupAgent\bin\arm64\${{ matrix.configuration }}\DevSetupAgent_arm64.zip"
84+
run: Compress-Archive -Force -Path extensions\HyperVExtension\src\DevSetupAgent\bin\arm64\${{ matrix.configuration }}\net8.0-windows10.0.22621.0\win-arm64\* -DestinationPath "extensions\HyperVExtension\src\DevSetupAgent\bin\arm64\${{ matrix.configuration }}\DevSetupAgent_arm64.zip"
8585

8686
- name: Build_DevHome
8787
run: cmd /c "$env:VSDevCmd" "&" msbuild /p:Configuration=${{ matrix.configuration }},Platform=${{ matrix.platform }} DevHome.sln

Build.ps1

+7-11
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ if (($BuildStep -ieq "all") -Or ($BuildStep -ieq "sdk")) {
6363

6464
if (($BuildStep -ieq "all") -Or ($BuildStep -ieq "DevSetupAgent") -Or ($BuildStep -ieq "fullMsix")) {
6565
foreach ($configuration in $env:Build_Configuration.Split(",")) {
66-
# We use x86 DevSetupAgent for x64 and x86 Dev Home build. Only need to build it once if we are building multiple platforms.
66+
# We use x86 DevSetupAgent for x64 and x86 Dev Home build. Only need to build it once if we are building multiple platforms.
6767
$builtX86 = $false
6868
foreach ($platform in $env:Build_Platform.Split(",")) {
69-
if ($Platform -ieq "arm64") {
70-
HyperVExtension\BuildDevSetupAgentHelper.ps1 -Platform $Platform -Configuration $configuration -VersionOfSDK $env:sdk_version -SDKNugetSource $SDKNugetSource -AzureBuildingBranch $AzureBuildingBranch -IsAzurePipelineBuild $IsAzurePipelineBuild -BypassWarning
69+
if ($platform -ieq "arm64") {
70+
extensions\HyperVExtension\BuildDevSetupAgentHelper.ps1 -Platform $Platform -Configuration $configuration -VersionOfSDK $env:sdk_version -SDKNugetSource $SDKNugetSource -AzureBuildingBranch $AzureBuildingBranch -IsAzurePipelineBuild $IsAzurePipelineBuild -BypassWarning
7171
}
7272
elseif (-not $builtX86) {
73-
HyperVExtension\BuildDevSetupAgentHelper.ps1 -Platform "x86" -Configuration $configuration -VersionOfSDK $env:sdk_version -SDKNugetSource $SDKNugetSource -AzureBuildingBranch $AzureBuildingBranch -IsAzurePipelineBuild $IsAzurePipelineBuild -BypassWarning
73+
extensions\HyperVExtension\BuildDevSetupAgentHelper.ps1 -Platform "x86" -Configuration $configuration -VersionOfSDK $env:sdk_version -SDKNugetSource $SDKNugetSource -AzureBuildingBranch $AzureBuildingBranch -IsAzurePipelineBuild $IsAzurePipelineBuild -BypassWarning
7474
$builtX86 = $true
7575
}
7676
}
@@ -133,7 +133,7 @@ Try {
133133
$appxmanifest.Root.Element($xIdentity).Attribute("Version").Value = $env:msix_version
134134
if (-not ([string]::IsNullOrEmpty($newPackageName))) {
135135
$appxmanifest.Root.Element($xIdentity).Attribute("Name").Value = $newPackageName
136-
}
136+
}
137137
if (-not ([string]::IsNullOrEmpty($newPackageDisplayName))) {
138138
$appxmanifest.Root.Element($xProperties).Element($xDisplayName).Value = $newPackageDisplayName
139139
}
@@ -144,9 +144,6 @@ Try {
144144
if ($extension.Attribute("Category").Value -eq "windows.appExtension") {
145145
$appExtension = $extension.Element($uapAppExtension)
146146
switch ($appExtension.Attribute("Name").Value) {
147-
"com.microsoft.devhome" {
148-
$appExtension.Attribute("DisplayName").Value = $newAppDisplayNameResource
149-
}
150147
"com.microsoft.windows.widgets" {
151148
$appExtension.Attribute("DisplayName").Value = $newWidgetProviderDisplayName
152149
}
@@ -162,6 +159,7 @@ Try {
162159
foreach ($platform in $env:Build_Platform.Split(",")) {
163160
foreach ($configuration in $env:Build_Configuration.Split(",")) {
164161
$appxPackageDir = (Join-Path $env:Build_RootDirectory "AppxPackages\$configuration")
162+
Write-Host "Building DevHome for EnvPlatform: $env:Build_Platform Platform: $platform Configuration: $configuration BundlePlatforms: $appxBundlePlatform Dir: $appxPackageDir Ring: $buildRing"
165163
$msbuildArgs = @(
166164
("DevHome.sln"),
167165
("/p:Platform="+$platform),
@@ -181,6 +179,7 @@ Try {
181179
}
182180

183181
& $msbuildPath $msbuildArgs
182+
184183
if (-not($IsAzurePipelineBuild) -And $isAdmin) {
185184
Invoke-SignPackage "$appxPackageDir\DevHome-$platform.msix"
186185
}
@@ -198,9 +197,6 @@ Try {
198197
if ($extension.Attribute("Category").Value -eq "windows.appExtension") {
199198
$appExtension = $extension.Element($uapAppExtension)
200199
switch ($appExtension.Attribute("Name").Value) {
201-
"com.microsoft.devhome" {
202-
$appExtension.Attribute("DisplayName").Value = "ms-resource:AppDisplayNameDev"
203-
}
204200
"com.microsoft.windows.widgets" {
205201
$appExtension.Attribute("DisplayName").Value = "ms-resource:WidgetProviderDisplayNameDev"
206202
}

CONTRIBUTING.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,14 @@ Bugs and tasks are obviously the easiest to get started with, but don't feel afr
112112

113113
Generally, we like to assign issues that generally belong to somebody's area of expertise to the team member that owns that area. This doesn't mean the community can't jump in -- they should reach out and have a chat with the assignee to see if it'd okay to take. If an issue was assigned more than a month ago, there's a good chance it's fair game to try yourself.
114114

115+
### Contributing to Windows Customization
116+
117+
If you'd like to suggest a new feature/improvement to Windows Customization, **you must first file an issue with the provided `Windows Customization` [template](https://github.com/microsoft/devhome/issues/new?template=feature_request_windows_customization.yml)**. This will help us understand what you're looking for and why, and will help us ensure that the feature is something that we can support in the long run. For changes that rely on registry key behaviors that are undocumented, we will first have to review with internal stakeholders how to support the desired functionality and may not be able to support them in the long term. In these cases, we may have to modify your PR with a different approach after chatting with the internal teams.
118+
119+
We will not accept or review PRs that add new features to Windows Customization without an associated issue that follows the `Windows Customization` template.
120+
121+
For bug fixes, please still use the existing [bug template](https://github.com/microsoft/devhome/issues/new?template=Bug_Report.yml). If you are able to fix the bug, please indicate that in the issue and we'll be happy to review your PR.
122+
115123
### To spec or not to spec
116124

117125
Some issues/features may be quick and simple to describe and understand. For such scenarios, once a team member has agreed with your approach, skip ahead to the section headed "Fork, Branch, and Create your PR", below.
@@ -178,7 +186,7 @@ Alternatively,
178186
### Rules
179187

180188
- **Follow the pattern of what you already see in the code.**
181-
- [Coding style](style.md).
189+
- [Coding style](./docs/style.md).
182190
- Try to package new ideas/components into libraries that have nicely defined interfaces.
183191
- Package new ideas into classes or refactor existing ideas into a class as you extend.
184192
- When adding new classes/methods/changing existing code: add new unit tests or update the existing tests.
@@ -195,4 +203,4 @@ Once your code has been reviewed and approved by the requisite number of team me
195203

196204
## Thank you
197205

198-
Thank you in advance for your contribution! Now, [what's next on the list](https://github.com/microsoft/devhome/labels/Help%20Wanted)? 😜
206+
Thank you in advance for your contribution! Now, [what's next on the list](https://github.com/microsoft/devhome/labels/Help%20Wanted)? 😜

0 commit comments

Comments
 (0)