Friday, April 3, 2015

MSBuild Property Functions 호출하기

MSBuild 4.0에서는 프로퍼티(그러니까 문자열)에 대해서 함수를 호출하여 특정 기능을 수행할수 있다.
예를 들어 문자열을 substring한다던가 하는 기능을 task를 따로 만들지 않고서도 가능하다.
특정 네임스페이스에서 호출할 때는 다음과 같이 한다.
$([Namespace.Type]::Method(..parameters…))
$([Namespace.Type]::Property)
$([Namespace.Type]::set_Property(value))

그리고 특정 프로퍼티에 대한 호출은 다음과 같이 한다.
$(property.Method(..parameters...))
$(property.Property)
$(property.set_Property(value))

http://blogs.msdn.com/b/visualstudio/archive/2010/04/02/msbuild-property-functions.aspx

No comments:

Post a Comment