Building VC ++ project with Qt via MsBuild as system user
-
Hi,
i have a problem to build new Qt projects (https://www.qt.io/blog/2018/01/24/qt-visual-studio-new-approach-based-msbuild), via MsBuild utility, when it runs under system user. It returns error:
D:\Work\Wecko\QtMsBuild\qt_vars.targets(68,5): error : There's no Qt version assigned to project _project_server_base.vcxproj for configuration Release/x64. [D:\WORK\Wecko\Projects\Comms_project_server_base_project_server_base.vcxproj]
D:\Work\Wecko\QtMsBuild\qt_vars.targets(68,5): error : Please set a Qt installation in 'Project|Properties|Configuration Properties|Qt Project Settings|Qt Installation'. [D:\WORK\Wecko\Projects\Comms_project_server_base_project_server_base.vcxproj]This variable is set up in project, as alias: Qt5.14.2_2017_64
Visual studio: 2017
Qt 5.14.2
%QTDIR% - is setted up as env. variable for system
%QtMsBuild% - is setted up as env. variable for system, outside of user folder, and can be seen
Qt binaries are added to system %PATH% env variable as %QTDIR%\binThe with Qt assigned the old way, are building fine...
Whenever i have cmd line as standard user, it works fine, even the new way Qt projects.
Thanks for any ideas,
Martin