Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Tech Gap OTD: .NET Version

Tech Gap OTD: .NET Version

Scheduled Pinned Locked Moved The Lounge
csharpvisual-studiotoolsdotnetcom
10 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    raddevus
    wrote on last edited by
    #1

    You ever try to determine which version of .NET is installed on a machine? It's almost funny. How to: Determine Which .NET Framework Versions Are Installed[^] I was able to use LINQPad and add all the scripts from that article to test the machine I needed to know about. You might think there is a Microsoft Utility to do this? In the .NET SDK maybe? no. Installed with Visual Studio maybe? No. An interesting gap. I guess we just figure the user will keep on downloading .NET Redistributables until the app works? :) EDIT Here's what the script lists on my machine -- which seems to be correct:

    v2.0.50727 2.0.50727.4927 SP2
    v3.0 3.0.30729.4926 SP2
    v3.5 3.5.30729.4926 SP1
    v4
    Client 4.6.01586
    Full 4.6.01586
    v4.0
    Client 4.0.0.0
    .NET Framework Version: 4.6.2

    OriginalGriffO B Sander RosselS M G 5 Replies Last reply
    0
    • R raddevus

      You ever try to determine which version of .NET is installed on a machine? It's almost funny. How to: Determine Which .NET Framework Versions Are Installed[^] I was able to use LINQPad and add all the scripts from that article to test the machine I needed to know about. You might think there is a Microsoft Utility to do this? In the .NET SDK maybe? no. Installed with Visual Studio maybe? No. An interesting gap. I guess we just figure the user will keep on downloading .NET Redistributables until the app works? :) EDIT Here's what the script lists on my machine -- which seems to be correct:

      v2.0.50727 2.0.50727.4927 SP2
      v3.0 3.0.30729.4926 SP2
      v3.5 3.5.30729.4926 SP1
      v4
      Client 4.6.01586
      Full 4.6.01586
      v4.0
      Client 4.0.0.0
      .NET Framework Version: 4.6.2

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      Or ... A safe way to get the user to check if the .NET framework is installed[^] Lists the versions in a browser. Works up to 4.0E at least.

      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      R 1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        Or ... A safe way to get the user to check if the .NET framework is installed[^] Lists the versions in a browser. Works up to 4.0E at least.

        Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

        R Offline
        R Offline
        raddevus
        wrote on last edited by
        #3

        Yeah, that is a good one. I used to use that all the time when it used to work quite a bit better. Now, in Chrome you don't even see the .NET version. Sorry your article mentioned to use IE. :) Also, my main thing was an attempt to determine if 4.5 was installed. Thanks very much for the reference though. :thumbsup: EDIT FYI - I just tried it in IE -- now you have to use the Console window to run it -- IE doesn't seem to like the javascript: protocol. Also, it only lists older versions (pre 4.5) that are installed. This is another thing the article I posted talks about. .NET 4.5 and beyond is an odd beast and you have to read other Registry entries. I guess this offers further proof of the Tech Gap :laugh:

        1 Reply Last reply
        0
        • R raddevus

          You ever try to determine which version of .NET is installed on a machine? It's almost funny. How to: Determine Which .NET Framework Versions Are Installed[^] I was able to use LINQPad and add all the scripts from that article to test the machine I needed to know about. You might think there is a Microsoft Utility to do this? In the .NET SDK maybe? no. Installed with Visual Studio maybe? No. An interesting gap. I guess we just figure the user will keep on downloading .NET Redistributables until the app works? :) EDIT Here's what the script lists on my machine -- which seems to be correct:

          v2.0.50727 2.0.50727.4927 SP2
          v3.0 3.0.30729.4926 SP2
          v3.5 3.5.30729.4926 SP1
          v4
          Client 4.6.01586
          Full 4.6.01586
          v4.0
          Client 4.0.0.0
          .NET Framework Version: 4.6.2

          B Offline
          B Offline
          Bassam Abdul Baki
          wrote on last edited by
          #4

          Quick Google search: [5 Ways to Check What Version of Microsoft .NET Framework is Installed on your Computer • Raymond.CC](https://www.raymond.cc/blog/how-to-check-what-version-of-microsoft-net-framework-is-installed-in-computer/view-all/)

          Web - BM - RSS - Math - LinkedIn

          R 1 Reply Last reply
          0
          • B Bassam Abdul Baki

            Quick Google search: [5 Ways to Check What Version of Microsoft .NET Framework is Installed on your Computer • Raymond.CC](https://www.raymond.cc/blog/how-to-check-what-version-of-microsoft-net-framework-is-installed-in-computer/view-all/)

            Web - BM - RSS - Math - LinkedIn

            R Offline
            R Offline
            raddevus
            wrote on last edited by
            #5

            Not sure what that is. - can't see .cc links: summary? EDIT I was able to view it via my text browser (DragonSharq). Oh, that guy provides a tool that he wrote, right? I'd rather just stick with the LINQpad running the scripts, but thanks. But, my point is that Microsoft points out entire scripts that you can use to determine which versions of .NET are on your machine but provide no such tool in VStudio or in the .NET SDK. Just thought that was interesting.

            1 Reply Last reply
            0
            • R raddevus

              You ever try to determine which version of .NET is installed on a machine? It's almost funny. How to: Determine Which .NET Framework Versions Are Installed[^] I was able to use LINQPad and add all the scripts from that article to test the machine I needed to know about. You might think there is a Microsoft Utility to do this? In the .NET SDK maybe? no. Installed with Visual Studio maybe? No. An interesting gap. I guess we just figure the user will keep on downloading .NET Redistributables until the app works? :) EDIT Here's what the script lists on my machine -- which seems to be correct:

              v2.0.50727 2.0.50727.4927 SP2
              v3.0 3.0.30729.4926 SP2
              v3.5 3.5.30729.4926 SP1
              v4
              Client 4.6.01586
              Full 4.6.01586
              v4.0
              Client 4.0.0.0
              .NET Framework Version: 4.6.2

              Sander RosselS Offline
              Sander RosselS Offline
              Sander Rossel
              wrote on last edited by
              #6

              I needed this just now (for this first time in years) and remembered your message. What are the odds? :D

              Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly

              R 1 Reply Last reply
              0
              • Sander RosselS Sander Rossel

                I needed this just now (for this first time in years) and remembered your message. What are the odds? :D

                Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly

                R Offline
                R Offline
                raddevus
                wrote on last edited by
                #7

                Wow, serendipity. Glad that worked out. :)

                1 Reply Last reply
                0
                • R raddevus

                  You ever try to determine which version of .NET is installed on a machine? It's almost funny. How to: Determine Which .NET Framework Versions Are Installed[^] I was able to use LINQPad and add all the scripts from that article to test the machine I needed to know about. You might think there is a Microsoft Utility to do this? In the .NET SDK maybe? no. Installed with Visual Studio maybe? No. An interesting gap. I guess we just figure the user will keep on downloading .NET Redistributables until the app works? :) EDIT Here's what the script lists on my machine -- which seems to be correct:

                  v2.0.50727 2.0.50727.4927 SP2
                  v3.0 3.0.30729.4926 SP2
                  v3.5 3.5.30729.4926 SP1
                  v4
                  Client 4.6.01586
                  Full 4.6.01586
                  v4.0
                  Client 4.0.0.0
                  .NET Framework Version: 4.6.2

                  M Offline
                  M Offline
                  Mark Starr
                  wrote on last edited by
                  #8

                  The article mentions the clrver.exe utility, but I suppose that's only for listing the runtimes, not frameworks... Have you asked Cortana? :)

                  Mark Just another cog in the wheel

                  R 1 Reply Last reply
                  0
                  • M Mark Starr

                    The article mentions the clrver.exe utility, but I suppose that's only for listing the runtimes, not frameworks... Have you asked Cortana? :)

                    Mark Just another cog in the wheel

                    R Offline
                    R Offline
                    raddevus
                    wrote on last edited by
                    #9

                    Mark Starr wrote:

                    the clrver.exe utility

                    That is an entirely different rabbit hole to fall down. Seriously. Because, even if you use that tool -- which you have to install the .NET SDK separately to get -- you will find that you also need to determine if the .NET assembly is targeted for a x64 or not. If you run the x32 clrver you won't see the apps running as x64 and vice versa. This stuff gets crazy. and you are correct, that is related to the .NET CLR version. In my case i needed to know which versions of the .NET Redistributable the user had installed. Again, the easiest way was to use LINQPad and add the C# code Microsoft provides in the article. Of course you can create a simple console app with that code too. That's why I was wondering why Microsoft didn't just do that for us and throw it in the .NET SDK or in VSTudio.

                    1 Reply Last reply
                    0
                    • R raddevus

                      You ever try to determine which version of .NET is installed on a machine? It's almost funny. How to: Determine Which .NET Framework Versions Are Installed[^] I was able to use LINQPad and add all the scripts from that article to test the machine I needed to know about. You might think there is a Microsoft Utility to do this? In the .NET SDK maybe? no. Installed with Visual Studio maybe? No. An interesting gap. I guess we just figure the user will keep on downloading .NET Redistributables until the app works? :) EDIT Here's what the script lists on my machine -- which seems to be correct:

                      v2.0.50727 2.0.50727.4927 SP2
                      v3.0 3.0.30729.4926 SP2
                      v3.5 3.5.30729.4926 SP1
                      v4
                      Client 4.6.01586
                      Full 4.6.01586
                      v4.0
                      Client 4.0.0.0
                      .NET Framework Version: 4.6.2

                      G Offline
                      G Offline
                      gicalle75
                      wrote on last edited by
                      #10

                      I use the tool from

                      http://smallestdotnet.com/

                      Get the .NET Framework Fast - Download the smallest .NET Framework Distribution possible[^] Checks the framework version.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups