dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Thread: Multi Platform C++ .Net?

  1. #1
    Join Date
    Jul 2013
    Posts
    17

    Multi Platform C++ .Net?

    -I wish to create my programs using Microsoft C++ .net, using the appropriate
    version of Windows Studio, in 64 bit Windows 10.

    -However, I may like to recompile/rebuild that identical source code project
    for the sake of the Mac. Were it even possible, I might, in a total
    'fantasy of man', like to do that for Linux.

    -From what I have heard, only library code that includes '.Net Core' is
    compatible with the Mac. Is there a way to rebuild absolutely any
    part of a Visual Studio .net for the Mac? If I have used my own .dll
    libraries that have an equivalent for the Mac?

    -When it comes to Visual Studio C++ .net development, what
    is the file extension equivalent for a .dll file, or a .cab, file, or a .exe
    file, for that matter?

  2. #2
    Join Date
    Feb 2017
    Posts
    343

    Re: Multi Platform C++ .Net?

    Quote Originally Posted by Zachary1234 View Post
    -From what I have heard, only library code that includes '.Net Core' is
    compatible with the Mac. Is there a way to rebuild absolutely any
    part of a Visual Studio .net for the Mac? If I have used my own .dll
    libraries that have an equivalent for the Mac?
    The times they are a-changing. .NET used to be strictly Windows but now it has become multi-platform! I never though I'd live to see that happen.

    My personal experience with C++/CLI is that it, contrary to what is claimed, never really was a first-class .NET citizen. It's main purpose was to help bring old C++ legacy code to the .NET framework and not for writing new applications from scratch.

    That's why I recommend you make sure C++/CLI really is supported for .NET Core. There seems to be some doubt about that,

    https://github.com/dotnet/coreclr/issues/659

    The safest choice probably is to go for C#. I would be surprised if you couldn't interface to your DLLs also from C# but of course that needs to be investigated.

    Finally I don't think the regular Visual Studio is multi-platform. You probably need to consider VS Code if you want to use a Microsoft IDE also on Linux and Mac.
    Last edited by wolle; September 4th, 2018 at 12:21 AM.

  3. #3
    Join Date
    Jul 2013
    Posts
    17

    Re: Multi Platform C++ .Net?

    Notwithstanding this recommendation reply about C#, could someone
    please reply to my original questions from a C++.net point of view?

  4. #4
    Join Date
    Feb 2017
    Posts
    343

    Re: Multi Platform C++ .Net?

    Quote Originally Posted by Zachary1234 View Post
    Notwithstanding this recommendation reply about C#, could someone
    please reply to my original questions from a C++.net point of view?
    I think I did but maybe I wasn't straightforward enough. So,

    - You most likely cannot use C++/CLI nor Visual Studio for multi-platform developments with .NET Core.

  5. #5
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    12,730

    Re: Multi Platform C++ .Net?

    .net core does not support Managed C++. https://docs.microsoft.com/en-us/dot...bout#languages. .net core can be written in c#, f# and vb.net.

    Visual Studio has a Mac version called Visual Studio for Mac.

  6. #6
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,225

    Re: Multi Platform C++ .Net?

    Quote Originally Posted by Zachary1234 View Post
    Notwithstanding this recommendation reply about C#, could someone
    please reply to my original questions from a C++.net point of view?
    I never used .NET (managed C++/CLI). Neither for Linux nor for Windows.
    However there are Downloads oc .NET Core also for Linux and MacOS:
    https://www.microsoft.com/net/download
    Victor Nijegorodov

  7. #7
    Join Date
    Jul 2013
    Posts
    17

    Re: Multi Platform C++ .Net?

    -How much of the body of code that Visual Studio for Max have in common with Visual Studio for Windows,
    within the mutual set of C++.NET language support?

  8. #8
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,225

    Re: Multi Platform C++ .Net?

    Quote Originally Posted by Zachary1234 View Post
    -How much of the body of code that Visual Studio for Max have in common with Visual Studio for Windows,
    within the mutual set of C++.NET language support?
    As for me - I have no idea and don't care.
    And I guess there are not so many guys (at least on this Forum) who use .NET for any non-Windows platform.
    Victor Nijegorodov

  9. #9
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    12,730

    Re: Multi Platform C++ .Net?

    Quote Originally Posted by Zachary1234 View Post
    -How much of the body of code that Visual Studio for Max have in common with Visual Studio for Windows,
    within the mutual set of C++.NET language support?
    While I have used all VS versions since VS 2.0, and currenty write Net Core 2.1 apps for the desktop and for Azure, I develop only on Windows. As a result, I have never had the need to look at Visial Studio for Mac or compare it's features. Microsoft usually has a feature comparison chart for its vs editions. You may try googling for that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)