Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/assembly/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio .netstandard2.1、AndroidQ和TFS版本_Visual Studio_Xamarin_Tfs_.net Standard_Android 10.0 - Fatal编程技术网

Visual studio .netstandard2.1、AndroidQ和TFS版本

Visual studio .netstandard2.1、AndroidQ和TFS版本,visual-studio,xamarin,tfs,.net-standard,android-10.0,Visual Studio,Xamarin,Tfs,.net Standard,Android 10.0,最近,我已将我的Android应用程序目标从Android 9更新为Android 10(符合Google Play要求),现在解决方案不基于TFS,出现错误: C:\Program Files\dotnet\sdk\5.0.100\sdk\Microsoft.NET.sdk\targets\Microsoft.PackageDependencyResolution.targets(241,5):错误NETSDK1005:Assets文件“…\obj\project.Assets.json”没有

最近,我已将我的Android应用程序目标从Android 9更新为Android 10(符合Google Play要求),现在解决方案不基于TFS,出现错误:

C:\Program Files\dotnet\sdk\5.0.100\sdk\Microsoft.NET.sdk\targets\Microsoft.PackageDependencyResolution.targets(241,5):错误NETSDK1005:Assets文件“…\obj\project.Assets.json”没有“netstandard2.1”的目标。确保已运行还原,并且已在项目的TargetFrameworks中包含“netstandard2.1”

解决方案中有一个库真正针对的是
netstandard2.1
,但是:

  • 我可以使用Visual Studio Community 2019 16.4.6在我的桌面上构建解决方案
  • 我可以使用Visual Studio Community 2019 16.5.1和16.8.2在TFS服务器上远程构建解决方案
  • 我无法通过TFS接口在TFS服务器上构建解决方案。在构建管道中有一个项
    build Xamarin.Android项目
    ,它使用
    C:\Program Files(x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin
    位置中的
    MSBuild
    (我认为VS在手动构建期间也应该使用此
    MSBuild
    文件)。
    MSBuild
    文件的版本为16.8.2.56705
  • 对于目标Android 9,解决方案构建没有问题
  • 原因可能是什么?提前谢谢。

    我按照建议将nuget.exe更新为最新版本,这很有帮助。但是我仍然想知道为什么没有VS更新的简单目标的更新破坏了一个构建