--- robots: noindex, nofollow --- 01 First Project === [toc] # Theory subject .NET introduction and Xamarin/MAUI # Lab subjects * Install Visual Studio with Maui * Create your first project * with the correct settings * enrolled in the required GitHub classroom assignment * Deploy to Android emulator (and physical device if owned) # Assignments ## Ex01 – Installation & testing Follow all instructions [00 Get Started: Installation](https://hackmd.io/@frewaeyaert/deviceprogramming/%2FEMceXXBlQZyhYcJCy6pAlw) to install the required tools and set up / deploy your first application. After you finished, come back for Ex02. ## Ex02 - Github for demo's & assigments ### Sign in to GitHub with your Howest username or email address * Go to www.github.com * Sign in with your GitHub account ![](https://i.imgur.com/1TavKkp.png) ### Get the weekly demo https://github.com/howest-mct/DEVPROG_DEMO_01 Every week a demo might be shown in the theory lessons. We give you the code for free so you can hopefully learn from it. In the next steps we will show you how to browse to the code or download it. * Go to the provided demo URL for this week (see above). You can always browse through the code online, however, sometimes it’s handy to have a local copy on your hard disk. * Choose ‘Clone or download’  ‘Copy to clipboard’ ![](https://i.imgur.com/SM5wSC2.png) * Choose a default folder where all your Visual Studio projects will appear from now on, eg.: “d:\source” To avoid major headaches and laptops flying around the classroom, make sure you ==do NOT choose a folder== that is either a synchronized **Google Drive, OneDrive or Dropbox folder**, in your user folder (eg. **Documents**), or a long path! * Open a command window. Browse to the directory you just chose. Execute this command: ![](https://i.imgur.com/uqkrHPQ.png) * The demo will now be available on your local hard disk (in a subfolder of the path you just chose). Run it and see what happens. ### Join the classroom Weekly, there will be an assignment on GitHub that you need to finish before the next lab starts. You will now learn how to sign up for an assignment and hand in the required solutions. * Go to the provided assignment invitation URL, for this exercise that will be: * https://classroom.github.com/a/C1lhkeOi * Accept the invitation and go to the repository URL that appears: ![](https://i.imgur.com/xb8aLX3.png) * Copy the quick setup URL and clone the repository to your local disk (see ‘get the weekly demo’ on how to use the get clone command) ![](https://i.imgur.com/IcIb6DQ.png) * Create a new project in Visual Studio. * **Name**: name of the exercise as provided in the assignment (eg.: EX02_GitHubClassroom) **Location**: the folder that was automatically created by the git clone (eg.: lab01-JanJanssen) ![](https://hackmd.io/_uploads/SyfbRUVWs.png) ### Commit changes * Commit your newly created project to the classroom: * Open a command window * Browse to the folder of your repository (eg.: D:\DEVPROG\lab01-JanJanssen) * Execute the following commands: ![](https://i.imgur.com/5P5nUHI.png) * Commit changes regularly by following the same steps but adding a different comment (eg.: “model added”, “bug fix …”, etc.). You can do a local commit as many commits as you want before you do a push. **Only a push will actually upload your files/code; until then all changes remain local!** ## What did we learn? * You can install Visual Studio and troubleshoot installation problems to get everything up and running. * You know how to create a Xamarin.Forms project with the settings required for this course, and how to deploy to a physical Android device and also to an Android emulator * Using Git / GitHub, you can: * Browse through or download a provided demo project. * Enroll in a weekly assignment on GitHub classroom. ## Commit your work (GitHub) Please commit your final working project to GitHub before your next lab starts. * Finish your assignment in time and commit: * open a command window * browse to your solution folder * execute these commands, using the comment “finished lab”: ![](https://i.imgur.com/lkxeVe9.png) ## Extra official documentation on the subject * Xamarin: Build your first app https://learn.microsoft.com/en-us/xamarin/get-started/first-app/?pivots=windows * Maui : Build your first app https://docs.microsoft.com/nl-nl/dotnet/maui/get-started/first-app ###### tags: `Device Programming` `MCT` `Syllabus`