[英]Enable C# 6.0 in Visual Studio 2012 on an offline PC
I have read the answers at 我在阅读了答案
C# 6.0 Support in Visual Studio 2012 Visual Studio 2012中的C#6.0支持
however it's not clear how to get it done on an offline PC . 但是,目前尚不清楚如何在离线PC上完成它。
I have downloaded the latest stable version of the C# compiler available at 我已经下载了C#编译器的最新稳定版本,网址为:
https://www.nuget.org/packages/Microsoft.Net.Compilers/ 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
. 但是我不知道该如何处理下载的nuget包,最好的办法是将其重命名为.zip并解压缩它,但是我再次陷入困境,不知道如何在
Visual Studio 2012
引用它。
Also I have no idea how to upgrade Nuget
to the latest version (as outlined in that answer) before I do the other steps? 另外,在执行其他步骤之前,我不知道如何将
Nuget
升级到最新版本(如该答案所述)。
Put your downloaded packages in a folder and use it as your package source. 将下载的软件包放在文件夹中,并将其用作软件包源。
https://docs.microsoft.com/en-us/nuget/hosting-packages/local-feeds https://docs.microsoft.com/en-us/nuget/hosting-packages/local-feeds
You will have to use a computer that have internet access to retrieve the nuget package and copy it the the offline computer. 您将必须使用可访问Internet的计算机来检索nuget程序包并将其复制到脱机计算机中。
nuget add -Source some/directory my.nupkg
nuget add -Source some/directory my.nupkg
You need to add the nuget package use the package manager console. 您需要使用程序包管理器控制台添加nuget程序包。
Install-Package SomePackage -Source C:\PathToThePackageDir\
Hope this helps. 希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.