1
我在csproj中有以下Import
。 如何在道具的這一點找到Variable
的價值?瞭解msbuild:打印變量值
<Import Project="<path_to_abc>\$(Variable)\abc.props>"
Condition=" '$(Variable)' != '' "
/>
我得到建立自己的錯誤是:
can not find props files : `<path_to_abc>\\abc.props`
我怎麼能看到的Variable
這裏的價值? 如果我把Message
放在csproj上面Import
,我應該給什麼目標依賴項?
<Target Name="PrintInfo" BeforeTargets="BeforeBuild">
<Message Text="'$(Variable)' $(Variable.length) " />
</Target>
給我'' 0
。
但是,是因爲BeforeBuild
?
msbuild是如何工作的? 是否在先來先處理之前和之後處理所有屬性? 然後,如果它處理Targets
,它是否打印當前時間的值?
如何在評估道具時看到放入了什麼值?