Skip to content

Commit ec21b0e

Browse files
Merge pull request #2719 from microsoft/staging
Release - 4/23/24
2 parents 227009e + 18ff42e commit ec21b0e

File tree

766 files changed

+27782
-9132
lines changed

Some content is hidden

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

766 files changed

+27782
-9132
lines changed

.github/policies/moderatorTriggers.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,9 @@ configuration:
9090
reply: >-
9191
Hi @${issueAuthor}. It would be helpful for us if you could share your Dev Home logs.
9292
These logs can be found at
93-
`%LOCALAPPDATA%\Packages\Microsoft.Windows.DevHome_8wekyb3d8bbwe\TempState` and
94-
`%LOCALAPPDATA%\Packages\Microsoft.Windows.DevHomeGitHubExtension_8wekyb3d8bbwe\TempState`.
93+
`%LOCALAPPDATA%\Packages\Microsoft.Windows.DevHome_8wekyb3d8bbwe\TempState`,
94+
`%LOCALAPPDATA%\Packages\Microsoft.Windows.DevHomeGitHubExtension_8wekyb3d8bbwe\TempState`, and
95+
`%LOCALAPPDATA%\Packages\Microsoft.Windows.DevHomeAzureExtension_8wekyb3d8bbwe\TempState`.
9596
You can share these folders via a OneDrive link or zip them and attach them to a
9697
comment here. If you share this way, you may want to look through the logs in case
9798
there are any details included that you would like to remove (for example, private

.github/workflows/DevHome-CI.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
run: |
6161
cmd /c "$env:VSDevCmd" "&" msbuild -t:restore /m /p:Configuration=Release,Platform=${{ matrix.platform }},RestorePackagesConfig=true extensionsdk\\DevHomeSDK.sln
6262
cmd /c "$env:VSDevCmd" "&" msbuild -t:restore /m /p:Configuration=Release,Platform=${{ matrix.platform }} DevHome.sln
63+
cmd /c ".\.nuget\nuget.exe restore"
6364
6465
- name: Build_SDK
6566
run: cmd /c "$env:VSDevCmd" "&" msbuild /p:Configuration=Release,Platform=${{ matrix.platform }} extensionsdk\\DevHomeSDK.sln
@@ -71,7 +72,7 @@ jobs:
7172
- name: Compress_DevSetupAgent_x86
7273
if: ${{ matrix.platform != 'arm64' }}
7374
shell: pwsh
74-
run: Compress-Archive -Force -Path HyperVExtension\src\DevSetupAgent\bin\x86\${{ matrix.configuration }}\net8.0-windows10.0.22000.0\win10-x86\* -DestinationPath "HyperVExtension\src\DevSetupAgent\bin\x86\${{ matrix.configuration }}\DevSetupAgent_x86.zip"
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"
7576

7677
- name: Build_DevSetupAgent_arm64
7778
if: ${{ matrix.platform == 'arm64' }}
@@ -80,7 +81,7 @@ jobs:
8081
- name: Compress_DevSetupAgent_arm64
8182
if: ${{ matrix.platform == 'arm64' }}
8283
shell: pwsh
83-
run: Compress-Archive -Force -Path HyperVExtension\src\DevSetupAgent\bin\arm64\${{ matrix.configuration }}\net8.0-windows10.0.22000.0\win10-arm64\* -DestinationPath "HyperVExtension\src\DevSetupAgent\bin\arm64\${{ matrix.configuration }}\DevSetupAgent_arm64.zip"
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"
8485

8586
- name: Build_DevHome
8687
run: cmd /c "$env:VSDevCmd" "&" msbuild /p:Configuration=${{ matrix.configuration }},Platform=${{ matrix.platform }} DevHome.sln
@@ -95,11 +96,11 @@ jobs:
9596
9697
- name: DevHome UnitTests
9798
if: ${{ matrix.platform != 'arm64' }}
98-
run: cmd /c "$env:VSDevTestCmd" /Platform:${{ matrix.platform }} test\\bin\\${{ matrix.platform }}\\${{ matrix.configuration }}\\net8.0-windows10.0.22000.0\\DevHome.Test.dll
99+
run: cmd /c "$env:VSDevTestCmd" /Platform:${{ matrix.platform }} test\\bin\\${{ matrix.platform }}\\${{ matrix.configuration }}\\net8.0-windows10.0.22621.0\\DevHome.Test.dll
99100

100101
- name: Tools UnitTests
101102
if: ${{ matrix.platform != 'arm64' }}
102103
run: |
103-
foreach ($UnitTestPath in (Get-ChildItem "tools\\*\\*UnitTest\\bin\\${{ matrix.platform }}\\${{ matrix.configuration }}\\net8.0-windows10.0.22000.0\\*.UnitTest.dll")) {
104+
foreach ($UnitTestPath in (Get-ChildItem "tools\\*\\*UnitTest\\bin\\${{ matrix.platform }}\\${{ matrix.configuration }}\\net8.0-windows10.0.22621.0\\*.UnitTest.dll")) {
104105
cmd /c "$env:VSDevTestCmd" /Platform:${{ matrix.platform }} $UnitTestPath.FullName
105106
}

.github/workflows/similarissues.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ jobs:
1010
outputs:
1111
message: ${{ steps.getBody.outputs.message }}
1212
steps:
13-
- uses: actions/checkout@v2
1413
- id: getBody
1514
uses: craigloewen-msft/GitGudSimilarIssues@main
1615
with:
1716
issueTitle: ${{ github.event.issue.title }}
18-
repository: ${{ github.repository }}
19-
similarityTolerance: "0.7"
20-
addComment:
17+
issueBody: ${{ github.event.issue.body }}
18+
repo: ${{ github.repository }}
19+
similarityTolerance: "0.75"
20+
add-comment:
2121
needs: getSimilarIssues
2222
runs-on: ubuntu-latest
2323
permissions:

Build.ps1

+3
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ Try {
176176
if (-not([string]::IsNullOrWhiteSpace($VersionOfSDK))) {
177177
$msbuildArgs += ("/p:DevHomeSDKVersion="+$env:sdk_version)
178178
}
179+
if ($BuildStep -ieq "msix") {
180+
$msbuildArgs += ("/p:IgnoreZipPackages=true")
181+
}
179182

180183
& $msbuildPath $msbuildArgs
181184
if (-not($IsAzurePipelineBuild) -And $isAdmin) {

CONTRIBUTING.md

+30
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,36 @@ Once you've discussed your proposed feature/fix/etc. with a team member and you'
153153
5. Work on your changes
154154
6. Build and see if it works
155155

156+
## Building the code
157+
158+
1. Clone the repository
159+
2. Configure your system
160+
* Please use the [configuration file](.configurations/configuration.dsc.yaml). This can be applied by either:
161+
* Dev Home's machine configuration tool
162+
* WinGet configuration. If you have WinGet version [v1.6.2631 or later](https://github.com/microsoft/winget-cli/releases), run `winget configure .configurations/configuration.dsc.yaml` in an elevated shell from the project root so relative paths resolve correctly
163+
* Alternatively, if you already are running the minimum OS version, have Visual Studio installed, and have developer mode enabled, you may configure your Visual Studio directly via the .vsconfig file. To do this:
164+
* Open the Visual Studio Installer, select “More” on your product card and then "Import configuration"
165+
* Specify the .vsconfig file at the root of the repo and select “Review Details”
166+
167+
## Running & debugging
168+
169+
In Visual Studio, you should be able to build and debug Dev Home by hitting <kbd>F5</kbd>. Make sure to select either the `x64` or the `x86` platform and set DevHome as the selected startup project.
170+
171+
Alternatively,
172+
173+
- Open the Developer Command Prompt for Visual Studio
174+
- Run `Build` from Dev Home's root directory. You can pass in a list of platforms/configurations
175+
- The Dev Home MSIX will be in your repo under `AppxPackages\x64\debug`
176+
177+
178+
### Rules
179+
180+
- **Follow the pattern of what you already see in the code.**
181+
- [Coding style](style.md).
182+
- Try to package new ideas/components into libraries that have nicely defined interfaces.
183+
- Package new ideas into classes or refactor existing ideas into a class as you extend.
184+
- When adding new classes/methods/changing existing code: add new unit tests or update the existing tests.
185+
156186
### Code review
157187

158188
When you'd like the team to take a look (even if the work is not yet fully-complete), mark the PR as 'Ready For Review' so that the team can review your work and provide comments, suggestions, and request changes. It may take several cycles but the end result will be solid, testable, conformant code that is safe for us to merge.

0 commit comments

Comments
 (0)