%PDF- %PDF-
Direktori : /lib/dotnet/sdk/8.0.117/ |
Current File : //lib/dotnet/sdk/8.0.117/Microsoft.TestPlatform.targets |
<!-- *********************************************************************************************** Microsoft.TestPlatform.targets WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have created a backup copy. Incorrect changes to this file will make it impossible to load or build your projects from the command-line or the IDE. Copyright (c) .NET Foundation. All rights reserved. *********************************************************************************************** --> <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <!-- Load Microsoft.TestPlatform.Build.Tasks.dll, this can be overridden to use a different version with $(VSTestTaskAssemblyFile) --> <PropertyGroup> <VSTestTaskAssemblyFile Condition="$(VSTestTaskAssemblyFile) == ''">Microsoft.TestPlatform.Build.dll</VSTestTaskAssemblyFile> <VSTestConsolePath Condition="$(VSTestConsolePath) == ''">$([System.IO.Path]::Combine($(MSBuildThisFileDirectory),"vstest.console.dll"))</VSTestConsolePath> </PropertyGroup> <UsingTask TaskName="Microsoft.TestPlatform.Build.Tasks.VSTestTask" AssemblyFile="$(VSTestTaskAssemblyFile)" /> <UsingTask TaskName="Microsoft.TestPlatform.Build.Tasks.VSTestLogsTask" AssemblyFile="$(VSTestTaskAssemblyFile)" /> <!-- ============================================================ Test target Main entry point for running tests through vstest.console.exe ============================================================ --> <Target Name="VSTest" DependsOnTargets="ShowInfoMessageIfProjectHasNoIsTestProjectProperty"> <CallTarget Condition="'$(VSTestNoBuild)' != 'true' AND '$(IsTestProject)' == 'true'" Targets="BuildProject" /> <CallTarget Targets="ShowCallOfVSTestTaskWithParameter" /> <Microsoft.TestPlatform.Build.Tasks.VSTestTask TestFileFullPath="$(TargetPath)" VSTestSetting="$([MSBuild]::ValueOrDefault($(VSTestSetting), '$(RunSettingsFilePath)'))" VSTestTestAdapterPath="$(VSTestTestAdapterPath)" VSTestFramework="$(TargetFrameworkMoniker)" VSTestPlatform="$(PlatformTarget)" VSTestTestCaseFilter="$(VSTestTestCaseFilter)" VSTestLogger="$(VSTestLogger)" VSTestListTests="$(VSTestListTests)" VSTestDiag="$(VSTestDiag)" VSTestCLIRunSettings="$(VSTestCLIRunSettings)" VSTestConsolePath="$(VSTestConsolePath)" VSTestResultsDirectory="$(VSTestResultsDirectory)" VSTestVerbosity="$(VSTestVerbosity)" VSTestCollect="$(VSTestCollect)" VSTestBlame="$(VSTestBlame)" VSTestBlameCrash="$(VSTestBlameCrash)" VSTestBlameCrashDumpType="$(VSTestBlameCrashDumpType)" VSTestBlameCrashCollectAlways="$(VSTestBlameCrashCollectAlways)" VSTestBlameHang="$(VSTestBlameHang)" VSTestBlameHangDumpType="$(VSTestBlameHangDumpType)" VSTestBlameHangTimeout="$(VSTestBlameHangTimeout)" VSTestTraceDataCollectorDirectoryPath="$(TraceDataCollectorDirectoryPath)" VSTestArtifactsProcessingMode="$(VSTestArtifactsProcessingMode)" VSTestSessionCorrelationId="$(VSTestSessionCorrelationId)" VSTestNoLogo="$(VSTestNoLogo)" Condition="'$(IsTestProject)' == 'true'" /> </Target> <Target Name="ShowInfoMessageIfProjectHasNoIsTestProjectProperty" Condition="'$(IsTestProject)' == ''"> <Microsoft.TestPlatform.Build.Tasks.VSTestLogsTask LogType="NoIsTestProjectProperty" ProjectFilePath="$(MSBuildProjectFullPath)" /> </Target> <Target Name="BuildProject"> <CallTarget Targets="ShowMsbuildWithParameter" /> <Microsoft.TestPlatform.Build.Tasks.VSTestLogsTask LogType="BuildStarted" /> <MSBuild Projects ="$(MSBuildProjectFullPath)" /> <Microsoft.TestPlatform.Build.Tasks.VSTestLogsTask LogType="BuildCompleted" /> <Message Text="Done Building project $(MSBuildProjectFullPath) for TargetFramework=$(TargetFramework)" Importance="low" /> </Target> <Target Name="ShowMsbuildWithParameter"> <Message Text="Building project $(MSBuildProjectFullPath) for TargetFramework=$(TargetFramework)" Importance="low"/> <Message Text="Value passed to msbuild are..." Importance="low" /> <Message Text="Configuration = $(Configuration)" Importance="low" /> <Message Text="TargetFramework = $(TargetFramework)" Importance="low" /> <Message Text="Platform = $(PlatformTarget)" Importance="low" /> <Message Text="OutputPath = $(OutputPath)" Importance="low" /> </Target> <Target Name="ShowCallOfVSTestTaskWithParameter"> <Message Text="Calling task Microsoft.TestPlatform.Build.Tasks.VSTestTask with following parameter..." Importance="low" /> <Message Text="TestFileFullPath = $(TargetPath)" Importance="low" /> <Message Text="VSTestSetting = $(VSTestSetting)" Importance="low" /> <Message Text="VSTestTestAdapterPath = $(VSTestTestAdapterPath)" Importance="low" /> <Message Text="VSTestFramework = $(TargetFrameworkMoniker)" Importance="low" /> <Message Text="VSTestPlatform = $(PlatformTarget)" Importance="low" /> <Message Text="VSTestTestCaseFilter = $(VSTestTestCaseFilter)" Importance="low" /> <Message Text="VSTestLogger = $(VSTestLogger)" Importance="low" /> <Message Text="VSTestListTests = $(VSTestListTests)" Importance="low" /> <Message Text="VSTestDiag = $(VSTestDiag)" Importance="low" /> <Message Text="VSTestCLIRunSettings = $(VSTestCLIRunSettings)" Importance="low" /> <Message Text="VSTestResultsDirectory = $(VSTestResultsDirectory)" Importance="low" /> <Message Text="VSTestConsolePath = $(VSTestConsolePath)" Importance="low" /> <Message Text="VSTestVerbosity = $(VSTestVerbosity)" Importance="low" /> <Message Text="VSTestCollect = $(VSTestCollect)" Importance="low" /> <Message Text="VSTestBlame = $(VSTestBlame)" Importance="low" /> <Message Text="VSTestTraceDataCollectorDirectoryPath = $(TraceDataCollectorDirectoryPath)" Importance="low" /> <Message Text="VSTestNoLogo = $(VSTestNoLogo)" Importance="low" /> </Target> </Project>