Re: test for .net 2.0



Hello Ken Cox - Microsoft MVP,

Hmm, interesting. but it returns only major version
for .NET 2.0 it returns 2.0.0.0 and for 1.1 returns 1.0.5000

Any ideas why is it so?

K> You can probably read it from this string:
K> K> Dim MyType As Type = Type.GetType("System.AppDomain")
K> Response.Write(MyType.Assembly.FullName & "<br />")
K> Ken
K> Microsoft MVP [ASP.NET]
K> "Craig L" <craig.lonsbury@xxxxxxxxxxxxxxxxxxxx> wrote in message
K> news:uONmHSXOGHA.2128@xxxxxxxxxxxxxxxxxxxxxxx
K>
Hi All,
I am just wondering if there is test to check if the .net2.0
framework is
installed on a machine?
As a quick'n'dirty test while developing, I am just checking if the
folder 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727' is present,
but that won't do for production code.

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not cease to be insipid." (c) Friedrich Nietzsche


.



Relevant Pages

  • Re: Whats wrong
    ... local machine user, ... Microsoft MVP ... > FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, ... > sourceControl, String eventArgument) ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: FP2000 VBA: objects, methods for graphics, links?
    ... > Thomas A. Rowe (Microsoft MVP - FrontPage) ... >> capital letters, and this may be causing me problems (got a thread on ... I thought if I could write every name to a string, ... >>> What you want to do is already built into FrontPage. ...
    (microsoft.public.frontpage.programming)
  • Re: Database Connection
    ... I even tried to manually registering VFPOLEDB.DLL and the ... > CONNECTION STRING: ... > No error information available: ... >> Microsoft MVP ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Remove characters from string
    ... Kind regards, ... Microsoft MVP - Excel ... | there expaining regular expressions unless you meant I should search for it. ... |> | the string I remove extraneous characters. ...
    (microsoft.public.excel.programming)
  • Re: Check file extension
    ... Sign the petition to Microsoft. ... > Private Declare Function PathFindExtension Lib "shlwapi" Alias ... > Public Function GetExtensionPart(ByVal sPath As String) As String ... > Chris Hanscom - Microsoft MVP ...
    (microsoft.public.vb.general.discussion)