-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to .NET 7, enable WASM optimizations (#173)
* Fixed build errors caused by .NET 7 upgrade * Updated tooling pointer Update tooling to latest upgrade/net7 * Bump uno-check * Skip vswinworkloads * Update Build Script to support Pull Request Packages Again Cleaned up some logic for diagnostic builds as well so we have a single build command * Update tooling to use maccatalyst * Fix for net7.0-maccatalyst, use dotnet 7.0.100 * Update tooling, additional net7-mobile error suppression * Update tooling: More error suppression for net7 mobile * Fixed invalid symbol references in comments * Update editorconfig * Update editorconfig * Update logic for Versioning of Build and ensure to pass to Packing Script * Use net7.0-android33.0 instead of net7.0-android * Fix and un-suppress CS1574 errors * Remove suppression of CS1587 * Update tooling pointer * Fixed remaining build errors * Update tooling to latest main * Suppress CS1587 * Move platfiorm conditionals to using statements * Fix issue with XML comment for StackedNotificationsBehavior 2023-08-17T20:08:53.7233918Z 5>D:\a\Windows\Windows\components\Behaviors\src\Notification\StackedNotificationsBehavior.cs(16,70): error CS1574: XML comment has cref attribute 'InfoBar' that could not be resolved --------- Co-authored-by: michael-hawker <[email protected]>
- Loading branch information
1 parent
819071d
commit 58cdd50
Showing
25 changed files
with
72 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,9 @@ on: | |
merge_group: | ||
|
||
env: | ||
DOTNET_VERSION: ${{ '7.0.x' }} | ||
DOTNET_VERSION: ${{ '7.0.100' }} | ||
ENABLE_DIAGNOSTICS: true | ||
MSBUILD_VERBOSITY: normal | ||
#COREHOST_TRACE: 1 | ||
COREHOST_TRACEFILE: corehosttrace.log | ||
MULTI_TARGET_DIRECTORY: tooling/MultiTarget | ||
|
@@ -65,6 +66,7 @@ jobs: | |
# faux-ternary expression to select which platforms to build for each platform vs. duplicating step below. | ||
TARGET_PLATFORMS: ${{ matrix.platform != 'WinUI3' && 'all' || 'all-uwp' }} | ||
TEST_PLATFORM: ${{ matrix.platform != 'WinUI3' && 'UWP' || 'WinAppSdk' }} | ||
VERSION_PROPERTY: ${{ github.ref == 'refs/heads/main' && format('-p:PreviewVersion=build.{0}', github.run_number) || format('-p:PreviewVersion=pull-{0}.{1}', github.event.number, github.run_number) }} | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
|
@@ -104,7 +106,7 @@ jobs: | |
run: dotnet tool restore | ||
|
||
- name: Run Uno Check to Install Dependencies | ||
run: dotnet tool run uno-check --ci --fix --non-interactive --skip wsl --skip androidemulator --verbose | ||
run: dotnet tool run uno-check --ci --fix --non-interactive --skip wsl --skip androidemulator --skip vswinworkloads --verbose | ||
|
||
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
|
@@ -122,27 +124,25 @@ jobs: | |
run: powershell -version 5.1 -command "./UseUnoWinUI.ps1 3" -ErrorAction Stop | ||
if: ${{ matrix.platform == 'WinUI3' }} | ||
|
||
- name: MSBuild (With diagnostics) | ||
if: ${{ env.ENABLE_DIAGNOSTICS == 'true' }} | ||
run: msbuild.exe CommunityToolkit.AllComponents.sln /restore /nowarn:MSB4011 -p:Configuration=Release -m /bl -v:diag | ||
|
||
- name: MSBuild | ||
if: ${{ env.ENABLE_DIAGNOSTICS == 'false' }} | ||
run: msbuild.exe CommunityToolkit.AllComponents.sln /restore /nowarn:MSB4011 -p:Configuration=Release -m | ||
run: msbuild.exe CommunityToolkit.AllComponents.sln /restore /nowarn:MSB4011 -p:Configuration=Release -m ${{ env.VERSION_PROPERTY }} ${{ env.ENABLE_DIAGNOSTICS == 'true' && '/bl' || '' }} -v:${{ env.MSBUILD_VERBOSITY }} | ||
|
||
# Build All Packages | ||
- name: pack experiments | ||
working-directory: ./tooling/Scripts/ | ||
run: ./PackEachExperiment.ps1 all | ||
run: ./PackEachExperiment.ps1 -extraBuildProperties "${{ env.VERSION_PROPERTY }}" | ||
|
||
# Push Packages to our DevOps Artifacts Feed (see nuget.config) | ||
- name: Add source | ||
- name: Add source (main) | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
run: dotnet nuget update source MainLatest --username dummy --password ${{ secrets.DEVOPS_PACKAGE_PUSH_TOKEN }} | ||
|
||
- name: Add source (pull requests) | ||
if: ${{ github.ref != 'refs/heads/main' }} | ||
run: dotnet nuget add source https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-PullRequests/nuget/v3/index.json --name PullRequests --username dummy --password ${{ secrets.DEVOPS_PACKAGE_PUSH_TOKEN }} | ||
|
||
- name: Push packages | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
run: dotnet nuget push "**/*.nupkg" --api-key dummy --source MainLatest --skip-duplicate | ||
run: dotnet nuget push "**/*.nupkg" --api-key dummy --source ${{ github.ref == 'refs/heads/main' && 'MainLatest' || 'PullRequests' }} --skip-duplicate | ||
|
||
# Run tests | ||
- name: Setup VSTest Path | ||
|
@@ -241,7 +241,7 @@ jobs: | |
# See launch.json configuration file for analogous command we're emulating here to build LINK: ../../.vscode/launch.json:CommunityToolkit.App.Wasm.csproj | ||
- name: dotnet build | ||
working-directory: ./${{ env.HEADS_DIRECTORY }}/AllComponents/Wasm/ | ||
run: dotnet build /r /bl | ||
run: dotnet build /r /bl -v:${{ env.MSBUILD_VERBOSITY }} | ||
|
||
# TODO: Do we want to run tests here? Can we do that on linux easily? | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.