Duplicated content in RefSrc\Source\.Net\4.0\DEVDIV_TFS\Dev10\Releases\RTMRel\ndp\fx\src\xsp\System\Web\Util\FileUtil.cs\1590299\FileUtil.cs

Unanswered Duplicated content in RefSrc\Source\.Net\4.0\DEVDIV_TFS\Dev10\Releases\RTMRel\ndp\fx\src\xsp\System\Web\Util\FileUtil.cs\1590299\FileUtil.cs

  • Wednesday, March 14, 2012 2:58 PM
     
      Has Code

    I dont know if this is off topic, bu the file FileUtil.cs has the same code twice.

    It begins with 

    //------------------------------------------------------------------------------ 
    // <copyright file="UrlPath.cs" company="Microsoft">
    //     Copyright (c) Microsoft Corporation.  All rights reserved.
    // </copyright>
    //----------------------------------------------------------------------------- 
    
    /* 
     * UrlPath class 
     *
     * Copyright (c) 1999 Microsoft Corporation 
     */
    
    namespace System.Web.Util {
    ...
    }

    and then the same thing below

    // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
    //------------------------------------------------------------------------------ 
    // <copyright file="UrlPath.cs" company="Microsoft">
    //     Copyright (c) Microsoft Corporation.  All rights reserved.
    // </copyright>
    //----------------------------------------------------------------------------- 
    
    /* 
     * UrlPath class 
     *
     * Copyright (c) 1999 Microsoft Corporation 
     */
    
    namespace System.Web.Util {
    ...
    }

    When I say same thing is because I used the Notepad++ diff tool

    This happens when I download the file Net_4.msi from http://referencesource.microsoft.com/netframework.aspx, Revision number {197A50F0-296B-451D-8FD2-8ED61CC3F2FF} and install it in My Documents.

All Replies

  • Friday, March 30, 2012 11:14 PM
     
     
    This seems to be the same for pretty much all of the files, as far as I've noticed. Was hoping someone had an answer as to why :D
  • Saturday, March 31, 2012 6:58 PM
     
     
    Yes you are right, that is in all the files.
  • Friday, August 17, 2012 9:00 AM
     
     
    Now guess how is it with 4.5 code ?? Right, EXACTLY THE SAME PROBLEM !!! And it's already more than a year being around there. Just unbelievable!
  • Sunday, October 28, 2012 1:11 PM
     
      Has Code

    All files (source code and pdb) installed from these packages are written to disk twice.

    One can inspect it by decompiling RSCC.ZipHelper.exe, tool used by these installers to decompress files (all files are concatenated into custom format stream then zipped).

    Using any tool such as dotPeek or ILSpy one can find out that RSCC.ZipHelper.GZip.WriteFile executes lines:

     fileStream = new FileStream(handle, FileAccess.Write);
     fileStream.Write(buffer, 0, buffer.Length);
     fileStream.Write(buffer, 0, count);

    buffer contains whole file data. Maybe it is only a bad merge. (I hope so.)

    Bad news is that all pdb files are extracted by the same program and they are also twice as long.


    • Edited by Zodarion Sunday, October 28, 2012 1:13 PM
    •  
  • Sunday, October 28, 2012 2:06 PM
     
     

    yeah, the problem is known for two years already:
    http://blogs.msdn.com/b/rscc/archive/2010/08/16/net-framework-4-reference-source-is-available.aspx#10113453. Nobody cares.

    I've updated the MS Connect issue with your finding - consider voting it up: 

    https://connect.microsoft.com/VisualStudio/feedback/details/758459/net-framework-4-5-reference-sources-file-contents-appears-doubled-when-installed-locally-from-http-referencesource-microsoft-com-netframework-aspx

  • Tuesday, October 30, 2012 12:07 PM
     
     
    BTW I fixed it for myself with ILDasm/ILasm and msi-plus plugin for Total Commander (any MSI editor should work). Simple unpacking would not work, because symbols are postprocessed by another program.
  • Tuesday, October 30, 2012 12:24 PM
     
     

    Thanks you all guys for your answers!

    I think I can live with this issue. But I hope ms fixes it anyways.

  • Wednesday, October 31, 2012 2:55 PM
     
     
    Could you please share your solution somehow?