RE: Xamarin macOS app

2020-07-15 Thread Nick Randolph
Yep, there’s a connection from VS to a Mac in order to run the iOS simulator. 
Although these days you can deploy and test direction on an iOS device from 
Windows.

I can provide feedback to the uno team re the creation of a the Mac head 
project – I thought this was part of the latest Uno templates but perhaps not, 
and/or perhaps only on latest VS preview.

Uno is achieving a lot with a very small team and whilst there is MacOS 
support, it’s definitely not the primary target, which is why the initial 
creation process isn’t working so well for you. If you have the patience I 
would suggest installing the Xamarin bits and trying to create the project 
again.

Alternatively if you’re really stuck, I can create a stub solution for you and 
email it across.

Nick Randolph | Built to Roam Pty Ltd | Co-Founder, Technical Director | +61 
412 413 425 | 1300 613 140 | www.builttoroam.com<https://www.builttoroam.com/>
The information contained in this email is confidential. If you are not the 
intended recipient, you may not disclose or use the information in this email 
in any way. Built to Roam Pty Ltd does not guarantee the integrity of any 
emails or attached files. The views or opinions expressed are the author's own 
and may not reflect the views or opinions of Built to Roam Pty Ltd.

From: ozdotnet-boun...@ozdotnet.com  On Behalf 
Of Greg Keogh
Sent: Thursday, 16 July 2020 10:35 AM
To: ozDotNet 
Subject: Re: Xamarin macOS app

No, it didn't create the Android and iOS projects after the popup errors, just 
the UWP, Wasm and Shared are there.

I'm wondering if people are developing and testing Uno projects on Windows that 
target macOS. At around 02:50 in this beginners 
video<https://www.youtube.com/watch?v=fyo2BI4rn0g> he installs the Uno 
extensions, and he's clearly in VS2019 on Windows, so I guess he just has all 
the Xamarin dependencies present (that's not mentioned). Around 12:00 he runs 
the iOS emulator ... how? A few years ago when I first tried Xamarin Forms I 
had to run a server on the Mac and Windows connected to it with a special 
protocol (I forget the details now), which was all quite clumsy and irritating. 
That's why when VS for Mac came out I switched all Xamarin development over to 
it.

Did the Uno extension create the solution, even if there were errors loading 
the ios and android projects? If so, I’d suggest removing the projects you 
don’t want (probably just leading the MacOS head project and the Shared 
project), committing the whole thing to source repo and then opening on your 
mac. In theory this should just work but I haven’t tried it as I haven’t spent 
much time building specifically for mac.


Re: Xamarin macOS app

2020-07-15 Thread Greg Keogh
No, it didn't create the Android and iOS projects after the popup errors,
just the UWP, Wasm and Shared are there.

I'm wondering if people are developing and testing Uno projects on Windows
that target macOS. At around 02:50 in this beginners video
 he installs the Uno
extensions, and he's clearly in VS2019 on Windows, so I guess he just has
all the Xamarin dependencies present (that's not mentioned). Around 12:00
he runs the iOS emulator ... how? A few years ago when I first tried
Xamarin Forms I had to run a server on the Mac and Windows connected to it
with a special protocol (I forget the details now), which was all quite
clumsy and irritating. That's why when VS for Mac came out I switched all
Xamarin development over to it.


> Did the Uno extension create the solution, even if there were errors
> loading the ios and android projects? If so, I’d suggest removing the
> projects you don’t want (probably just leading the MacOS head project and
> the Shared project), committing the whole thing to source repo and then
> opening on your mac. In theory this should just work but I haven’t tried it
> as I haven’t spent much time building specifically for mac.
>


RE: Xamarin macOS app

2020-07-15 Thread Nick Randolph
Hi Greg,

Did the Uno extension create the solution, even if there were errors loading 
the ios and android projects? If so, I’d suggest removing the projects you 
don’t want (probably just leading the MacOS head project and the Shared 
project), committing the whole thing to source repo and then opening on your 
mac. In theory this should just work but I haven’t tried it as I haven’t spent 
much time building specifically for mac.

Let me know how it goes

Nick Randolph | Built to Roam Pty Ltd | Co-Founder, Technical Director | +61 
412 413 425 | 1300 613 140 | www.builttoroam.com<https://www.builttoroam.com/>
The information contained in this email is confidential. If you are not the 
intended recipient, you may not disclose or use the information in this email 
in any way. Built to Roam Pty Ltd does not guarantee the integrity of any 
emails or attached files. The views or opinions expressed are the author's own 
and may not reflect the views or opinions of Built to Roam Pty Ltd.

From: ozdotnet-boun...@ozdotnet.com  On Behalf 
Of Greg Keogh
Sent: Thursday, 16 July 2020 9:56 AM
To: ozDotNet 
Subject: Re: Xamarin macOS app

Hi Nick, you mentioned Uno in a post a few months ago, and I watched some 
videos but didn't actually try it. I just watched more videos then I went to 
VS2019 for Mac in tried to install the Uno project extensions but they're not 
available. I added Uno to VS2019 on my Windows work PC and created the app, but 
it gave errors that Android and iOS projects were not supported, probably 
because I don't have Xamarin installed in Windows (I do all Xamarin work on the 
Mac).

So there are some dependencies I wasn't prepared for. One of the videos talked 
about the relationship between Xamarin and Uno, but it didn't sink in.

If I developed a multi-platform project Uno app in VS2019 on Windows, how do I 
test and deploy the Mac project? Note that I'm only interested in creating a 
macOS desktop app demo.

Greg


RE: Xamarin macOS app

2020-07-15 Thread Nick Randolph
Try creating a project using platform.uno<https://platform.uno/> – MacOS and 
WebAssembly are supported out of the box.

Nick Randolph | Built to Roam Pty Ltd | Co-Founder, Technical Director | +61 
412 413 425 | 1300 613 140 | www.builttoroam.com<https://www.builttoroam.com/>
The information contained in this email is confidential. If you are not the 
intended recipient, you may not disclose or use the information in this email 
in any way. Built to Roam Pty Ltd does not guarantee the integrity of any 
emails or attached files. The views or opinions expressed are the author's own 
and may not reflect the views or opinions of Built to Roam Pty Ltd.

From: ozdotnet-boun...@ozdotnet.com  On Behalf 
Of Greg Keogh
Sent: Thursday, 16 July 2020 8:17 AM
To: ozDotNet 
Subject: Re: Xamarin macOS app


I've not done it, but have you explored doing a window in dotnet core and 
seeing what it looks like when you publish to macos?

There's no support for Windows Forms or WPF apps running on macOS ... is there? 
So you can't publish -- Greg


Re: Xamarin macOS app

2020-07-15 Thread Greg Keogh
> I've not done it, but have you explored doing a window in dotnet core and
> seeing what it looks like when you publish to macos?
>

There's no support for Windows Forms or WPF apps running on macOS ... is
there? So you can't publish -- *Greg*

>


Re: Xamarin macOS app

2020-07-15 Thread David Rhys Jones
Hello,
I've not done it, but have you explored doing a window in dotnet core and
seeing what it looks like when you publish to macos?

Davy

David JONES
djones...@gmail.com
+33 7 66 42 54 07


+33 6 52 03 96 70



On Wed, Jul 15, 2020 at 5:46 AM Greg Keogh  wrote:

> Folks, I have to create a sample desktop app on macOS in coming weeks,
> nothing too hard, just a file picker, some text boxes and a scrolling text
> results display. I already did a Mac console app sanity check and it uses
> my C# NuGet package okay and displays correct results (which took about 15
> minutes and is a tribute to the cross-platform promises of .NET). Now I
> have to make a window to impress the customer.
>
> Has anyone used a Xamarin.Mac Cocoa project to make a Mac desktop app?
> I've read all the docs and I'm about to start, I have no choice, so I was
> just wondering if anyone's trod this path.
>
> I notice the UI design process is a thin shell over using
> Xcode's designer, you just Alt+Tab between them and code silently migrates
> back to C#. It seems fair enough to let Xcode do all the heavy UI lifting,
> but it seems a bit clumsy.
>
> The whole Xamarin.Mac platform is such a thin shell over the native Apple
> processes that for a moment I consider skipping Xamarin completely and just
> learning Xcode and Swift like a native. But then I realised that I will
> want to consume .NET packages and libraries, so it's back to Xamarin.Mac.
>
> *Greg K*
>