Unpack dotnet sdk zipfile and add documentation file to nupkg
[platform/core/dotnet/build-tools.git] / dotnet / sdk / 2.0.0-preview1-005700 / Microsoft.TestPlatform.targets
1 <!--\r
2 ***********************************************************************************************\r
3 Microsoft.TestPlatform.targets\r
4 \r
5 WARNING:  DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have\r
6           created a backup copy.  Incorrect changes to this file will make it\r
7           impossible to load or build your projects from the command-line or the IDE.\r
8 \r
9 Copyright (c) .NET Foundation. All rights reserved. \r
10 ***********************************************************************************************\r
11 -->\r
12 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
13   <!-- Load Microsoft.TestPlatform.Build.Tasks.dll, this can be overridden to use a different version with $(VSTestTaskAssemblyFile) -->\r
14   <PropertyGroup>\r
15     <VSTestTaskAssemblyFile Condition="$(VSTestTaskAssemblyFile) == ''">Microsoft.TestPlatform.Build.dll</VSTestTaskAssemblyFile>\r
16     <VSTestConsolePath Condition="$(VSTestConsoleFile) == ''">$([System.IO.Path]::Combine($(MSBuildThisFileDirectory),"vstest.console.dll"))</VSTestConsolePath>\r
17     <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>\r
18   </PropertyGroup>\r
19   <UsingTask TaskName="Microsoft.TestPlatform.Build.Tasks.VSTestTask" AssemblyFile="$(VSTestTaskAssemblyFile)" />\r
20   <UsingTask TaskName="Microsoft.TestPlatform.Build.Tasks.BuildLogTask" AssemblyFile="$(VSTestTaskAssemblyFile)" />\r
21 \r
22   <!--\r
23     ============================================================\r
24     Test target\r
25     Main entry point for running tests through vstest.console.exe\r
26     ============================================================\r
27   -->\r
28   <Target Name="VSTest" >\r
29     <CallTarget Condition="'$(VSTestNoBuild)' != 'true'" Targets="BuildProject" />\r
30     \r
31     <CallTarget Targets="ShowCallOfVSTestTaskWithParameter" />\r
32 \r
33     <Microsoft.TestPlatform.Build.Tasks.VSTestTask\r
34       TestFileFullPath="$(TargetPath)"\r
35       VSTestSetting="$(VSTestSetting)"\r
36       VSTestTestAdapterPath="$(VSTestTestAdapterPath)"\r
37       VSTestFramework="$(TargetFrameworkMoniker)"\r
38       VSTestPlatform="$(PlatformTarget)"\r
39       VSTestTestCaseFilter="$(VSTestTestCaseFilter)"\r
40       VSTestLogger="$(VSTestLogger)"\r
41       VSTestListTests="$(VSTestListTests)"\r
42       VSTestDiag="$(VSTestDiag)"\r
43       VSTestCLIRunSettings="$(VSTestCLIRunSettings)"\r
44       VSTestConsolePath="$(VSTestConsolePath)"\r
45       VSTestResultsDirectory="$(VSTestResultsDirectory)"\r
46     />\r
47   </Target>\r
48 \r
49   <Target Name="BuildProject">\r
50     <CallTarget Targets="ShowMsbuildWithParameter" />\r
51 \r
52     <Microsoft.TestPlatform.Build.Tasks.BuildLogTask BuildStarted="True" />\r
53     <MSBuild Projects ="$(MSBuildProjectFullPath)" />\r
54     <Microsoft.TestPlatform.Build.Tasks.BuildLogTask />\r
55 \r
56     <Message Text="Done Building project $(MSBuildProjectFullPath) for TargetFramework=$(TargetFramework)" Importance="low" />\r
57   </Target>\r
58   \r
59   <Target Name="ShowMsbuildWithParameter">\r
60     <Message Text="Building project $(MSBuildProjectFullPath) for TargetFramework=$(TargetFramework)" Importance="low"/>\r
61     <Message Text="Value passed to msbuild are..." Importance="low" />\r
62     <Message Text="Configuration = $(Configuration)" Importance="low" />\r
63     <Message Text="TargetFramework = $(TargetFramework)" Importance="low" />\r
64     <Message Text="Platform = $(PlatformTarget)" Importance="low" />\r
65     <Message Text="OutputPath = $(OutputPath)" Importance="low" />\r
66   </Target>\r
67   \r
68   <Target Name="ShowCallOfVSTestTaskWithParameter">\r
69     <Message Text="Calling task Microsoft.TestPlatform.Build.Tasks.VSTestTask with following parameter..." Importance="low" />\r
70     <Message Text="TestFileFullPath = $(TargetPath)" Importance="low" />\r
71     <Message Text="VSTestSetting = $(VSTestSetting)" Importance="low" />\r
72     <Message Text="VSTestTestAdapterPath = $(VSTestTestAdapterPath)" Importance="low" />\r
73     <Message Text="VSTestFramework = $(TargetFrameworkMoniker)" Importance="low" />\r
74     <Message Text="VSTestPlatform = $(PlatformTarget)" Importance="low" />\r
75     <Message Text="VSTestTestCaseFilter = $(VSTestTestCaseFilter)" Importance="low" />\r
76     <Message Text="VSTestLogger = $(VSTestLogger)" Importance="low" />\r
77     <Message Text="VSTestListTests = $(VSTestListTests)" Importance="low" />\r
78     <Message Text="VSTestDiag = $(VSTestDiag)" Importance="low" />\r
79     <Message Text="VSTestCLIRunSettings = $(VSTestCLIRunSettings)" Importance="low" />\r
80     <Message Text="VSTestResultsDirectory = $(VSTestResultsDirectory)" Importance="low" />\r
81     <Message Text="VSTestConsolePath = $(VSTestConsolePath)" Importance="low" />\r
82   </Target>\r
83 \r
84 </Project>\r