Click here to Skip to main content
15,885,546 members
Articles / Desktop Programming / Win32

.NET Mass Downloader - Download the .NET Framework Source Code

Rate me:
Please Sign up or sign in to vote.
4.84/5 (47 votes)
26 Apr 2010Apache12 min read 320K   1.7K   154  
With this tool you can download whole .NET Framework source code at once, and enjoy offline browsing. With it, you can have whole the source code without any Visual Studio product installed
#region Licence Information
/*       
 * http://www.codeplex.com/NetMassDownloader To Get The Latest Version
 *     
 * Copyright 2008 Kerem Kusmezer(keremskusmezer@gmail.com) And John Robbins (john@wintellect.com)
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 * 
 * Taken From The Following Project Also Written By Kerem Kusmezer 
 * PdbParser in C# http://www.codeplex.com/pdbparser 
 * 
*/
#endregion
/*------------------------------------------------------------------------------
 * SourceCodeDownloader - Kerem Kusmezer (keremskusmezer@gmail.com)
 *                        
 * 
 * Download all the .NET Reference Sources and PDBs to pre-populate your 
 * symbol server! No more waiting as each file downloads individually while
 * debugging.
 * ---------------------------------------------------------------------------*/
#region Licence Information
/*   
   Copyright 2008 Kerem Kusmezer(keremskusmezer@gmail.com) And John Robbins(john@wintellect.com)

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*/
#endregion

#region Imported Libraries
using System;
using System.Collections.Generic;
using System.Text;
#endregion

namespace DownloadLibrary.Classes
{
    public class SourceFileLoadEventArg : EventArgs
    {
        private string m_fileName;

        public string FileName
        {
            get { return m_fileName; }
        }
        private Exception m_occurredException;

        public Exception OccurredException
        {
            get { return m_occurredException; }
        }
        private string m_fileUrl;

        public string FileUrl
        {
            get { return m_fileUrl; }
        }
        public override string ToString()
        {
            if (m_occurredException != null)
            {
                //return String.Format("{0} {1} {2}", FileName, FileUrl,m_occurredException.Message);
                return string.Format( "{0}{0}{1}", "    ", m_occurredException.Message );
            }
            else
            {
                return String.Format("{0} {1}", FileName, FileUrl);
            }
        }

        private string m_fileLocationState;

        public string FileLocationState
        {
            get { return m_fileLocationState; }
        }

        public SourceFileLoadEventArg(string FileName,string FileUrl,string FileLocationState)
        {
            m_fileName = FileName;
            m_fileUrl = FileUrl;
            m_fileLocationState = FileLocationState;
        }
        public SourceFileLoadEventArg(string FileName, string FileUrl, string FileLocationState, Exception OccurredException)
            : this(FileName, FileUrl, FileLocationState)
        {
            m_occurredException = OccurredException;
        }
            
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Apache License, Version 2.0


Written By
Software Developer (Senior)
Turkey Turkey
.Net Developer From Istanbul Turkey.
You can reach my blog at http://www.kodyaz.com/blogs/unknown_tales_from_kerem/default.aspx

Comments and Discussions