Azure Pipeline build Error

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>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值