跳到主要内容
版本:0.10.x

Build and run your application on a Simulator

Please ensure you have followed the guide create-a-cross-platform-solution.md.

Assuming you have created a project called HelloWorld. Enter the directory HelloWorld.iOS from the command line.

To build the project for iOS run the following command.

dotnet build

To run the project in a simulator, run the following command.

dotnet run
Application running on iPad simulator

If you use JetBrains Rider or Visual Studio for Mac you can open the solution and run, build and debug your program inside the simulator.