question

stevenaxwang avatar image
0 Votes"
stevenaxwang asked ·

package manager setting 内容丢失

Visual Studio 2019 16.5.4 因为在公司 内网,设置了代理。如果是自己建的Solution都能正确使用,但是如果打开开源的Solution,对应的Nuget代理设置没有了。请问这是什么原因?如何解决?谢谢 ![78690-image.png][1] 打开开源项目的Solution: ![78718-image.png][2] [1]: /answers/storage/attachments/78690-image.png [2]: /answers/storage/attachments/78718-image.png

vs-general
image.png (9.4 KiB)
image.png (8.9 KiB)
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @stevenaxwang , welcome to Microsoft Q&A forum. Currently in Microsoft Q&A we only support English, could you please edit your question into English? Then we can help to solve your issue better, thanks for your understanding.

Besides, if you try to add the package sources, will these packages sources exist the next time you open an open source solution? Also, please check the NuGet.Config file under %appdata%\NuGet\NuGet.Config directory. The packages sources should be set in this file, for example:

 <packageSources>
     <add key="Nuget.org" value="https://www.nuget.org/api/v2/" />
     <add key="Microsoft Visual Studio Offline Packages" value="C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\" />
     <add key="Package source" value="https://api.nuget.org/v3/index.json" />
   </packageSources>
0 Votes 0 ·

Hi @stevenaxwang , do you have any update? Could you please edit your question into English?

0 Votes 0 ·

0 Answers