Tech Gap OTD: .NET Version
-
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 -
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.2Or ... 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!
-
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!
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:
-
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.2Quick 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/)
-
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/)
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.
-
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.2I 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
-
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
-
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.2The 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
-
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
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.
-
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.2I use the tool from
Get the .NET Framework Fast - Download the smallest .NET Framework Distribution possible[^] Checks the framework version.