csoltenborn / GoogleTestAdapter

Visual studio extension that adds support for the C++ testing framework Google Test.
Other
143 stars 100 forks source link

Specify environment variable in .runsettings PathExtension #357

Open ix07 opened 5 months ago

ix07 commented 5 months ago

How can I use an environment variable in the "PathExtension"-property in a "runsettings"-file?

This works:

    <GoogleTestAdapterSettings>
        <SolutionSettings>
            <Settings>
                <PathExtension>D:\LIB\QT\5.15.2\msvc2019\bin</PathExtension>
            </Settings>
        </SolutionSettings>
    </GoogleTestAdapterSettings>

This doesn't:

    <GoogleTestAdapterSettings>
        <SolutionSettings>
            <Settings>
                <PathExtension>%QTDIR%\bin</PathExtension>
            </Settings>
        </SolutionSettings>
    </GoogleTestAdapterSettings>

Thanks!