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. General Programming
  3. .NET (Core and Framework)
  4. framework version number

framework version number

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpdotnetquestionannouncement
5 Posts 5 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.
  • E Offline
    E Offline
    eey56
    wrote on last edited by
    #1

    How do I find my .Net Framework Version Number.Because I compile a console application on dos platform and I must do the csc alloy.Or if you know an other way to compile console application. Thank you.

    M D H E 4 Replies Last reply
    0
    • E eey56

      How do I find my .Net Framework Version Number.Because I compile a console application on dos platform and I must do the csc alloy.Or if you know an other way to compile console application. Thank you.

      M Offline
      M Offline
      Marc 0
      wrote on last edited by
      #2

      Maybe System.String.GetType().GetAssembly().Version or something?


      "..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick


      || Fold With Us! || Pensieve || VG.Net ||

      1 Reply Last reply
      0
      • E eey56

        How do I find my .Net Framework Version Number.Because I compile a console application on dos platform and I must do the csc alloy.Or if you know an other way to compile console application. Thank you.

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        Environment.Version[^] will return the Common Language Language Runtime version. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        1 Reply Last reply
        0
        • E eey56

          How do I find my .Net Framework Version Number.Because I compile a console application on dos platform and I must do the csc alloy.Or if you know an other way to compile console application. Thank you.

          H Offline
          H Offline
          HimaBindu Vejella
          wrote on last edited by
          #4

          System.Environment.Version Gives verion number of the framework "I find that the harder I work, the more luck I seem to have."

          1 Reply Last reply
          0
          • E eey56

            How do I find my .Net Framework Version Number.Because I compile a console application on dos platform and I must do the csc alloy.Or if you know an other way to compile console application. Thank you.

            E Offline
            E Offline
            Ed Poore
            wrote on last edited by
            #5

            I know that it's been a long time since this post has been posted (no pun intended) but I feel that the proper way would be to use the: Microsoft.CSharp.CSharpCodeProvider class. This has several methods which will compile from strings or files, you can compile any form of .NET assembly using this. The equivalent VB is: Microsoft.VisualBasic.VBCodeProvider Hope this enlightens you Ed

            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