MSBuild. How to get project path?

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
 
P

Pavel Minaev

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top