473,511 Members | 16,846 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.NET Framework Directory

The Framework dir is
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

Does anyone know how I can programmatically return the Directory of the
..NET Framework I know how to get the version System.Environment.Version.

To get the Directory I was thinking of using
System.Environment.SystemDirectory etc then using the Version number to
access the version. But this requires moving down from System32 and then
moving into the Microsoft.NET and Framework. But this means that I have
to be sure it is installed here on every machine, is it?

Any other ideas to get this dir in an easier way?

--
Thanks
Mark mm
Nov 15 '05 #1
1 4076
Hi Mark,

RuntimeEnvironment.GetRuntimeDirectory() should do.
--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

"Mark mm" <ma********@hotmail.com> wrote in message
news:MP************************@News.CIS.DFN.DE...
The Framework dir is
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

Does anyone know how I can programmatically return the Directory of the
.NET Framework I know how to get the version System.Environment.Version.

To get the Directory I was thinking of using
System.Environment.SystemDirectory etc then using the Version number to
access the version. But this requires moving down from System32 and then
moving into the Microsoft.NET and Framework. But this means that I have
to be sure it is installed here on every machine, is it?

Any other ideas to get this dir in an easier way?

--
Thanks
Mark mm

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
4582
by: Frederico Caldeira Knabben | last post by:
Hello, I'm having a problem when trying to use the Directory.CreateDirectory() method. It throws a DirectoryNotFoundException exception. I'll try to illustrate it: Suppose you have the...
1
1557
by: JimM | last post by:
How do i know if my Windows 2000 workstations and servers and Windows 2003 servers have SP1.1 installed? Thanks.
6
2065
by: Joseph Geretz | last post by:
I recently upgraded my server to Windows 2003. The first thing I noticed is that my sample WebService pages no longer worked. The Invoke test button is missing. This is addresed by the following KB...
9
3185
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
10
3489
by: appdevtech | last post by:
A little background… We have multiple web servers in a farm and are starting to upgrade some applications to 1.1 by re-compiling in VS2003. One of the things out of our direct control is the...
2
3304
by: Ron | last post by:
Hello, I'm attempting to develop a plugin framework for an application that I'm working on. I wish to develop something in which all plugins exist in a directory tree. The framework need only...
2
3868
by: Brian Ho | last post by:
Our IIS is still running .NET 1.1 as its main .NET Framework. We have new Web applications developed under .NET 2.0. How can we set up this new web application to use .NET 2.0 framework without...
3
3054
by: Shadow Lynx | last post by:
At the bottom of the default Error page that appears when Unhandled Exceptions occur, what exactly is the difference between the "Microsoft ..Net Framework Version" and the "ASP.NET Version"? I...
3
6599
dmjpro
by: dmjpro | last post by:
plz send me a good link which can clearify me how the J2EE framework works i want the details information .... plz help thanx
13
6613
by: dancer | last post by:
I have made a new post because when I try to respond to another, I get the error, "Article Rejected -- Ill-formed message id" This is in response to the advice of Juan Libre to install Net...
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7138
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7423
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7510
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5668
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5066
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3225
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
447
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.