Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Is there a proper location to ask questions about the VS plugin?



  • I've got the latest plugin in Visual Studio 2015, and I've configured Visual Studio to have two separate Qt locations - one (the default) that points to the msvc2015_x64 installation, and the other that points to the msvc2015 installation (x86)

    If you don't store the user file generated when you first create the solution/project files, and then git clone the repo with that project to a new location, it appears that the Qt VS plugin gets triggered at some point during the build and the plugin creates a new *.user option file for the project, but it does not do this correctly.

    It creates a broken user option file that has two correct entries (release|debug for the default - in this case x64 platform) and two incorrect entries (release|debug for the x86 platform.)

    This is the *.vcxproj.user file that gets generated by the addin:

    <?xml version="1.0" encoding="utf-8"?>
    <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
      <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
        <LocalDebuggerEnvironment>PATH=$(QTDIR)\bin%3b$(PATH)</LocalDebuggerEnvironment>
      </PropertyGroup>
      <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
        <LocalDebuggerEnvironment>PATH=$(QTDIR)\bin%3b$(PATH)</LocalDebuggerEnvironment>
      </PropertyGroup>
      <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
        <QTDIR>C:\Qt\5.11.1\msvc2015_64</QTDIR>
        <LocalDebuggerEnvironment>PATH=$(QTDIR)\bin%3b$(PATH)</LocalDebuggerEnvironment>
      </PropertyGroup>
      <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
        <QTDIR>C:\Qt\5.11.1\msvc2015_64</QTDIR>
        <LocalDebuggerEnvironment>PATH=$(QTDIR)\bin%3b$(PATH)</LocalDebuggerEnvironment>
      </PropertyGroup>
    </Project>
    

    Note the missing property from the x86 entries:

    <QTDIR>C:\Qt\5.11.1\msvc2015</QTDIR>
    

    I could, of course, be using the plugin incorrectly, but it doesn't seem so.

    Is this just something to report as a bug without discussion?

    Thanks


Log in to reply