Cообщество разработчиков на платформе Microsoft > Форумы > MSBuild > Any change in the processing of Exists() between 2.0 and 3.5
Задайте вопросЗадайте вопрос
 

ОтвеченоAny change in the processing of Exists() between 2.0 and 3.5

  • 21 июля 2008 г. 15:32GaelFraiteur Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     
    Consider an Exist function on an Import element, for instance:

    <Import Project="PostSharp-Samples-Src.targets" Condition="Exists('PostSharp-Samples-Src.targets')"/>


    Now suppose this Import is in a .targets file, i.e. it is imported for, say, a .csproj, that it in a different directory as the .targets file.

    In 2.0, the argument of the Exist method is resolved relatively to the directory of the .targets file, which is the only meaningful to process relative paths in .targets files. However, in 3.5, the same technique (and actually the same code) does not work.

    Can anyone give some explanation about this?

    Thanks,

    -Gael


    Gael Fraiteur -- postsharp.org

Ответы

Все ответы