Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qt unit test build error: The "XmlPeek" task failed unexpectedly
Forum Updated to NodeBB v4.3 + New Features

qt unit test build error: The "XmlPeek" task failed unexpectedly

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 66 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Fen_seven
    wrote last edited by
    #1

    Hello,

    I'm new to Qt and qt unit test.

    I created qt unit test project by vistual studio -> add new project -> Qt Test Application..
    created a test file -> include a header file from the target project -> wrote a simple test

    then I got build error that I have no clue how to fix

    error message: The "XmlPeek" task failed unexpectedly.

    output:
    error MSB4018: The "XmlPeek" task failed unexpectedly.
    error MSB4018: System.NullReferenceException: Object reference not set to an instance of an object.
    error MSB4018: at Microsoft.Build.Tasks.XmlPeek.Execute()

    The error refer to qt_vars.targets on the line
    <XmlPeek XmlContent="$(QtVarsData)" Query="/msbuild:Project/msbuild:PropertyGroup/*" Namespaces="<Namespace Prefix='msbuild' Uri='http://schemas.microsoft.com/developer/msbuild/2003' />">

    I searched in internet but can not find solution. Can someone help me please? Thank you in advance.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote last edited by
      #2

      Hi,

      Does your test contain any actual code ?
      If so, try to empty it to see if it is still failing.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved