2013-05-01 1 views

답변

2

당신은 컴파일 시간 동안 'MSBuildProjectFullPath'속성을 평가하여 현재 프로젝트 파일의 경로를 찾을 수 있습니다

public override void CompileTimeInitialize(MethodBase method, AspectInfo aspectInfo) 
{ 
    string projectPath = 
     PostSharpEnvironment.CurrentProject 
      .EvaluateExpression("{$MSBuildProjectFullPath}"); 
} 

다른 PostSharp 속성의 목록이 documentation page에서 찾을 수 있습니다.

+0

친절하게 고마워, 그게 내가 필요한거야. – Cerebrate