设置.net的环境变量以及如何使用IIS [英] Set Environment variable for .net and how to use iis

查看:82
本文介绍了设置.net的环境变量以及如何使用IIS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 如何为点网设置环境变量
在我的系统中,我有Dot net Framework 3.5sp1
和IIS 5.1
我没有Visual Studio,也不想使用Visual Studio Express或任何其他IDE
现在我想做休闲的事情

1.i想为dos运行控制台应用程序设置环境
即,当我在命令提示符下输入csc时,它必须工作
当我手动输入此位置C:\ WINDOWS \ Microsoft.NET \ Framework \ v3.5
它对我有用,但是我想如果我不输入csc而输入csc,它必须工作

2.在iis 5.1(互联网信息服务)中,没有创建新站点的选项,或者对于该

Hi How to set the environment variables for the dot net
In My system i have Dot net Framework 3.5sp1
and IIS 5.1
I have no visual studio and i dont wanted to use visual studio express or any other IDE
Now i wanted to do the fallowing

1.i wanted to set the environment for the dos to run the console applications
ie,when i enter csc in the command prompt it has to work
when i enter manually to this location C:\WINDOWS\Microsoft.NET\Framework\v3.5
it works for me but i want if i enter csc without entering that location it has to work

2.in iis 5.1 (internet information services) there is no create new site option what happens or iis 6.0 is must for that

推荐答案

,必须使用iis 6.0,请使用System.Environment.GetEnvironmentVariable, System.Environment.SetEnvironmentVariable,请参见:
http://msdn.microsoft.com/en-us/library/system.environment.aspx [ ^ ].

另请参阅: http://en.wikipedia.org/wiki/Environment_variable [
Please use System.Environment.GetEnvironmentVariable, System.Environment.SetEnvironmentVariable, see:
http://msdn.microsoft.com/en-us/library/system.environment.aspx[^].

See also: http://en.wikipedia.org/wiki/Environment_variable[^].

How to use it? Any way you want. They don''t have predefined meaning, except a few of them (please see the article referenced above). Using them for application development is a good sign of a very bad style. :-)

Basically, this is not something serious, in a way, but if you modify some of them in a wrong way, you can screw up things relying on that value pretty well. So, take care.

—SA


这篇关于设置.net的环境变量以及如何使用IIS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆