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
-
14 Maret 2012 14:58
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.
Semua Balasan
-
30 Maret 2012 23:14This 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
-
31 Maret 2012 18:58Yes you are right, that is in all the files.
-
17 Agustus 2012 9:00Now 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!
-
28 Oktober 2012 13:11
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.
- Diedit oleh Zodarion 28 Oktober 2012 13:13
-
28 Oktober 2012 14:06
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:
-
30 Oktober 2012 12:07BTW 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.
-
30 Oktober 2012 12:24
Thanks you all guys for your answers!
I think I can live with this issue. But I hope ms fixes it anyways.
-
31 Oktober 2012 14:55Could you please share your solution somehow?