1. 错误1: The missing file is packages\EntityFramework.6.4.4\build\EntityFramework.props
Error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is packages\EntityFramework.6.4.4\build\EntityFramework.props.l
Project "D:\a\1\s\APC.sln" (1) is building "D:\a\1\s\APC\APC.csproj" (2) on node 1 (default targets).
D:\a\1\s\APC\APC.csproj(355,5): error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is packages\EntityFramework.6.4.4\build\EntityFramework.props.
打开*.csproj文件,删除配置节
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('packages\EntityFramework.6.4.4\build\EntityFramework.props')" Text="$([System.String]::Format('$(ErrorText)', 'packages\EntityFramework.6.4.4\build\EntityFramework.props'))" />
<Error Condition="!Exists('packages\EntityFramework.6.4.4\build\EntityFramework.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\EntityFramework.6.4.4\build\EntityFramework.targets'))" />
</Target>
2. 错误2: 明明nuget已经restore了所有包,但是还是出现这样的错误Error MC3074: The tag 'does not exist in XML namespace
打开*.csproj文件,发现packages的路径不正确
<Reference Include="WPFSharp.Globalizer, Version=1.0.6.0, Culture=neutral, PublicKeyToken=8de4abfa85fe6c31, processorArchitecture=MSIL">
<HintPath>..\packages\WPFSharp.Globalizer.1.0.6\lib\net40-client\WPFSharp.Globalizer.dll</HintPath>
</Reference>