summaryrefslogtreecommitdiff
path: root/tests/src/dir.targets
diff options
context:
space:
mode:
authordotnet-bot <dotnet-bot@microsoft.com>2015-01-30 14:14:42 -0800
committerdotnet-bot <dotnet-bot@microsoft.com>2015-01-30 14:14:42 -0800
commitef1e2ab328087c61a6878c1e84f4fc5d710aebce (patch)
treedee1bbb89e9d722e16b0d1485e3cdd1b6c8e2cfa /tests/src/dir.targets
downloadcoreclr-ef1e2ab328087c61a6878c1e84f4fc5d710aebce.tar.gz
coreclr-ef1e2ab328087c61a6878c1e84f4fc5d710aebce.tar.bz2
coreclr-ef1e2ab328087c61a6878c1e84f4fc5d710aebce.zip
Initial commit to populate CoreCLR repo
[tfs-changeset: 1407945]
Diffstat (limited to 'tests/src/dir.targets')
-rw-r--r--tests/src/dir.targets58
1 files changed, 58 insertions, 0 deletions
diff --git a/tests/src/dir.targets b/tests/src/dir.targets
new file mode 100644
index 0000000000..b8b1048a0d
--- /dev/null
+++ b/tests/src/dir.targets
@@ -0,0 +1,58 @@
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+
+ <PropertyGroup Condition="'$(TargetFrameworkVersion)' != '' and '$(TargetFrameworkProfile)' != ''">
+ <TargetingPortable>true</TargetingPortable>
+ </PropertyGroup>
+
+ <!-- Setup the default target for projects not already explicitly targeting portable -->
+ <PropertyGroup Condition="'$(TargetingPortable)' != 'true'">
+ <!-- Setting a default portable profile, although nothing should resolve from there as we BuildProjectDir to use the pacakge refs -->
+ <TargetPlatformIdentifier>Portable</TargetPlatformIdentifier>
+ <TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
+ <TargetFrameworkVersion Condition="'$(TargetFrameworkVersion)' == ''">v4.5</TargetFrameworkVersion>
+ <TargetFrameworkProfile Condition="'$(TargetFrameworkProfile)' == ''">Profile7</TargetFrameworkProfile>
+ <TargetFrameworkMonikerDisplayName>.NET Portable Subset</TargetFrameworkMonikerDisplayName>
+ <ImplicitlyExpandTargetFramework Condition="'$(ImplicitlyExpandTargetFramework)' == ''">false</ImplicitlyExpandTargetFramework>
+
+ <AssemblySearchPaths>
+ {HintPathFromItem};
+ $(OutDir);
+ {RawFileName};
+ </AssemblySearchPaths>
+ <!-- For our projects we don't BuildProjectDir to resolve from the usual paths for now only hint paths and output directory
+ {CandidateAssemblyFiles};
+ $(ReferencePath);
+ {TargetFrameworkDirectory};
+ {Registry:$(FrameworkRegistryBase),$(TargetFrameworkVersion),$(AssemblyFoldersSuffix)$(AssemblyFoldersExConditions)};
+ -->
+ </PropertyGroup>
+
+ <!-- Need to add references to the mscorlib design-time facade for some old-style portable dependencies like xunit -->
+ <Target Name="AddDesignTimeFacadeReferences"
+ Condition="'$(TargetingPortable)' != 'true'"
+ BeforeTargets="ResolveReferences"
+ DependsOnTargets="GetReferenceAssemblyPaths"
+ >
+ <ItemGroup>
+ <PossibleTargetFrameworks Include="$(_TargetFrameworkDirectories)" />
+ <ReferencePath Include="%(PossibleTargetFrameworks.Identity)mscorlib.dll" />
+ </ItemGroup>
+ </Target>
+
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
+
+ <Import Project="$(ToolsDir)packageresolve.targets" Condition="Exists('$(ToolsDir)packageresolve.targets')" />
+
+ <Import Project="$(ToolsDir)sign.targets" Condition="Exists('$(ToolsDir)sign.targets')" />
+
+ <Import Project="CLRTest.Execute.targets" />
+ <Target Name="CreateExecuteScript"
+ AfterTargets="Build"
+ Condition="'$(GenerateRunScript)' != 'false'"
+ DependsOnTargets="GenerateExecutionScriptsInternal" />
+
+<PropertyGroup>
+ <OutDir>$(BaseOutputPathWithConfig)$(BuildProjectRelativeDir)\</OutDir>
+</PropertyGroup>
+
+</Project>