| 1 |
<!-- |
| 2 |
*********************************************************************************************** |
| 3 |
Microsoft.Portable.VisualBasic.targets |
| 4 |
|
| 5 |
Contains common properties and targets that are shared by all v4.5 Portable Library VB projects. |
| 6 |
|
| 7 |
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have |
| 8 |
created a backup copy. Incorrect changes to this file will make it |
| 9 |
impossible to load or build your projects from the command-line or the IDE. |
| 10 |
|
| 11 |
*********************************************************************************************** |
| 12 |
--> |
| 13 |
|
| 14 |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 15 |
|
| 16 |
<PropertyGroup> |
| 17 |
<NoConfig>true</NoConfig> |
| 18 |
<MyType>Empty</MyType> |
| 19 |
</PropertyGroup> |
| 20 |
|
| 21 |
<!-- Turns on VB runtime embedding if not already set and Microsoft.VisualBasic.dll does not exist in the target framework --> |
| 22 |
<Target |
| 23 |
Name="GetVBRuntime" |
| 24 |
BeforeTargets="CoreCompile" |
| 25 |
Condition="'$(VBRuntime)' == ''"> |
| 26 |
|
| 27 |
<ItemGroup> |
| 28 |
<!-- Turn TargetFrameworkDirectory (which is a property with one or more directories) into an item --> |
| 29 |
<_VBRuntimeSearchDirectories Include="$(TargetFrameworkDirectory)" /> |
| 30 |
</ItemGroup> |
| 31 |
|
| 32 |
<PropertyGroup> |
| 33 |
<_VBRuntimeFound Condition="Exists('%(_VBRuntimeSearchDirectories.Identity)Microsoft.VisualBasic.dll')">true</_VBRuntimeFound> |
| 34 |
</PropertyGroup> |
| 35 |
|
| 36 |
<PropertyGroup Condition="$(_VBRuntimeFound) != 'true'"> |
| 37 |
<VBRuntime>Embed</VBRuntime> |
| 38 |
</PropertyGroup> |
| 39 |
</Target> |
| 40 |
|
| 41 |
<PropertyGroup> |
| 42 |
<PortableEnableXamlTargets>true</PortableEnableXamlTargets> |
| 43 |
</PropertyGroup> |
| 44 |
|
| 45 |
<Import Project="Microsoft.Portable.Common.targets" /> |
| 46 |
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" /> |
| 47 |
<Import Project="..\Microsoft.Portable.Core.targets" /> |
| 48 |
|
| 49 |
</Project> |