qt unit test build error: The "XmlPeek" task failed unexpectedly
-
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 testthen 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.
-
Hi,
Does your test contain any actual code ?
If so, try to empty it to see if it is still failing.