diff --git a/.github/no-response.yml b/.github/no-response.yml deleted file mode 100644 index 9087a23b4798..000000000000 --- a/.github/no-response.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Configuration for probot-no-response - https://github.com/probot/no-response - -# Number of days of inactivity before an Issue is closed for lack of response -daysUntilClose: 20 - -# Label requiring a response -responseRequiredLabel: triage/needs-information - -# Comment to post when closing an Issue for lack of response. Set to `false` to disable -closeComment: > - This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. We don't monitor discussions on closed issues thus please open a new GitHub issue if you need the team to revisit this matter. diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 000000000000..c9b041c94c29 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,96 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. +# +# You may wish to alter this file to override the set of languages analyzed, +# or to provide custom queries or build logic. +# +# ******** NOTE ******** +# We have attempted to detect the languages in your repository. Please check +# the `language` matrix defined below to confirm you have the correct set of +# supported CodeQL languages. +# +name: "CodeQL Advanced" + +on: + push: + branches: [ "master", "feature/*", "legacy/**", "release/beta/*", "release/stable/*" ] + pull_request: + branches: [ "master", "feature/*", "legacy/**", "release/beta/*", "release/stable/*" ] + schedule: + - cron: '16 14 * * 1' + +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + # Runner size impacts CodeQL analysis time. To learn more, please see: + # - https://gh.io/recommended-hardware-resources-for-running-codeql + # - https://gh.io/supported-runners-and-hardware-resources + # - https://gh.io/using-larger-runners (GitHub.com only) + # Consider using larger runners or machines with greater resources for possible analysis time improvements. + runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} + permissions: + # required for all workflows + security-events: write + + # required to fetch internal or private CodeQL packs + packages: read + + # only required for workflows in private repositories + actions: read + contents: read + + strategy: + fail-fast: false + matrix: + include: + - language: csharp + build-mode: none + - language: java-kotlin + build-mode: none # This mode only analyzes Java. Set this to 'autobuild' or 'manual' to analyze Kotlin too. + - language: javascript-typescript + build-mode: none + # CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' + # Use `c-cpp` to analyze code written in C, C++ or both + # Use 'java-kotlin' to analyze code written in Java, Kotlin or both + # Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both + # To learn more about changing the languages that are analyzed or customizing the build mode for your analysis, + # see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning. + # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how + # your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + + # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + # queries: security-extended,security-and-quality + + # If the analyze step fails for one of the languages you are analyzing with + # "We were unable to automatically build your code", modify the matrix above + # to set the build mode to "manual" for that language. Then modify this step + # to build your code. + # ℹ️ Command-line programs to run using the OS shell. + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + - if: matrix.build-mode == 'manual' + shell: bash + run: | + echo 'If you are using a "manual" build mode for one or more of the' \ + 'languages you are analyzing, replace this with the commands to build' \ + 'your code, for example:' + echo ' make bootstrap' + echo ' make release' + exit 1 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}" diff --git a/.github/workflows/no-response.yml b/.github/workflows/no-response.yml new file mode 100644 index 000000000000..d5491846c53f --- /dev/null +++ b/.github/workflows/no-response.yml @@ -0,0 +1,22 @@ +name: No Response + +# Both `issue_comment` and `scheduled` event types are required for this Action +# to work properly. +on: + issue_comment: + types: [created] + schedule: + # Schedule for 5 minutes past the hour, every 6 hours + - cron: '5 */6 * * *' + +jobs: + noResponse: + runs-on: ubuntu-latest + steps: + - uses: lee-dohm/no-response@9bb0a4b5e6a45046f00353d5de7d90fb8bd773bb # 0.5.0 + with: + token: ${{ github.token }} + daysUntilClose: 20 + responseRequiredLabel: triage/needs-information + closeComment: > + This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. We don't monitor discussions on closed issues thus please open a new GitHub issue if you need the team to revisit this matter. diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml new file mode 100644 index 000000000000..76145136eae9 --- /dev/null +++ b/.github/workflows/scorecard.yml @@ -0,0 +1,73 @@ +# This workflow uses actions that are not certified by GitHub. They are provided +# by a third-party and are governed by separate terms of service, privacy +# policy, and support documentation. + +name: Scorecard supply-chain security +on: + # For Branch-Protection check. Only the default branch is supported. See + # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection + branch_protection_rule: + # To guarantee Maintained check is occasionally updated. See + # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained + schedule: + - cron: '24 13 * * 4' + push: + branches: [ "master" ] + +# Declare default permissions as read only. +permissions: read-all + +jobs: + analysis: + name: Scorecard analysis + runs-on: ubuntu-latest + permissions: + # Needed to upload the results to code-scanning dashboard. + security-events: write + # Needed to publish results and get a badge (see publish_results below). + id-token: write + # Uncomment the permissions below if installing in a private repository. + # contents: read + # actions: read + + steps: + - name: "Checkout code" + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + with: + persist-credentials: false + + - name: "Run analysis" + uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1 + with: + results_file: results.sarif + results_format: sarif + # (Optional) "write" PAT token. Uncomment the `repo_token` line below if: + # - you want to enable the Branch-Protection check on a *public* repository, or + # - you are installing Scorecard on a *private* repository + # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional. + # repo_token: ${{ secrets.SCORECARD_TOKEN }} + + # Public repositories: + # - Publish results to OpenSSF REST API for easy access by consumers + # - Allows the repository to include the Scorecard badge. + # - See https://github.com/ossf/scorecard-action#publishing-results. + # For private repositories: + # - `publish_results` will always be set to `false`, regardless + # of the value entered here. + publish_results: false + + # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF + # format to the repository Actions tab. + - name: "Upload artifact" + uses: actions/upload-artifact@97a0fba1372883ab732affbe8f94b823f91727db # v3.pre.node20 + with: + name: SARIF file + path: results.sarif + retention-days: 5 + + # Upload the results to GitHub's code scanning dashboard (optional). + # Commenting out will disable upload of results to your repo's Code Scanning dashboard + - name: "Upload to code-scanning" + uses: github/codeql-action/upload-sarif@v3 + with: + sarif_file: results.sarif diff --git a/.github/workflows/uwp-autoconvert.yml b/.github/workflows/uwp-autoconvert.yml index 81bf71a88e44..0170b8d66328 100644 --- a/.github/workflows/uwp-autoconvert.yml +++ b/.github/workflows/uwp-autoconvert.yml @@ -13,7 +13,7 @@ concurrency: cancel-in-progress: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - UnoCheck_Version: '1.26.0-dev.63' + UnoCheck_Version: '1.27.0-dev.8' jobs: build: diff --git a/.vsts-ci-docs.yml b/.vsts-ci-docs.yml index f9caa659cd61..924f9a8616c4 100644 --- a/.vsts-ci-docs.yml +++ b/.vsts-ci-docs.yml @@ -17,7 +17,7 @@ pr: - legacy/* variables: - windowsScaledPool: 'Windows2022-20240421' + windowsScaledPool: 'Windows2022-20241021-1' linuxVMImage: 'ubuntu-latest' stages: diff --git a/.vsts-ci.yml b/.vsts-ci.yml index 63db333051fd..04e2a038c894 100644 --- a/.vsts-ci.yml +++ b/.vsts-ci.yml @@ -53,13 +53,13 @@ variables: DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true windows2019HostedVMImage: 'windows-2019' windows2022HostedVMImage: 'windows-2022' - windowsScaledPool: 'Windows2022-20240421' + windowsScaledPool: 'Windows2022-20241021-1' linuxVMImage: 'ubuntu-latest' linuxScaledPool: 'Ubuntu2204-20230918' - macOSVMImage: 'macOS-14' + macOSVMImage: 'macOS-15' macOSVMImage_UITests: 'macOS-14' xCodeRoot: '/Applications/Xcode_16.app' - xCodeRoot_iOS_UITests: '/Applications/Xcode_16.app' + xCodeRoot_iOS_UITests: '/Applications/Xcode_15.3.app' # Offline validation to improve build performance NUGET_CERT_REVOCATION_MODE: offline diff --git a/build/PackageDiffIgnore.xml b/build/PackageDiffIgnore.xml index 875317d81ea1..f0b5578ef79b 100644 --- a/build/PackageDiffIgnore.xml +++ b/build/PackageDiffIgnore.xml @@ -1982,6 +1982,10 @@ + + + + @@ -1990,7 +1994,7 @@ NOT what will be published by the PR in progress. To test locally, you need to install: ; the tool version can be found from the failed task OR look for "ValidatePackage" in Uno.UI.Build.csproj - dotnet tool install --global Uno.PackageDiff --version 1.1.0-dev.25 + dotnet tool install --global Uno.PackageDiff --version 1.1.0-dev.29 Then, run this command: // the command is supposed to be one line generatepkgdiff --base=path/to/the-latest-stable-from-nuget-org/uno.winui.5.2.175.nupkg diff --git a/build/Uno.UI.Build.csproj b/build/Uno.UI.Build.csproj index 366abd382638..04f493e0b2d0 100644 --- a/build/Uno.UI.Build.csproj +++ b/build/Uno.UI.Build.csproj @@ -389,7 +389,7 @@ <_diffPackage Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Other="..\..\..\NugetPackages-Artifacts-skia-$(ArtifactsPlatformName)\vslatest-skia\Uno.UI.Adapter.Microsoft.Extensions.Logging.$(GITVERSION_SemVer).nupkg" /> - + diff --git a/build/cSpell.json b/build/cSpell.json index 550040fd683d..53432b651001 100644 --- a/build/cSpell.json +++ b/build/cSpell.json @@ -202,7 +202,8 @@ "jlaban", "sasakrsmanovic", "maccatalyst", - "settingscard" + "settingscard", + "storecontext" ], "patterns": [ { diff --git a/build/ci/.azure-devops-android-tests.yml b/build/ci/.azure-devops-android-tests.yml index 3b4212fb851b..b8f4d3833e9c 100644 --- a/build/ci/.azure-devops-android-tests.yml +++ b/build/ci/.azure-devops-android-tests.yml @@ -36,6 +36,11 @@ jobs: - checkout: self clean: true + # Install android 34 as we're running on macos-15 + - bash: | + echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_HOME --install 'platforms;android-34' | tr '\r' '\n' | uniq + displayName: Install Android 34 + - template: templates/dotnet-mobile-install-mac.yml - template: templates/nuget-cache.yml diff --git a/build/ci/.azure-devops-project-template-tests.yml b/build/ci/.azure-devops-project-template-tests.yml index 5bb5d0e1d496..2bcf1a95b5fb 100644 --- a/build/ci/.azure-devops-project-template-tests.yml +++ b/build/ci/.azure-devops-project-template-tests.yml @@ -26,14 +26,18 @@ jobs: group_4: TestGroup: '4' + variables: + # don't validate transitive dependencies for template tests + NuGetAuditMode: direct + steps: - task: DownloadBuildArtifacts@0 inputs: artifactName: 'Nuget_Packages' - template: templates/gitversion.yml - - template: templates/dotnet-mobile-install-windows.yml + - template: templates/uno-dev-feed.yml - script: copy $(System.ArtifactsDirectory)\Nuget_Packages\vslatest\*.nupkg $(Build.SourcesDirectory)\src\PackageCache displayName: Copy Artifacts to PackageCache @@ -78,11 +82,20 @@ jobs: group_4: TestGroup: '4' + variables: + # don't validate transitive dependencies for template tests + NuGetAuditMode: direct + steps: - task: DownloadBuildArtifacts@0 inputs: artifactName: 'Nuget_Packages' + # Install android 34 as we're running on macos-15 + - bash: | + echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_HOME --install 'platforms;android-34' | tr '\r' '\n' | uniq + displayName: Install Android 34 + - template: templates/gitversion.yml - template: templates/ios-build-select-version.yml @@ -90,6 +103,7 @@ jobs: xCodeRoot: ${{ parameters.xCodeRoot }} - template: templates/dotnet-mobile-install-mac.yml + - template: templates/uno-dev-feed.yml - powershell: cp $(System.ArtifactsDirectory)/Nuget_Packages/vslatest/*.nupkg $(Build.SourcesDirectory)/src/PackageCache displayName: Copy Artifacts to PackageCache @@ -121,6 +135,12 @@ jobs: TestGroup: '1' group_2: TestGroup: '2' + group_3: + TestGroup: '3' + + variables: + # don't validate transitive dependencies for template tests + NuGetAuditMode: direct steps: - task: DownloadBuildArtifacts@0 @@ -128,11 +148,10 @@ jobs: artifactName: 'Nuget_Packages' - template: templates/gitversion.yml - - template: templates/dotnet-mobile-install-linux.yml - - template: templates/gitversion.yml - + - template: templates/uno-dev-feed.yml + - script: cp $(System.ArtifactsDirectory)/Nuget_Packages/vslatest/*.nupkg $(Build.SourcesDirectory)/src/PackageCache displayName: Copy Artifacts to PackageCache diff --git a/build/ci/.azure-devops-skia-tests.yml b/build/ci/.azure-devops-skia-tests.yml index 7ad72d264e35..2889e6260249 100644 --- a/build/ci/.azure-devops-skia-tests.yml +++ b/build/ci/.azure-devops-skia-tests.yml @@ -448,3 +448,48 @@ jobs: testResultsFiles: '$(build.sourcesdirectory)/build/skia-linux-runtime-tests-results.xml' failTaskOnFailedTests: true failTaskOnMissingResultsFile: true + +- job: Skia_macos_Runtime_Tests_Build + displayName: 'Run Skia macOS Runtime Tests' + timeoutInMinutes: 60 + + pool: + vmImage: ${{ parameters.vmMacImage }} + + dependsOn: Skia_Tests_Build + + variables: + SamplesAppArtifactName: skia-generic-samples-app-$(XAML_FLAVOR_BUILD) + SamplesAppArtifactPath: $(build.sourcesdirectory)/build/$(SamplesAppArtifactName) + + UNO_UWP_BUILD: ${{ parameters.UNO_UWP_BUILD }} + XAML_FLAVOR_BUILD: ${{ parameters.XAML_FLAVOR_BUILD }} + + steps: + + - template: templates/download-winui-converted-tree.yml + + - task: DownloadBuildArtifacts@0 + inputs: + artifactName: $(SamplesAppArtifactName) + downloadPath: '$(build.sourcesdirectory)/build' + + - template: templates/dotnet-install.yml + + - script: | + cd $(SamplesAppArtifactPath) + dotnet SamplesApp.Skia.Generic.dll --runtime-tests=$(build.sourcesdirectory)/build/skia-macos-runtime-tests-results.xml + + displayName: Run Skia $(XAML_FLAVOR_BUILD) Runtime Tests + env: + SamplesAppArtifactPath: $(SamplesAppArtifactPath) + SamplesAppArtifactName: $(SamplesAppArtifactName) + + - task: PublishTestResults@2 + condition: always() + inputs: + testRunTitle: 'Skia macOS $(XAML_FLAVOR_BUILD) Runtime Tests' + testResultsFormat: 'NUnit' + testResultsFiles: '$(build.sourcesdirectory)/build/skia-macos-runtime-tests-results.xml' + failTaskOnFailedTests: true + failTaskOnMissingResultsFile: true diff --git a/build/ci/net9/global.json b/build/ci/net9/global.json index 67a58e3c4b1e..8fec97e6dc97 100644 --- a/build/ci/net9/global.json +++ b/build/ci/net9/global.json @@ -1,11 +1,11 @@ { "sdk": { - "version": "9.0.100-rc.2.24474.11", + "version": "9.0.100", "allowPrerelease": true, "rollForward": "disable" }, "tools": { - "dotnet": "9.0.100-rc.2.24474.11" + "dotnet": "9.0.100" }, "msbuild-sdks": { "MSBuild.Sdk.Extras": "3.0.44", diff --git a/build/ci/templates/dotnet-mobile-install-linux.yml b/build/ci/templates/dotnet-mobile-install-linux.yml index 869700aa2261..15b4901ae26b 100644 --- a/build/ci/templates/dotnet-mobile-install-linux.yml +++ b/build/ci/templates/dotnet-mobile-install-linux.yml @@ -1,5 +1,5 @@ parameters: - UnoCheck_Version: '1.26.0-dev.63' + UnoCheck_Version: '1.27.0-dev.8' steps: diff --git a/build/ci/templates/dotnet-mobile-install-mac.yml b/build/ci/templates/dotnet-mobile-install-mac.yml index 15c1a0054858..4bfd4a406ec6 100644 --- a/build/ci/templates/dotnet-mobile-install-mac.yml +++ b/build/ci/templates/dotnet-mobile-install-mac.yml @@ -1,5 +1,5 @@ parameters: - UnoCheck_Version: '1.26.0-dev.63' + UnoCheck_Version: '1.27.0-dev.8' steps: diff --git a/build/ci/templates/dotnet-mobile-install-windows.yml b/build/ci/templates/dotnet-mobile-install-windows.yml index 15c1a0054858..4bfd4a406ec6 100644 --- a/build/ci/templates/dotnet-mobile-install-windows.yml +++ b/build/ci/templates/dotnet-mobile-install-windows.yml @@ -1,5 +1,5 @@ parameters: - UnoCheck_Version: '1.26.0-dev.63' + UnoCheck_Version: '1.27.0-dev.8' steps: diff --git a/build/ci/templates/nuget-publish-public.yml b/build/ci/templates/nuget-publish-public.yml index 8072cbfe6c48..39fdb01b0ea9 100644 --- a/build/ci/templates/nuget-publish-public.yml +++ b/build/ci/templates/nuget-publish-public.yml @@ -3,7 +3,7 @@ steps: displayName: 'Publish to nuget.org' inputs: command: 'push' - packagesToPush: '$(Pipeline.Workspace)/Nuget_Packages/**/*.nupkg;$(Pipeline.Workspace)/Nuget_Packages/**/*Private*.nupkg' + packagesToPush: '$(Pipeline.Workspace)/Nuget_Packages/**/*.nupkg' nuGetFeedType: 'external' publishFeedCredentials: 'nuget.org uno packages' verbosityPush: 'Normal' diff --git a/build/ci/templates/uno-dev-feed.yml b/build/ci/templates/uno-dev-feed.yml new file mode 100644 index 000000000000..bc6a002029cc --- /dev/null +++ b/build/ci/templates/uno-dev-feed.yml @@ -0,0 +1,7 @@ +parameters: + nugetPackages: '$(Pipeline.Workspace)/.nuget/packages' + +steps: + + - pwsh: dotnet nuget add source https://pkgs.dev.azure.com/uno-platform/1dd81cbd-cb35-41de-a570-b0df3571a196/_packaging/unoplatformdev/nuget/v3/index.json -n "uno-dev" + displayName: Add dev feed source diff --git a/build/nuget/uno.winui.targets b/build/nuget/uno.winui.targets index 0beb9f1738ba..ed93b8bc3195 100644 --- a/build/nuget/uno.winui.targets +++ b/build/nuget/uno.winui.targets @@ -21,4 +21,18 @@ + + + + + + <_HDAnalyzerToRemove Include="@(Analyzer)" Condition="'%(Analyzer.NuGetPackageId)'=='Uno.UI.HotDesign'" /> + + + + diff --git a/build/test-scripts/run-net7-template-linux.ps1 b/build/test-scripts/run-net7-template-linux.ps1 index 4d92516b0629..a10c9ece3764 100644 --- a/build/test-scripts/run-net7-template-linux.ps1 +++ b/build/test-scripts/run-net7-template-linux.ps1 @@ -48,13 +48,13 @@ $projects = @(0, "5.1/uno51blank/uno51blank.Wasm/uno51blank.Wasm.csproj", @(), @()), # 5.1 Recommended - @(0, "5.1/uno51recommended/uno51recommended.Skia.Gtk/uno51recommended.Skia.Gtk.csproj", @(), @()), - @(0, "5.1/uno51recommended/uno51recommended.Skia.Linux.FrameBuffer/uno51recommended.Skia.Linux.FrameBuffer.csproj", @(), @()), - @(0, "5.1/uno51recommended/uno51recommended.Skia.WPF/uno51recommended.Skia.WPF.csproj", @(), @()), - @(0, "5.1/uno51recommended/uno51recommended.Wasm/uno51recommended.Wasm.csproj", @(), @()), - @(0, "5.1/uno51recommended/uno51recommended.Server/uno51recommended.Server.csproj", @(), @()), - @(0, "5.1/uno51recommended/uno51recommended.Tests/uno51recommended.Tests.csproj", @(), @()), - @(0, "5.1/uno51recommended/uno51recommended.UITests/uno51recommended.UITests.csproj", @(), @()), + @(1, "5.1/uno51recommended/uno51recommended.Skia.Gtk/uno51recommended.Skia.Gtk.csproj", @(), @()), + @(1, "5.1/uno51recommended/uno51recommended.Skia.Linux.FrameBuffer/uno51recommended.Skia.Linux.FrameBuffer.csproj", @(), @()), + @(1, "5.1/uno51recommended/uno51recommended.Skia.WPF/uno51recommended.Skia.WPF.csproj", @(), @()), + @(1, "5.1/uno51recommended/uno51recommended.Wasm/uno51recommended.Wasm.csproj", @(), @()), + @(1, "5.1/uno51recommended/uno51recommended.Server/uno51recommended.Server.csproj", @(), @()), + @(1, "5.1/uno51recommended/uno51recommended.Tests/uno51recommended.Tests.csproj", @(), @()), + @(1, "5.1/uno51recommended/uno51recommended.UITests/uno51recommended.UITests.csproj", @(), @()), # 5.2 Blank @(1, "5.2/uno52blank/uno52blank/uno52blank.csproj", @(), @()), @@ -69,16 +69,19 @@ $projects = @(1, "5.2/uno52Lib/uno52Lib.csproj", @(), @()), # 5.2 Uno NuGet Lib - @(1, "5.2/uno52NuGetLib/uno52NuGetLib.csproj", @(), @()), + @(2, "5.2/uno52NuGetLib/uno52NuGetLib.csproj", @(), @()), # 5.2 Uno SingleProject Lib - @(1, "5.2/uno52SingleProjectLib/uno52SingleProjectLib.csproj", @(), @()), + @(2, "5.2/uno52SingleProjectLib/uno52SingleProjectLib.csproj", @(), @()), # 5.2 Uno App with Library reference - @(1, "5.2/uno52AppWithLib/uno52AppWithLib/uno52AppWithLib.csproj", @(), @()), + @(2, "5.2/uno52AppWithLib/uno52AppWithLib/uno52AppWithLib.csproj", @(), @()), # 5.3 Blank with net9 - @(2, "5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj", @(), @()) + @(3, "5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj", @(), @()), + + # 5.3 lib + @(3, "5.3/uno53net9Lib/uno53net9Lib.csproj", @(), @()) # 5.3 blank publish testing # Disabled for LXD setup issues diff --git a/build/test-scripts/run-netcore-mobile-template-tests.ps1 b/build/test-scripts/run-netcore-mobile-template-tests.ps1 index f5321ab109e4..0a66bbdc2004 100644 --- a/build/test-scripts/run-netcore-mobile-template-tests.ps1 +++ b/build/test-scripts/run-netcore-mobile-template-tests.ps1 @@ -338,6 +338,9 @@ $projects = @(3, "5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj", @("-f", "net9.0-desktop"), @("macOS", "NetCore")), @(3, "5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj", @("-f", "net9.0-desktop", $sdkFeatures), @("macOS", "NetCore")), + # 5.3 Library + @(3, "5.3/uno53net9Lib/uno53net9Lib.csproj", @(), @("macOS", "NetCore")), + # Default mode for the template is WindowsAppSDKSelfContained=true, which requires specifying a target platform. @(4, "5.2/uno52AppWithLib/uno52AppWithLib/uno52AppWithLib.csproj", @("-p:Platform=x86" , "-p:TargetFramework=net8.0-windows10.0.19041"), @()), diff --git a/doc/articles/Assets/uno-settings-main.png b/doc/articles/Assets/uno-settings-main.png new file mode 100644 index 000000000000..592dc6868a40 Binary files /dev/null and b/doc/articles/Assets/uno-settings-main.png differ diff --git a/doc/articles/Assets/uno-settings-menu.png b/doc/articles/Assets/uno-settings-menu.png new file mode 100644 index 000000000000..7a90740b8431 Binary files /dev/null and b/doc/articles/Assets/uno-settings-menu.png differ diff --git a/doc/articles/Assets/uno-settings-notification.png b/doc/articles/Assets/uno-settings-notification.png new file mode 100644 index 000000000000..fa13fd5c6430 Binary files /dev/null and b/doc/articles/Assets/uno-settings-notification.png differ diff --git a/doc/articles/Assets/uno-settings-rider-notification.png b/doc/articles/Assets/uno-settings-rider-notification.png new file mode 100644 index 000000000000..b3d7d36a9041 Binary files /dev/null and b/doc/articles/Assets/uno-settings-rider-notification.png differ diff --git a/doc/articles/Assets/uno-settings-rider.png b/doc/articles/Assets/uno-settings-rider.png new file mode 100644 index 000000000000..419216ab8ab7 Binary files /dev/null and b/doc/articles/Assets/uno-settings-rider.png differ diff --git a/doc/articles/Assets/uno-settings-vs.png b/doc/articles/Assets/uno-settings-vs.png new file mode 100644 index 000000000000..79f80d720bd9 Binary files /dev/null and b/doc/articles/Assets/uno-settings-vs.png differ diff --git a/doc/articles/Assets/uno-settings-vsc-notification.png b/doc/articles/Assets/uno-settings-vsc-notification.png new file mode 100644 index 000000000000..fefcf5afc0f8 Binary files /dev/null and b/doc/articles/Assets/uno-settings-vsc-notification.png differ diff --git a/doc/articles/Assets/uno-settings-vsc.png b/doc/articles/Assets/uno-settings-vsc.png new file mode 100644 index 000000000000..5a81f957ac17 Binary files /dev/null and b/doc/articles/Assets/uno-settings-vsc.png differ diff --git a/doc/articles/Assets/uno-settings-welcome.png b/doc/articles/Assets/uno-settings-welcome.png new file mode 100644 index 000000000000..623a53e4a461 Binary files /dev/null and b/doc/articles/Assets/uno-settings-welcome.png differ diff --git a/doc/articles/common-issues.md b/doc/articles/common-issues.md index 02a49c02dd84..b7d6545304ab 100644 --- a/doc/articles/common-issues.md +++ b/doc/articles/common-issues.md @@ -10,9 +10,17 @@ The Uno Platform features and support are constantly evolving, yet you may encou A better resource for high-level questions about Uno Platform is the [general FAQ](xref:Uno.Development.FAQ). +## Sign in with Uno Platform + +Sign in with your Uno Platform account directly in your favorite IDE—Visual Studio, VS Code, or Rider, to unlock powerful tools like Hot Reload, helping you speed up development. + +More detailed information is available [here](xref:Uno.GetStarted.Licensing). + ## Hot Reload -More troubleshooting information is available [in this section](xref:Uno.Features.HotReload#troubleshooting). +When using Hot Reload, ensure you first review the [supported features](xref:Uno.Features.HotReload#features), [supported features per OS](xref:Uno.Features.HotReload#supported-features-per-os), and [supported features per platform](xref:Uno.Features.HotReload#supported-features-per-platform). + +If issues persist, additional troubleshooting information is available in [this section](xref:Uno.Features.HotReload#troubleshooting). ## Development Environments @@ -28,6 +36,11 @@ More troubleshooting information is available [in this section](xref:Uno.Feature - [Common issues on iOS/mac Catalyst](xref:Uno.UI.CommonIssues.IosCatalyst) - [Common issues on UWP](xref:Uno.UI.CommonIssues.UWP) +## Build Errors + +- [Troubleshooting build errors](xref:Uno.Development.Troubleshooting) +- [Build error codes](xref:Build.Solution.error-codes) + ## Next Steps Learn more about: diff --git a/doc/articles/concepts/overview/why-uno-platform.md b/doc/articles/concepts/overview/why-uno-platform.md index 0021c64a3b27..be391a0fc04a 100644 --- a/doc/articles/concepts/overview/why-uno-platform.md +++ b/doc/articles/concepts/overview/why-uno-platform.md @@ -14,6 +14,10 @@ At the core is a cross-platform .NET UI framework, that allows apps to run every However, built on top of this foundation is also a rich platform which includes libraries, extensions, and tools that accelerate the design, development, and testing of cross-platform applications. +## Hot Design - The only Visual Designer for cross-platform .NET Applications + +Uno Platform offers Hot Design, industry's first and only runtime Visual Designer for cross-platform .NET Applications. It transforms your running app into a Designer from any IDE on any OS. This offers unprecedented productivity gains. Learn more about [Hot Design](https://platform.uno/hot-design/) + ## True Single Project for 9 Platform Targets across Mobile, Web, Desktop, and Embedded Our Single Project approach is .NET ecosystem’s first and only true Single Project solution, empowering developers with a unified approach across all 9 platform targets, spanning mobile, web, desktop, and embedded apps. This genuine Single Project approach simplifies development, accelerates build times, and facilitates platform-specific development, enhancing your productivity and efficiency. diff --git a/doc/articles/controls/WebView.md b/doc/articles/controls/WebView.md index d0407ffdb251..b1af3cb1a5e4 100644 --- a/doc/articles/controls/WebView.md +++ b/doc/articles/controls/WebView.md @@ -2,7 +2,7 @@ > Uno Platform supports two `WebView` controls - a legacy `WebView` and a modernized `WebView2` control. For new development, we strongly recommend `WebView2` as it will get further improvements in the future. -`WebView2` is currently supported on Windows, Android, iOS, macOS (Catalyst), and Skia WPF. +`WebView2` is currently supported on Windows, Android, iOS, macOS (Catalyst), Desktop (Windows), and WebAssembly. ## Basic usage @@ -27,6 +27,13 @@ MyWebView.NavigateToString("

Hello world!

"); > [!IMPORTANT] > For Skia WPF, you should add `` to your csproj. +## WebAssembly support + +In case of WebAssembly, the control is supported via a native `