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 9274933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:28:11+00:00 2026-06-18T16:28:11+00:00

Upon running this code: foreach (string drive in Environment.GetLogicalDrives()) Console.WriteLine(Drive: {0}, drive); Console.WriteLine(OS: {0},

  • 0

Upon running this code:

foreach (string drive in Environment.GetLogicalDrives())    
    Console.WriteLine("Drive: {0}", drive);

    Console.WriteLine("OS: {0}", Environment.OSVersion);
    Console.WriteLine("Processor count: {0}", Environment.ProcessorCount);
    Console.WriteLine(".NET version: {0}", Environment.Version);

I get

enter image description here

When I downloaded and started the .NET installer, I was told that the 4.5 version was already installed. Is there a difference between the version name, and the actual version number?

  • 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-06-18T16:28:12+00:00Added an answer on June 18, 2026 at 4:28 pm

    Yes – basically .NET 4.5 is an in-place replacement for .NET 4.0, so Environment.Version will return the same version number for the first 3 parts. The build part of the version number (18010 in your case) is different between .NET 4.0 and .NET 4.5 (and potentially updates to each) but the major/minor/patch level is 4.0.30319 in both cases.

    It’s confusing as heck, but that’s the situation, I’m afraid.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

see this fiddle . This upon running gives an error in console. I'm currently
I came upon this code, marked error, in an application I'm to update. Running
I'm getting an Automation error upon running VBA code in Excel 2007. I'm attempting
Upon running my code I get: Constantly peaking between 4 and 12MB multiple times
I came across a strange phenomena upon running the following code: #include <iostream> class
Currently learning Scheme/Racket and have problem running this piece of code. (if (or (<
Upon applying this code: $lines = explode(\n, $val); where $val = $_POST['result']; and $_POST['result'];
I was looking up something, and stumbled upon this code: http://google.com/codesearch?q=kBrowserThreadNames Where can I
Upon running the following code, in a project from F# WPF template, to which
Upon running rake db:migrate, I'm getting an database configuration does not specify adapter error.

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.