Skip to content
Prev Previous commit
- updates based on review
  • Loading branch information
PureWeen committed Jun 20, 2024
commit 1408bd34c20e706e7c497dc537e8a2e381d369d2
6 changes: 3 additions & 3 deletions docs/DevelopmentTips.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The below parameters can be used with the `dotnet cake` command in the root of y

#### Clean
`--clean`
- This will do a recursive delete of all your obj/bin folders. This is helpful if for some reason your repository is in a bad state and you don't want to go as scorched earth as `git clean -xdf`
- Occasionally, when switching branches or syncing with the main branch, incremental builds may stop working. A common fix for this is to use git clean -xdf to delete all locally cached build information. However, the issue with git clean -xdf is that it will also wipe out any uncommitted changes. Using --clean to recursively delete the local obj/bin folders should hopefully resolve the issue while preserving your changes.

#### Target a specific platform
Comment thread
PureWeen marked this conversation as resolved.
`--android`
Expand All @@ -37,15 +37,15 @@ dotnet cake --target=VS --workloads=global --android --ios

*Note* you will have to `git clean -xdf` your project if you change or add platforms.

### Blazor Desktop
### Blazor Hybrid

To build and run Blazor Desktop samples, check out the [Blazor Desktop](https://github.com/dotnet/maui/wiki/Blazor-Desktop) wiki topic.

# Advanced Scenarios

### Compile using a local `bin\dotnet` via `dotnet-local.*`
Comment thread
PureWeen marked this conversation as resolved.

This method will use the .NET and workload versions that are specific to the branch you are on, which is a good way to ensure compatibility.
This method will use the .NET and workload versions that are specific to the branch you are on. There may be occasions when your global installation of .NET is not compatible with a particular branch. In such cases, this method will create a local folder containing all the .NET versions specific to that branch.

Use `dotnet-local.cmd` on Windows or `dotnet-local.sh` on Unix to ensure that `PATH` is set consistently.

Expand Down