skip to Main Content

Visual Studio 2022 with Qt5 shows this during build after no code change:

QtMsBuildqt_vars.targets(512,5): error MSB4044: The "ReadLinesFromFile" task was not given a value for the required parameter "File".

Restart, rebuild, or change of code does not work.

2

Answers


  1. Chosen as BEST ANSWER

    Right click on the failing project, select Qt -> Convert custom build steps to Qt/MSBuild.


  2. Same problem on my VS 2019…
    I erased the directory %QtMsBuild% (on my Windows %USERPROFILE%AppDataLocalQtMsBuild) and the error disappeared.
    However, I now have Linker-Errors like LNK2001 on MyClass::qt_metacall(enum QMetaObject::Call,int,void * *)
    Sounds like something’s wrong with Qts MOC. See you maybe later for updates.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search