解决方案右键:启用Nuget程序包还原
出来了,多谢,开始以为要手写,还到处找资料
出来了,多谢,开始以为要手写,还到处找资料,但是我看到别人里边有好多项,比如
<packageRestore> <!--Allow NuGet to download missing packages--> <add key="enabled" value="True" />
<!--Automatically check for missing packages during build in Visual Studio--> <add key="automatic" value="True" /> </packageRestore> <solution> <add key="disableSourceControlIntegration" value="true" /> </solution> <packageSources> <add key="NuGet official package source" value="https://nuget.org/api/v2/" /> <add key="Newtonsoft.Json" value="https://dotnet.myget.org/F/dotnet-coreclr/api/v3/index.json" /> <add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<disabledPackageSources />
<defaultPushSource /> <activePackageSource> <add key="All" value="(Aggregate source)" /> </activePackageSource> </packageSources>
这些都要手写了嘛?
配置文件不是自动生成的吗?