uno icon indicating copy to clipboard operation
uno copied to clipboard

Add docs to improve build times on Rider

Open ramezgerges opened this issue 1 year ago • 0 comments

What would you like clarification on

Building on rider rebuilds (almost) everything everyime. This matters mostly to core devs, but this should also affect any large uno project. Using "resharper build" fixes this, but sadly it has the opposite problem; it fails to rebuild out-of-date assemblies. I found a way to work around this, but only for Windows.

  1. Instead of using the preexisting launchSettings.json, open Edit Configurations in the debugging menu and add a new configuration.
  2. Make the new configuration a .NET executable config.
  3. Set the executable path to the output exe path. You could also make the executable dotnet itself and then set the arguments to be the path to the entry dll.
  4. In the Before Launch section, create a new Run External tool task and set it to run before launching the debugger. The task program should be dotnet and the arguments should be similar to how you'd build the project from cli, e.g. build -f net7.0 -p:RunAnalyzers=false
  5. Enjoy vastly improved performance while keeping your debugging experience the same

Concern

Developing with Uno

Affected platforms

No response

Any feedback?

No response

ramezgerges avatar Feb 13 '24 01:02 ramezgerges