Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How do I set the arguments in a Mac Xamarin project?

$
0
0

I have Xamarin version 4.2.2 build 2. I create MAC project and I want to pass arguments on [Project Options] dialog. I try with this way: 1. Open [Project Options] dialog 2. Select Run > General 3. On Parameters, put arguments string, ex: "/s" 4. Class MainClass with this code: class MainClass { static void Main (string[] args) { // Get arguments here } }

  1. Run app by debug

Result: args can not return "/s", it return value: "-psn_0_688296"

So that, I have some question: 1. Show to set argument on MAC xamarin project 2. How to get it in code when runnning

Can you help me?

Many thanks Khoa Nguyen


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>