VS Plugin
VSCode: https://marketplace.visualstudio.com/vscode
VS: https://marketplace.visualstudio.com/vs
VS plug-in installation method
- Online: NuGet
- Offline: cd Vs2013 installation path \ Common7 \ IDE, execution path VSIXInstaller.exe xxx.vsix
Questions about plug-ins can not be downloaded using the following method: the URL of the template
//vsCode模版
https://${publisher}.gallery.vsassets.io/_apis/public/gallery/publisher/${publisher}/extension/${extension name}/${version}/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage
Tutorial: https://blog.csdn.net/wangwei703/article/details/54020712
nuggets
Modify global cache location
nuget default global package Download: C: \ Users \ username.nuget \ packages
may be mounted nuget.exe (need to save the path to the system variable PATH)
nuget locals all -list #查看缓存路径位置
Refer to the expansion of knowledge: [the When NuGet IS Down ...] ( http://irisclasson.com/2018/03/22/when-nuget-is-down/ )
Step1 first add in Nuget.config file.
<disabledPackageSources>
<add key="Microsoft and .NET" value="true" />
<add key="Microsoft Visual Studio Offline Packages" value="true" />
</disabledPackageSources>
<config>
<add key="globalPackagesFolder" value="F:\Nuget\.nuget\packages" />
<add key="repositoryPath" value="F:\Nuget\.nuget\packages" />
</config>
Wherein, Nuget.config position in C: \ Users \ username \ AppData \ Local \ NuGet, see in particular: modification method
Step2 . Update link path
to be moved directly to the destination folder cut position, execute the command cmd mklink
mklink /d C:\Users\wjcx\AppData\Local\NuGet\Cache F:\GoogleDownload\Soft\nuget\Cache
Similarly, you can link v3-cache folder to a specified location.
Questions about mklink command encountered, see: https://cloud.tencent.com/developer/article/1341325
VS project nuget position
NuGet Packages in the project to the specified path, see: NuGet Package Penalty for path configuration
at * .sln files in the same directory New Profile nuget.config
<?xml version="1.0" encoding="utf-8"?>
<settings>
<repositoryPath>.\Dependencies\packages</repositoryPath>
</settings>
Subject to relative path nuget.config location. See detailed configuration: NuGet.config references | MicroSoft
above normal configuration in VS2013, the following configuration is not normal, but in VS2017 is normal, and then proposed the
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
<add key="repositoryPath" value="..\Dependencies\packages" />
</config>
</configuration>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<solution>
<!-- 默认不将 packages 提交到源代码管理 -->
<add key="disableSourceControlIntegration" value="true" />
</solution>
<config>
<!-- 指定这个目录下默认的packages目录 -->
<add key="repositorypath" value="..\Dependencies\packages" />
</config>
<packageRestore>
<!-- 默认启用 packages 还原 -->
<add key="enabled" value="True" />
</packageRestore>
</configuration>