how to import props from "Extensions" directory

Rudolf Meier 291 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.
40,362 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.