Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Downloading .NET 4 source code

Tags:

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 on the download links in IE, FF does refresh the page but the download doesn't start.

Clicking on the download links in Chrome does start a download but it's called netframework.aspx, there is no indication of how big the download is. In any event, trying to download with DAP has not result as well.

I've tried this on 2 different machines with the same results. And all of my installations including Windows is kept up to date.

Any suggestions or authentic alternatives would be appreciated.

like image 630
Raheel Khan Avatar asked Aug 25 '12 02:08

Raheel Khan


People also ask

Is .NET 4 still supported?

As previously announced, starting January 12, 2016 Microsoft will no longer provide security updates, technical support or hotfixes for . NET 4, 4.5, and 4.5.

Which version of .NET framework do I have?

Open Start. Search for Command Prompt, right-click the top result, and select the Run as administrator option. Type the following command to determine the version of . NET installed and press Enter: reg query "HKLM\SOFTWARE\Microsoft\Net Framework Setup\NDP" /s To make sure that version 4.


2 Answers

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 
like image 167
Christopher Currens Avatar answered Nov 12 '22 01:11

Christopher Currens


Microsoft has recently updated .NET Framework Sources website, see this blog post: A new look for .NET Reference Source.

All sources, including project files, can now be downloaded directly: http://referencesource-beta.microsoft.com/download.html No installers, no stupid javascript protection, just a direct link to a ZIP file.

like image 33
Athari Avatar answered Nov 12 '22 01:11

Athari