Build Failed when building with the NuGet properties in VB project

eoflaoevicecity's Avatar

eoflaoevicecity

05 Sep, 2019 06:43 PM

Since commit 4632e4e1, AppVeyor CI is unable to build the package which has the NuGet properties inside the project for the building target package. I have Visual Studio 2019, version 16.2, and it builds successfully. However on the CI, it seems to be using older version, judging by logs shown:

Build started
git clone -q -n --branch=v0.0.7.12-alpha https://github.com/EoflaOE/Kernel-Simulator.git C:\projects\kernel-simulator
git checkout -qf v0.0.7.12-alpha
msbuild "C:\projects\kernel-simulator\Kernel Simulator.sln" /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
Microsoft (R) Build Engine version 14.0.25420.1 <--- Visual Studio 2015
Copyright (C) Microsoft Corporation. All rights reserved.
C:\projects\kernel-simulator\Kernel Simulator\Kernel Simulator.vbproj(195,56): error MSB4066: The attribute "Version" in element <PackageReference> is unrecognized.
Command exited with code 1
Build URL: https://ci.appveyor.com/project/EoflaOE/kernel-simulator/branch/master
GitHub URL: https://github.com/EoflaOE/Kernel-Simulator

If any more information is needed, let me know.

  1. Support Staff 1 Posted by Owen McDonnell on 05 Sep, 2019 09:39 PM

    Owen McDonnell's Avatar

    We experienced a problem with one of our servers that handles nuget feeds earlier. Is this problem still occurring?

  2. 2 Posted by eoflaoevicecity on 06 Sep, 2019 06:38 AM

    eoflaoevicecity's Avatar

    Yes. It still has an issue to now in a new build. Apparently, it's a parsing error:

    Build started
    git clone -q --branch=master https://github.com/EoflaOE/Kernel-Simulator.git C:\projects\kernel-simulator
    git checkout -qf eff52fff09487a95a914cdd5999a76c46ed2d145
    msbuild "C:\projects\kernel-simulator\Kernel Simulator.sln" /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
    Microsoft (R) Build Engine version 14.0.25420.1
    Copyright (C) Microsoft Corporation. All rights reserved.
    C:\projects\kernel-simulator\Kernel Simulator\Kernel Simulator.vbproj(195,56): error MSB4066: The attribute "Version" in element <PackageReference> is unrecognized.
    Command exited with code 1
    
    The last line on the below code which was causing issues, but the first three packages parse fine. Maybe old MSBuild can't recognize the syntax like shown on the last line?
    186    <PackageReference Include="FluentFTP">
    187      <Version>27.0.3</Version>
    188    </PackageReference>
    189    <PackageReference Include="MadMilkman.Ini">
    190      <Version>1.0.6</Version>
    191    </PackageReference>
    192    <PackageReference Include="Newtonsoft.Json">
    193      <Version>12.0.2</Version>
    194    </PackageReference>
    195    <PackageReference Include="NuGet.Build.Tasks.Pack" Version="5.2.0" />
    Err                                                       ^^^^^^^^^^^^^^^
    
  3. Support Staff 3 Posted by Owen McDonnell on 06 Sep, 2019 11:38 PM

    Owen McDonnell's Avatar

    Right now you are using the default build image which is Visual Studio 2015. Can you try a newer image (either VS2017 or VS2019).

  4. 4 Posted by eoflaoevicecity on 07 Sep, 2019 05:11 AM

    eoflaoevicecity's Avatar

    Thanks! I have changed the build image to VS2019, and now the project goes on building.

  5. eoflaoevicecity closed this discussion on 07 Sep, 2019 05:11 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac