I'm having the next problem:
I am trying to invoke a custom msbuild task from a .csproj file and I need to set a parameter (something like $(ProjectDir) ) indicating the TFS path that the project has mapped.
I don't know if it's possible or not; I couldn't find any macro in this link: http://msdn.microsoft.com/en-us/library/c02as0cs(v=vs.80).aspx
Just in case, this is the invocation from the .csproj file to my custom task:
<UsingTask TaskName="MyTask"
AssemblyFile="MyTask.dll" />
<Target Name="AfterBuild" Condition=" '$(Configuration)' == 'Test' ">
<DbBuildTask ConfigFile="$(ProjectDir)config\properties.config"
XPath="/configuration/properties/nhConnectionString"
PathTfs="........" />
</Target>
Any ideas?
Thanks in advance!