MSBuild. How to get project path?

  • Thread starter Thread starter shapper
  • Start date Start date
S

shapper

Hello,

I am using the following in MSBuild to define a path on the output:

<JQueryPluginsOutput>$(OutputPath)\Test\</JQueryPluginsOutput>

Then I have something like:

<JQueryPluginsInput Include=".\__Development\Scripts\Plugin\*.js"/>

This is not working. Is there a way to get the path of the project
that is going to be build like I use $(OutputPath) for the output?

Thanks,
Miguel
 
Hello,

I am using the following in MSBuild to define a path on the output:

<JQueryPluginsOutput>$(OutputPath)\Test\</JQueryPluginsOutput>

Then I have something like:

<JQueryPluginsInput Include=".\__Development\Scripts\Plugin\*.js"/>

This is not working. Is there a way to get the path of the project
that is going to be build like I use $(OutputPath) for the output?

$(MSBuildProjectDirectory)

In general, see http://msdn.microsoft.com/en-us/library/ms164309.aspx
for the full list.
 
Back
Top