Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4247646
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:08:10+00:00 2026-05-21T04:08:10+00:00

Assume I have 2 machines, one machine with MS windows with .NET 4.0 and

  • 0

Assume I have 2 machines, one machine with MS windows with .NET 4.0 and the other begin a linux machine with Mono 2.10.1
Now I create a command line application on the respective machines that will output the installed framework version using:

Console.WriteLine(Environment.Version);  

Question 1

Is my assumption correct that the following should be displayed:
Windows : 4.0.30319.1
Linux : 2.10.1 (or something similar??)

Question 2
Assuming we have both mono and ms.net installed on a windows machine, is there a way to specify that an exe must run on the mono framework in windows? (perhaps a config file?)

Question 3
If I compile a (simple) mono application on a linux machine, will that compiled exe work on a windows machine with only ms.net installed?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T04:08:11+00:00Added an answer on May 21, 2026 at 4:08 am

    Update

    • Question 1 (test.cs below[1]), tested on linux:

    .

    mono.2.6.7 $ ./test.exe 
    2.0.50727.1433
    $ source custom/MONO/devenv.sh 
    mono.2.11 $ dmcs test.cs
    mono.2.11 $ ./test.exe 
    WARNING: The runtime version supported by this application is unavailable.
    Using default runtime: v1.1.4322
    1.1.4322.2032
    mono.2.11 $ mono ./test.exe 
    4.0.30319.1
    mono.2.11 $ 
    
    • Question 2

      You could make a batch file to invoke mono.exe myapplication. Look in %PROGRAMFILES%\Mono 2.10\bin for plenty examples

    • Question 3
      Yup

    For compatibility check the other way around (check for implementation stubs, missing P/Invoke functionality etc.) there is the MoMa tool


    test.cs

    using System;
    
    namespace X 
    { 
      class Y 
      {
        public static int Main(string[] args)
        {
          Console.WriteLine(Environment.Version);
          return 0;
        }
      } 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Assume we have a single Windows form with a button called SimpleButton1. The following
I have an application that is installed per-machine (since it uses a service). One
We have two machines which need to communicate: a Linux based gateway, and a
I'm brand new to Rails. I have one Rails project on my machine, but
I have a Windows Forms application developed using C# in .NET framework 3.5, Service
I have a licensed version of Visual studo 2010 on a Windows 7 machine
I have an Eclipse workspace set up on one of my two work machines.
Assume I have a C# class like this: [XmlRoot(floors)] public class FloorCollection { [XmlElement(floor)]
Assume I have the following string: Hellotoevryone<img height=115 width=150 alt= src=/Content/Edt/image/b4976875-8dfb-444c-8b32-cc b47b2d81e0.jpg />Iamsogladtoseeall. This
Assume I have access to a SMB server at IP 1.2.3.4, how can I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.