日期:2014-05-17  浏览次数:21090 次

VS 2010命令提示导航问题
这是一个多文件程序集的书本事例。现在用文本编辑器编辑了ufo.cs,,书上说用VS2010命令提示,导航到包含ufo.cs文件的文件夹,然后使用C#编辑器执行以下命令:
csc.exe /t:module ufo.cs

现在查看含有ufo.cs的文件夹,发现一个名为ufo.netmodule的新文件。

不知道如何导航,我就写了:
csc.exe /t:module D:\ufo\ufo.cs

执行了,但是没有看到新文件,导航应该怎么弄?

------解决方案--------------------
你是否弄清楚了执行这个命令的功能是什么?应该是把一个文件从一个文件夹下copy到另外一个文件夹下.那么至少原文件路径和目标文件路径的参数都正确,才能操作成功.
------解决方案--------------------
csc /out:ufo.moudle.dll /t:module ufo.cs
------解决方案--------------------
导航是什么意思???

/t:module你不是就是要输出module 吗?

To compile ufo.cs into a .NET module, specify /t:module as the target type, which automatically honors the *.netmodule naming convention 

ufo.netmodule就是输出文件。