2 ***********************************************************************************************
\r
3 Microsoft.Portable.VisualBasic.targets
\r
5 Contains common properties and targets that are shared by all v4.5 Portable Library VB projects.
\r
7 WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
\r
8 created a backup copy. Incorrect changes to this file will make it
\r
9 impossible to load or build your projects from the command-line or the IDE.
\r
11 Copyright (C) Microsoft Corporation. All rights reserved.
\r
12 ***********************************************************************************************
\r
15 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
\r
18 <NoConfig>true</NoConfig>
\r
19 <MyType>Empty</MyType>
\r
22 <!-- Turns on VB runtime embedding if not already set and Microsoft.VisualBasic.dll does not exist in the target framework -->
\r
25 BeforeTargets="CoreCompile"
\r
26 Condition="'$(VBRuntime)' == ''">
\r
29 <!-- Turn TargetFrameworkDirectory (which is a property with one or more directories) into an item -->
\r
30 <_VBRuntimeSearchDirectories Include="$(TargetFrameworkDirectory)" />
\r
34 <_VBRuntimeFound Condition="Exists('%(_VBRuntimeSearchDirectories.Identity)Microsoft.VisualBasic.dll')">true</_VBRuntimeFound>
\r
37 <PropertyGroup Condition="$(_VBRuntimeFound) != 'true'">
\r
38 <VBRuntime>Embed</VBRuntime>
\r
42 <Import Project="Microsoft.Portable.Common.targets" />
\r
43 <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
\r
44 <Import Project="..\Microsoft.Portable.Core.targets" />
\r