0

I want to split the value of $(SolutionDir) in post build events in vs. My $(SolutionDir) value is copy

C:\PrakashSourceCode\Source\Lancet.Engine

I want to change it to $(SolutionDir) value to

C:\PrakashSourceCode\Source\

so how to write the command line for the same as i don,t want to hardcore the path.

4

1 に答える 1

1

$(SolutionDir)変更できません - これは Visual Studio ビルド システムの一部であり、常にソリューション ディレクトリを指します (通常、これは Visual Studio ソリューション/プロジェクト階層の最上位ディレクトリです)。

の親ディレクトリを参照したいようです$(SolutionDir)。その場合は、単に$(SolutionDir)\..1 つのディレクトリをトラバースするために使用します。

于 2013-05-20T06:12:24.397 に答える