通过NetMassDownloader批量下载和使用微软.NET框架源代码

Visual Studio使用已下载的微软.NET源代码
http://www.cnblogs.com/winkingzhang/archive/2008/02/20/1074754.html

.net框架源代码批量下载器使用方法
http://www.cnblogs.com/911/archive/2008/02/21/1076081.html

配置VS2005,通过NetMassDownloader批量下载和使用源代码
http://www.cnblogs.com/adaiye/archive/2008/02/21/netmassdownloader.html

如何批量下载VS2008中公开的微软源代码
http://www.cnblogs.com/volnet/archive/2008/02/18/1072819.html

下载器下载地址:
http://www.codeplex.com/NetMassDownloader/Release/ProjectReleases.aspx?ReleaseId=10592

参数:

.Net Mass Downloader 1.2.0.0 – (c) 2008 by Kerem Kusmezer, John Robbins

Batch download the Microsoft .NET Reference Source code.

Usage: NetMassDownloader [-file <file>]
[-directory 
<directory]
[-output <directory
>]
[-vsver 
<version>]
[-proxy server|username|password|domainname]
[-force] [-nologo] [-verbose] [-?]

-file      – Download an individual file’s PDB and source code. You can
specify multiple file parameters. (Short -f).
-directory – Download all the found PDB and source code for all files in
the specified directory. You can specify multiple
directory parameters (Short -d).
-output    – The output directory for PDB and source files. The default
directory is the cache directory set in Visual Studio 2008.
By using the cache directory, you’ll have the PDB and source
files available to Visual Studio 2008. However, to use the
.NET Reference Source Code with VS 2005, use the -output
switch and in the Options dialog, Debugging, Symbols property
page, add the specified output directory to the “Symbol file
(.pdb) locations.” Also, add the directory to the Solution
Properties, Common Properties, Debug Source Files, Directories
containing source code location. The Visual Studio 2005
debugger will automatically load the source code. (Short -o)
-vsver     – The Visual Studio version number to use for finding the cache
directory. The default is Visual Studio 2008,
but if you want to use the cache directory for Visual Studio
2005, you would pass ‘-vsver 8.0’ (without quotes) (Short -vs)
-force     – If specified, forces the downloading the PDB files into the
symbol server. When downloading to a symbol server if the PDB
exists, it’s not downloaded. Using the -output switch will
always download and process the PDB. (Short -fo)
-nologo    – Don’t show the logo information. (Short -n)
-verbose   – Do verbose output. May be worth turning on as the downloading
source code can take a long time. (Short -v)
-proxy     – Some proxies require credentials in order for the download to
work. The syntax required is
“http://testserver:80|username|password|domainname” or
“http://testserver:80|username|password”
For more information about using this flag, see discussion of
bug 1133 at http://www.codeplex.com/NetMassDownloader for more
details. (Short -p)
-?         – This help message.

运行方式:

Get2.cmd
NetMassDownloader.exe -d C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 -o D:\CSharpSourceCode\Microsoft.Net\v2.0 -fo
pause

Get3.0.cmd
NetMassDownloader.exe -d “C:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Communication Foundation” -o D:\CSharpSourceCode\Microsoft.Net\v3.0 -fo
NetMassDownloader.exe -d “C:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Workflow Foundation” -o D:\CSharpSourceCode\Microsoft.Net\v3.0 -fo
NetMassDownloader.exe -d “C:\WINDOWS\Microsoft.NET\Framework\v3.0\WPF” -o D:\CSharpSourceCode\Microsoft.Net\v3.0 -fo
NetMassDownloader.exe -d “C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0” -o D:\CSharpSourceCode\Microsoft.Net\v3.0 -fo
pause

get3.5.cmd
NetMassDownloader.exe -d “C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5” -o D:\CSharpSourceCode\Microsoft.Net\v3.5 -fo
pause

 

张贴在C#

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注