Downloading .NET 4 source code

后端 未结 2 1848
南笙
南笙 2021-01-07 17:46

I\'ve been trying to download the source code for .NET 4 (http://referencesource.microsoft.com/netframework.aspx) since yesterday but it just doesn\'t work.

Clicking

2条回答
  •  有刺的猬
    2021-01-07 18:04

    I've had this happen before many times. It is downloading the installer, it just has the wrong name. I don't think it's worked properly in months.

    You can just change the extension from aspx to msi and then install it.

    netframework.aspx -> netframework.msi
    

    IE10 appears to work now, where it didn't before (not sure if this applies to all versions of IE now).

    It appears that when you download the file, the webpage is using a postback to netframework.aspx and sets an HTTP header to notify the browser of the content. Note the filename set in the content-disposition header which is being ignored by Chrome.

    Cache-Control:private
    content-disposition:attachment; extension-token; filename=DotNET.msi
    Content-Type:Application/binary-stream
    Date:Fri, 10 May 2013 18:31:05 GMT
    Server:Microsoft-IIS/7.5
    Transfer-Encoding:chunked
    X-AspNet-Version:2.0.50727
    X-Powered-By:ASP.NET
    

提交回复
热议问题