-
Notifications
You must be signed in to change notification settings - Fork 116
Getting Started
Comet is a few things:
- a platform agnostic UI toolkit
- a programming pattern
Currently the best experience is on macOS with VS Code and building for iOS.
- Visual Studio Code
- .NET Core 3.0
- Platform install
- IOS - install the latest version of Xcode and Xamarin.iOS
- Android - install the latest version of Xamarin.Android
- Install the Comet Project Templates
Open a terminal and run:
dotnet new -i Clancey.Comet.Templates.Multiplatform
- Install the VS Code Extension
Browse the VS Code marketplace for Comet Debug
and install it.
- Start a New Project
dotnet new comet-app -n RideTheComet
- Open the Project in VS Code
code RideTheComet
- Restore the NuGets for your library project and the iOS project.
VS Code will often prompt you to restore, however you can restore a few other ways.
With VS Code commands:
Type
SHFT+CMD+P
and type restore to choose the restore command.
With dotnet cli:
dotnet restore
- Ride the Comet!
Start debugging. With the Comet Debug extension installed you can type CMD + Return
.
VS Code should have already selected the iOS project as your startup project, and prompt you to select a simulator from your Xcode installation.
Once running, you can make changes to your view code and your app running in the simulator will update in real-time. Any invalid code will either report an error to you in the output window, or may crash the app and require reboot to get going again. So write good code!