how to import props from "Extensions" directory

Rudolf Meier 271 Reputation points
2022-05-11T14:54:12.673+00:00

I want to import a ".props" file that I have installed in the "Extensions" directory "$(DevEnvDir)Extensions". The problem is, that when I'm building the solution not inside Visual Studio, but directly from the command line using MSBuild, then I get an error because the "DevEnvDir" is not defined.
I know that I could define it when calling MSBuild from the command line. But I try to find an other way. Is there a variable that I could use instead of DevEnvDir to import my props file that is also defined in my scenario?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,962 questions
{count} votes