locked
Build error in Jenkins pipeline after updating VS2019 RRS feed

  • Question

  • User390343 posted

    We are using the following command to generate apk from a Xamarin Forms Android project in Jenkins pipeline. C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" /p:Configuration=Release /t:PackageForAndroid ...Android.csproj

    It's showing lots of errors like below. App.xaml.cs: error CS0012: The type 'Attribute' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.

    It was working fine till the upgrade of VS 2019 16.7.7 to make the target framework to Android 10.0.

    Friday, November 6, 2020 2:08 PM

Answers

  • User369978 posted

    Alright , if problem gets solved please update here .

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, November 10, 2020 5:42 AM

All replies

  • User369978 posted

    Did you modify code or add plugin package recently ? w

    Could you figure out which file/line causes the error ?

    Try to reinstall visual-studio as suggested in this link .

    Monday, November 9, 2020 9:24 AM
  • User390343 posted

    @ColeX All the .net standard Xamarin Forms projects are failing after VS upgrade. PCL projects are building fine. Let me try reinstalling Xamarin as it is mentioned in the link.

    Monday, November 9, 2020 2:03 PM
  • User369978 posted

    Alright , if problem gets solved please update here .

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, November 10, 2020 5:42 AM
  • User390343 posted

    Thank you @ColeX, I reinstalled the Mobile development component and restarted the machine. Now its working fine.

    Thursday, November 12, 2020 4:43 AM