diff --git a/src/Controls/tests/ManualTests/Controls.ManualTests.csproj b/src/Controls/tests/ManualTests/Controls.ManualTests.csproj index e111227f6096..bca869038afc 100644 --- a/src/Controls/tests/ManualTests/Controls.ManualTests.csproj +++ b/src/Controls/tests/ManualTests/Controls.ManualTests.csproj @@ -5,6 +5,9 @@ + + + $(MauiManualTestsPlatforms) $(TargetFrameworks);$(MauiManualTestsPreviousPlatforms) Exe diff --git a/src/Controls/tests/ManualTests/README.md b/src/Controls/tests/ManualTests/README.md index a1e279b39127..acd362510457 100644 --- a/src/Controls/tests/ManualTests/README.md +++ b/src/Controls/tests/ManualTests/README.md @@ -167,10 +167,21 @@ Navigate to the Microsoft.Maui.Controls package on the nightly feed (or use tool ``` +Note: you can also set the values to `$(MauiVersion)` and set a `` node with the version you want to use. See **Method 2**, below. + ### How to Compile This mode is similar to Workloads Mode but allows specifying any available NuGet version for `MauiVersion`. It requires setting `UseMaui=true`. +You will need to manually add the target frameworks to the `` node when you use this method. For example, running the project on iOS and Android will require: + +```xml + +net10.0-ios;net10.0-android +``` + +Depending on the .NET version you want to use, replace `net10.0` prefix with the version you want to use, for example: `net9.0`. + #### Method 1: Using MSBuild Property ```bash dotnet build -p:UseMaui=true -p:MauiVersion=8.0.0-nightly.8832+sha.feb791fc7-azdo.8163102 @@ -363,4 +374,4 @@ dotnet build 4. **Always restore packages** before building: `dotnet restore` 5. **Keep workloads updated** regularly: `dotnet workload update` 6. **Pin specific versions** in production scenarios -7. **Test across multiple platforms** \ No newline at end of file +7. **Test across multiple platforms**