Visual Studio 2010F#作为一个高效的.NET程序语言。其混合了函数语言和物件导向程序编制语言,并且***的适用于编程、算法、技术和探索性开发,因此可以在使用的过程当中感受到趣味性和吸引力。
查看Visual Studio 2010F#文件的源代码:
- @echo off
- if "%1" == "" goto x86
- if not "%2" == "" goto usage
- if /i %1 == x86 goto x86
- if /i %1 == amd64 goto amd64
- if /i %1 == x64 goto amd64
- if /i %1 == ia64 goto ia64
- if /i %1 == x86_amd64 goto x86_amd64
- if /i %1 == x86_ia64 goto x86_ia64
- goto usage
- :x86
- if not exist "%~dp0binvcvars32.bat" goto missing
- call "%~dp0binvcvars32.bat"
- goto :eof
- :amd64
- if not exist "%~dp0binamd64vcvarsamd64.bat" goto missing
- call "%~dp0binamd64vcvarsamd64.bat"
- goto :eof
- :ia64
- if not exist "%~dp0binia64vcvarsia64.bat" goto missing
- call "%~dp0binia64vcvarsia64.bat"
- goto :eof
- :x86_amd64
- if not exist "%~dp0bin†_amd64vcvarsx86_amd64.bat" goto missing
- call "%~dp0bin†_amd64vcvarsx86_amd64.bat"
- goto :eof
- :x86_ia64
- if not exist "%~dp0bin†_ia64vcvarsx86_ia64.bat" goto missing
- call "%~dp0bin†_ia64vcvarsx86_ia64.bat"
- goto :eof
- :usage
- echo Error in script usage. The correct usage is:
- echo %0 [option]
- echo where [option] is: x86 ^| ia64 ^| amd64 ^| x86_amd64 ^| x86_ia64
- echo:
- echo For example:
- echo %0 x86_ia64
- goto :eof
- :missing
- echo The specified configuration type is missing. The tools for the
- echo configuration might not be installed.
- goto :eof
不难发现,实际运行的代码是:
- :x86
- if not exist "%~dp0bin\vcvars32.bat" goto missing
- call "%~dp0bin\vcvars32.bat"
- goto :eof
即运行当前目录下的bin目录下的vcvars32.bat文件,这个文件的内容非常简单,如下:在我的机器上取值d:\Microsoft Visual Studio 8\Common7\Tools\
故找到该目录,并查看其下的Visual Studio 2010F#,代码如下:
- call "%VS80COMNTOOLS%vsvars32.bat"
- gacutil /i YejunWorkshop.IDUControlLibrary.Design.dll
- 该批处理文件直接运行即可将YejunWorkshop.IDUControlLibrary.Design.dll程序集添加到GAC中。