NuGet package for this project references missing on this computer. Use "NuGet reduction package" to download these packages

Disclaimer: This article is a blogger original article also learn, do not have permission, do not talk to me. https://blog.csdn.net/wlanye/article/details/91438882

First, solve problems, NUGET too slow:

Reference Address: https://blog.csdn.net/yh0503/article/details/86692940 .

The authors provide a mirror image of the other addresses only two :( testing some problems, some repeat)

cdn-Azure Mirror: https://nuget.cdn.azure.cn/v3/index.json

fishlee.net Mirror: http: //nuget.fishlee.net/v3/index.json

 

Second, the choice CSPROJ file. Delete the following code, after all the downloads are exclamation point.

Precompiled pit NUGET of.

\ System.Data.SQLite.Core.1.0.109.2 multi X86 and X64 pit
 

 <Import Project="..\packages\System.Data.SQLite.Core.1.0.109.2\build\net46\System.Data.SQLite.Core.targets" Condition="Exists('..\packages\System.Data.SQLite.Core.1.0.109.2\build\net46\System.Data.SQLite.Core.targets')" />
  <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
    <PropertyGroup>
      <ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText>
    </PropertyGroup>
    <Error Condition="!Exists('..\packages\System.Data.SQLite.Core.1.0.109.2\build\net46\System.Data.SQLite.Core.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\System.Data.SQLite.Core.1.0.109.2\build\net46\System.Data.SQLite.Core.targets'))" />
  </Target>

Remove them, and then re-update NUGET. Also find an integrated version, otherwise PrepareForBuild, really bad mood, not green.

Binary part: SQLITE, FREEIMAGE distinguish between X86 and X64 are all bits. Dynamically loaded is preferably used. I do not like NUGET reference static best.

Guess you like

Origin blog.csdn.net/wlanye/article/details/91438882