0

I have read the answers at

C# 6.0 Support in Visual Studio 2012

however it's not clear how to get it done on an offline PC.

I have downloaded the latest stable version of the C# compiler available at

https://www.nuget.org/packages/Microsoft.Net.Compilers/

but I'm clueless of what do I do with the dowloaded nuget package, best I could do was rename it to .zip and extract it but I got stuck again not know how do I reference that in Visual Studio 2012.

Also I have no idea how to upgrade Nugetto the latest version (as outlined in that answer) before I do the other steps?

Miguel Sanchez
  • 434
  • 3
  • 11

3 Answers3

2

You will have to use a computer that have internet access to retrieve the nuget package and copy it the the offline computer.

enter image description here

Black Frog
  • 11,595
  • 1
  • 35
  • 66
1

Put your downloaded packages in a folder and use it as your package source.

https://learn.microsoft.com/en-us/nuget/hosting-packages/local-feeds

Paulo Morgado
  • 14,111
  • 3
  • 31
  • 59
-1

You need to add the nuget package use the package manager console.

Install-Package SomePackage -Source C:\PathToThePackageDir\

Hope this helps.