Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
None
-
2.8.1 (rev.06), 3.0.2
-
None
-
5c0a82204 (dev)
Description
qtvsaddinbug.vcxproj:
<?xml version="1.0" encoding="utf-8"?> <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup Label="ProjectConfigurations"> <ProjectConfiguration Include="Debug|x64" /> </ItemGroup> <PropertyGroup Label="Globals"> <ProjectGuid>{3A6B184A-6563-4959-8A0F-7B40593D489A}</ProjectGuid> <Keyword>QtVS_v304</Keyword> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> <Import Project="$(QtMsBuild)\qt_defaults.props" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> <Import Project="$(QtMsBuild)\qt.props" /> <ItemGroup> <QtMoc Include="main.hpp" /> </ItemGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(QtMsBuild)\qt.targets" /> </Project>
main.hpp is empty.
msbuild qtvsaddinbug.vcxproj /p:PlatformToolset=<...> /p:QtInstallDir=<...> (started from the Visual Studio command prompt with the needed values) successfully mocs and compiles, then fails to link, which is expected as there is no code.
After doing set UseMultiToolTask=true the same invocation successfully mocs but fails to start compilation with error MSB4018: The "MultiToolTask" task failed unexpectedly.