Defining Project Paths in a Solution via Macro/Environment Variable

前端 未结 2 2150
独厮守ぢ
独厮守ぢ 2021-02-13 16:20

Is there a way to define the project file path in a solution using a user macro/environment variable? I can\'t seem to do that.

Kind of like an environment variable is u

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-13 16:37

    In .sln file use syntax "%ENV_VAR%rest_of_the_path\test.csproj"

    In .csproj file use syntax "$(ENV_VAR)rest_of_the_path\test.dll"

    That works for me, ENV_VAR is custom environment variable defined for operating system like ENV_VAR = "C:\MyPath\"

提交回复
热议问题