Posted January 29, 2020
PLEASE help me because this is VERY important to me and I'd really like to solve this problem ASAP! I've already gone through a ton of horrible problems to get to this point, but I think I'm almost at the end, so I really want to finish it this week! Here's the problem:
I've been using Visual Studio for years but I just upgraded it to the Core versions. I was using 2012, and now I've installed 2015, 2017 and 2019, so I can use whatever version I need.
But what I really need to do is compile a program within Windows 7, such that the resulting program needs to be cross-platform compatible and able to run on a Macintosh.
I've read a page that explains how to do this:
https://stackify.com/cross-platform-net-core-apps/
It's not very long, so you can read it or just skim it if you're familiar with all of this stuff, just to see if it seems accurate. I don't know if there are better pages, but that's the only one that I've found so far, but feel free to suggest any. Note that I can't see the images on the page (they just look gray) so I just read the text. Is anyone else able to see the images?
According to the instructions, it's possible to make such an application as either "framework-dependent" or "self-contained". Correct me if I'm wrong but I interpret this to mean that a self-contained one can be put on any computer and run immediately, without having to install anything else (I'm not sure how this is possible though, because it's not compiled to machine language), but a framework-dependent one would need to at least have the .NET Core runtime installed, right? Or would anything else be required?
However, the thing about that page is that it explains how to create a console application, as in one that runs on the command prompt, like a DOS application. What I need is a regular Windows application that can make windows with buttons, etc. in a GUI. But I'm NOT trying to make an ASP.NET application, because again, correct me if I'm wrong, but at least when I worked on ASP.NET, it was all for web applications (as Visual Studio suggests), but not regular, non-web applications, right? I need to make a NON-web, NON-console application with a GUI, like a standard Windows program such as Word or Excel, for example, but it must be able to run on Windows AND Macintosh using the same compiled .exe file made in .NET.
EDIT: I read through the instructions some more, and if I understand it correctly, it may not be the same file after all, but really, that's alright as long as I can compile it within Windows and it will run on Macintosh!
But the problem is that if I run VS 2015 and try to create a new project, I'm given a drop-down list box at the top of the window, with various options that are all versions of the .NET Framework, but no Core. But if I run VS 2017 or 2019 then I don't get the drop-down list box, but there's a tree list on the left, and whatever I click in there, whether it's Core-specific or something general, all of the options in the main part of the window that say "Core" are either console, web, unit testing, class libraries or other stuff like that, which aren't regular GUI non-web programs.
One thing that was said on the webpage that I mentioned above is that I should have the .NET Core SDK installed, but I'm not sure whether I need to, because it seems like it would be included as part of Visual Studio, or isn't it? I can try and download various versions of .NET Core if you think that will help (would they conflict with each other if I install multiple? I've already installed Framework 4.5 though).
But other than that, I have no idea what to do! Could someone please tell me how to do this? I get the impression that it's supposed to be an easy and standard thing to do, so I must be overlooking something obvious.
I've been using Visual Studio for years but I just upgraded it to the Core versions. I was using 2012, and now I've installed 2015, 2017 and 2019, so I can use whatever version I need.
But what I really need to do is compile a program within Windows 7, such that the resulting program needs to be cross-platform compatible and able to run on a Macintosh.
I've read a page that explains how to do this:
https://stackify.com/cross-platform-net-core-apps/
It's not very long, so you can read it or just skim it if you're familiar with all of this stuff, just to see if it seems accurate. I don't know if there are better pages, but that's the only one that I've found so far, but feel free to suggest any. Note that I can't see the images on the page (they just look gray) so I just read the text. Is anyone else able to see the images?
According to the instructions, it's possible to make such an application as either "framework-dependent" or "self-contained". Correct me if I'm wrong but I interpret this to mean that a self-contained one can be put on any computer and run immediately, without having to install anything else (I'm not sure how this is possible though, because it's not compiled to machine language), but a framework-dependent one would need to at least have the .NET Core runtime installed, right? Or would anything else be required?
However, the thing about that page is that it explains how to create a console application, as in one that runs on the command prompt, like a DOS application. What I need is a regular Windows application that can make windows with buttons, etc. in a GUI. But I'm NOT trying to make an ASP.NET application, because again, correct me if I'm wrong, but at least when I worked on ASP.NET, it was all for web applications (as Visual Studio suggests), but not regular, non-web applications, right? I need to make a NON-web, NON-console application with a GUI, like a standard Windows program such as Word or Excel, for example, but it must be able to run on Windows AND Macintosh using the same compiled .exe file made in .NET.
EDIT: I read through the instructions some more, and if I understand it correctly, it may not be the same file after all, but really, that's alright as long as I can compile it within Windows and it will run on Macintosh!
But the problem is that if I run VS 2015 and try to create a new project, I'm given a drop-down list box at the top of the window, with various options that are all versions of the .NET Framework, but no Core. But if I run VS 2017 or 2019 then I don't get the drop-down list box, but there's a tree list on the left, and whatever I click in there, whether it's Core-specific or something general, all of the options in the main part of the window that say "Core" are either console, web, unit testing, class libraries or other stuff like that, which aren't regular GUI non-web programs.
One thing that was said on the webpage that I mentioned above is that I should have the .NET Core SDK installed, but I'm not sure whether I need to, because it seems like it would be included as part of Visual Studio, or isn't it? I can try and download various versions of .NET Core if you think that will help (would they conflict with each other if I install multiple? I've already installed Framework 4.5 though).
But other than that, I have no idea what to do! Could someone please tell me how to do this? I get the impression that it's supposed to be an easy and standard thing to do, so I must be overlooking something obvious.
Post edited January 29, 2020 by HeresMyAccount
No posts in this topic were marked as the solution yet. If you can help, add your reply