зеркало из https://github.com/microsoft/CsWinRT.git
unit tests
This commit is contained in:
Родитель
c00bb52bb8
Коммит
ac027b08fe
|
@ -24,7 +24,7 @@ namespace UnitTest
|
|||
using A = IIterable<IStringable>;
|
||||
using B = IKeyValuePair<string, IAsyncOperationWithProgress</*A*/IIterable<IStringable>, float>>;
|
||||
using IInspectable = ObjectReference<WinRT.Interop.IInspectableVftbl>; // todo
|
||||
|
||||
|
||||
public class TestGuids
|
||||
{
|
||||
private static void AssertGuid<T>(string expected)
|
||||
|
|
|
@ -36,9 +36,9 @@ msbuild cswinrt.sln /p:platform=%cswinrt_platform%;configuration=%cswinrt_config
|
|||
|
||||
rem Build/Run xUnit tests, generating xml output report for Azure Devops reporting, via XunitXml.TestLogger NuGet
|
||||
echo Running cswinrt unit tests for %cswinrt_platform% %cswinrt_configuration%
|
||||
if %cswinrt_configuration% == x86 (
|
||||
set dotnet_exe="%ProgramFiles(x86)%\dotnet\dotnet.exe"
|
||||
if %cswinrt_platform% == x86 (
|
||||
set program_files="%ProgramFiles(x86)%"
|
||||
) else (
|
||||
set dotnet_exe="%ProgramFiles%\dotnet\dotnet.exe"
|
||||
set program_files="%ProgramFiles%"
|
||||
)
|
||||
%dotnet_exe% test --no-build --logger xunit;LogFilePath=test_cswinrt_unittest.xml unittest/UnitTest.csproj /nologo /m /p:platform=%cswinrt_platform%;configuration=%cswinrt_configuration%
|
||||
%program_files%\dotnet\dotnet.exe test --no-build --logger xunit;LogFilePath=test_%cswinrt_version%.xml unittest/UnitTest.csproj /nologo /m /p:platform=%cswinrt_platform%;configuration=%cswinrt_configuration%
|
|
@ -1,421 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" InitialTargets="ValidateSolutionConfiguration;ValidateToolsVersions;ValidateProjects" DefaultTargets="Build">
|
||||
<PropertyGroup>
|
||||
<MSBuildExtensionsPath32>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild</MSBuildExtensionsPath32>
|
||||
<MSBuildExtensionsPath>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild</MSBuildExtensionsPath>
|
||||
<MSBuildToolsPath32>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin</MSBuildToolsPath32>
|
||||
<MSBuildToolsPath64>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\amd64</MSBuildToolsPath64>
|
||||
<MSBuildSDKsPath>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Sdks</MSBuildSDKsPath>
|
||||
<FrameworkSDKRoot>C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\</FrameworkSDKRoot>
|
||||
<MSBuildRuntimeVersion>4.0.30319</MSBuildRuntimeVersion>
|
||||
<MSBuildFrameworkToolsPath>C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\</MSBuildFrameworkToolsPath>
|
||||
<MSBuildFrameworkToolsPath32>C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\</MSBuildFrameworkToolsPath32>
|
||||
<MSBuildFrameworkToolsPath64>C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\</MSBuildFrameworkToolsPath64>
|
||||
<MSBuildFrameworkToolsRoot>C:\WINDOWS\Microsoft.NET\Framework\</MSBuildFrameworkToolsRoot>
|
||||
<SDK35ToolsPath />
|
||||
<SDK40ToolsPath>C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools\</SDK40ToolsPath>
|
||||
<WindowsSDK80Path />
|
||||
<VsInstallRoot>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise</VsInstallRoot>
|
||||
<MSBuildToolsRoot>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild</MSBuildToolsRoot>
|
||||
<RoslynTargetsPath>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Roslyn</RoslynTargetsPath>
|
||||
<VCTargetsPath>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\</VCTargetsPath>
|
||||
<VCTargetsPath14>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\</VCTargetsPath14>
|
||||
<VCTargetsPath12>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\</VCTargetsPath12>
|
||||
<VCTargetsPath11>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\</VCTargetsPath11>
|
||||
<VCTargetsPath10>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\</VCTargetsPath10>
|
||||
<AndroidTargetsPath>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\MDD\Android\V150\</AndroidTargetsPath>
|
||||
<iOSTargetsPath>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\MDD\iOS\V150\</iOSTargetsPath>
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Any CPU</Platform>
|
||||
<AspNetConfiguration>Debug</AspNetConfiguration>
|
||||
<SolutionDir>C:\git\xlang\src\tool\cswinrt\</SolutionDir>
|
||||
<SolutionExt>.sln</SolutionExt>
|
||||
<SolutionFileName>cswinrt.sln</SolutionFileName>
|
||||
<SolutionName>cswinrt</SolutionName>
|
||||
<SolutionPath>C:\git\xlang\src\tool\cswinrt\cswinrt.sln</SolutionPath>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<CurrentSolutionConfigurationContents>
|
||||
<SolutionConfiguration xmlns="">
|
||||
<ProjectConfiguration Project="{7C374451-C217-42B8-AF1F-AEB70A3EACB4}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\TestPerf\TestPerf.csproj" BuildProjectInSolution="True">Debug|AnyCPU</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{7E3A9AB3-8CBB-4B9C-BA76-0FE7108DCAEB}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\TestComp\TestComp.vcxproj" BuildProjectInSolution="False">Debug|Win32</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{9A9F52CA-F624-43A4-B5EF-C50861F584C2}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\UnitTest\UnitTest.csproj" BuildProjectInSolution="True">Debug|AnyCPU</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{6ACFD2B2-E8AA-4CD4-AAD8-213CE8BB2637}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\cswinrt\cswinrt.vcxproj" BuildProjectInSolution="False">Debug|Win32</ProjectConfiguration>
|
||||
</SolutionConfiguration>
|
||||
</CurrentSolutionConfigurationContents>
|
||||
<NuGetRestoreTargets>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\..\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets</NuGetRestoreTargets>
|
||||
<IsRestoreTargetsFileLoaded>true</IsRestoreTargetsFileLoaded>
|
||||
<RestoreTaskAssemblyFile>NuGet.Build.Tasks.dll</RestoreTaskAssemblyFile>
|
||||
<HideWarningsAndErrors>false</HideWarningsAndErrors>
|
||||
<RestoreRecursive>true</RestoreRecursive>
|
||||
<MSBuildAllProjects>C:\git\xlang\src\tool\cswinrt\cswinrt.sln.metaproj;;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets</MSBuildAllProjects>
|
||||
<RestoreUseSkipNonexistentTargets>true</RestoreUseSkipNonexistentTargets>
|
||||
<ValidateRuntimeIdentifierCompatibility>false</ValidateRuntimeIdentifierCompatibility>
|
||||
<RestoreContinueOnError>WarnAndContinue</RestoreContinueOnError>
|
||||
<RestoreBuildInParallel>true</RestoreBuildInParallel>
|
||||
<_RestoreSolutionFileUsed>true</_RestoreSolutionFileUsed>
|
||||
<NuGetInteractive />
|
||||
<PackageDownloadSupported>true</PackageDownloadSupported>
|
||||
<_GenerateRestoreGraphProjectEntryInputProperties>
|
||||
ExcludeRestorePackageImports=true;
|
||||
_RestoreSolutionFileUsed=true;
|
||||
SolutionDir=C:\git\xlang\src\tool\cswinrt\;
|
||||
SolutionName=cswinrt;
|
||||
SolutionFileName=cswinrt.sln;
|
||||
SolutionPath=C:\git\xlang\src\tool\cswinrt\cswinrt.sln;
|
||||
SolutionExt=.sln;
|
||||
</_GenerateRestoreGraphProjectEntryInputProperties>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup />
|
||||
<ItemGroup>
|
||||
<SolutionConfiguration Include="Debug|Any CPU">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Any CPU</Platform>
|
||||
<Content>
|
||||
<SolutionConfiguration xmlns="">
|
||||
<ProjectConfiguration Project="{7C374451-C217-42B8-AF1F-AEB70A3EACB4}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\TestPerf\TestPerf.csproj" BuildProjectInSolution="True">Debug|AnyCPU</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{7E3A9AB3-8CBB-4B9C-BA76-0FE7108DCAEB}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\TestComp\TestComp.vcxproj" BuildProjectInSolution="False">Debug|Win32</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{9A9F52CA-F624-43A4-B5EF-C50861F584C2}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\UnitTest\UnitTest.csproj" BuildProjectInSolution="True">Debug|AnyCPU</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{6ACFD2B2-E8AA-4CD4-AAD8-213CE8BB2637}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\cswinrt\cswinrt.vcxproj" BuildProjectInSolution="False">Debug|Win32</ProjectConfiguration>
|
||||
</SolutionConfiguration>
|
||||
</Content>
|
||||
</SolutionConfiguration>
|
||||
<SolutionConfiguration Include="Debug|ARM">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>ARM</Platform>
|
||||
<Content>
|
||||
<SolutionConfiguration xmlns="">
|
||||
<ProjectConfiguration Project="{7C374451-C217-42B8-AF1F-AEB70A3EACB4}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\TestPerf\TestPerf.csproj" BuildProjectInSolution="True">Debug|AnyCPU</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{7E3A9AB3-8CBB-4B9C-BA76-0FE7108DCAEB}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\TestComp\TestComp.vcxproj" BuildProjectInSolution="False">Debug|Win32</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{9A9F52CA-F624-43A4-B5EF-C50861F584C2}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\UnitTest\UnitTest.csproj" BuildProjectInSolution="True">Debug|AnyCPU</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{6ACFD2B2-E8AA-4CD4-AAD8-213CE8BB2637}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\cswinrt\cswinrt.vcxproj" BuildProjectInSolution="False">Debug|Win32</ProjectConfiguration>
|
||||
</SolutionConfiguration>
|
||||
</Content>
|
||||
</SolutionConfiguration>
|
||||
<SolutionConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
<Content>
|
||||
<SolutionConfiguration xmlns="">
|
||||
<ProjectConfiguration Project="{7C374451-C217-42B8-AF1F-AEB70A3EACB4}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\TestPerf\TestPerf.csproj" BuildProjectInSolution="True">Debug|x64</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{7E3A9AB3-8CBB-4B9C-BA76-0FE7108DCAEB}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\TestComp\TestComp.vcxproj" BuildProjectInSolution="True">Debug|x64</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{9A9F52CA-F624-43A4-B5EF-C50861F584C2}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\UnitTest\UnitTest.csproj" BuildProjectInSolution="True">Debug|x64</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{6ACFD2B2-E8AA-4CD4-AAD8-213CE8BB2637}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\cswinrt\cswinrt.vcxproj" BuildProjectInSolution="True">Debug|x64</ProjectConfiguration>
|
||||
</SolutionConfiguration>
|
||||
</Content>
|
||||
</SolutionConfiguration>
|
||||
<SolutionConfiguration Include="Debug|x86">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x86</Platform>
|
||||
<Content>
|
||||
<SolutionConfiguration xmlns="">
|
||||
<ProjectConfiguration Project="{7C374451-C217-42B8-AF1F-AEB70A3EACB4}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\TestPerf\TestPerf.csproj" BuildProjectInSolution="True">Debug|x86</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{7E3A9AB3-8CBB-4B9C-BA76-0FE7108DCAEB}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\TestComp\TestComp.vcxproj" BuildProjectInSolution="True">Debug|Win32</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{9A9F52CA-F624-43A4-B5EF-C50861F584C2}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\UnitTest\UnitTest.csproj" BuildProjectInSolution="True">Debug|x86</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{6ACFD2B2-E8AA-4CD4-AAD8-213CE8BB2637}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\cswinrt\cswinrt.vcxproj" BuildProjectInSolution="True">Debug|Win32</ProjectConfiguration>
|
||||
</SolutionConfiguration>
|
||||
</Content>
|
||||
</SolutionConfiguration>
|
||||
<SolutionConfiguration Include="Release|Any CPU">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Any CPU</Platform>
|
||||
<Content>
|
||||
<SolutionConfiguration xmlns="">
|
||||
<ProjectConfiguration Project="{7C374451-C217-42B8-AF1F-AEB70A3EACB4}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\TestPerf\TestPerf.csproj" BuildProjectInSolution="True">Release|AnyCPU</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{7E3A9AB3-8CBB-4B9C-BA76-0FE7108DCAEB}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\TestComp\TestComp.vcxproj" BuildProjectInSolution="False">Release|Win32</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{9A9F52CA-F624-43A4-B5EF-C50861F584C2}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\UnitTest\UnitTest.csproj" BuildProjectInSolution="True">Release|AnyCPU</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{6ACFD2B2-E8AA-4CD4-AAD8-213CE8BB2637}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\cswinrt\cswinrt.vcxproj" BuildProjectInSolution="False">Release|Win32</ProjectConfiguration>
|
||||
</SolutionConfiguration>
|
||||
</Content>
|
||||
</SolutionConfiguration>
|
||||
<SolutionConfiguration Include="Release|ARM">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>ARM</Platform>
|
||||
<Content>
|
||||
<SolutionConfiguration xmlns="">
|
||||
<ProjectConfiguration Project="{7C374451-C217-42B8-AF1F-AEB70A3EACB4}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\TestPerf\TestPerf.csproj" BuildProjectInSolution="True">Release|AnyCPU</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{7E3A9AB3-8CBB-4B9C-BA76-0FE7108DCAEB}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\TestComp\TestComp.vcxproj" BuildProjectInSolution="False">Release|Win32</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{9A9F52CA-F624-43A4-B5EF-C50861F584C2}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\UnitTest\UnitTest.csproj" BuildProjectInSolution="True">Release|AnyCPU</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{6ACFD2B2-E8AA-4CD4-AAD8-213CE8BB2637}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\cswinrt\cswinrt.vcxproj" BuildProjectInSolution="False">Release|Win32</ProjectConfiguration>
|
||||
</SolutionConfiguration>
|
||||
</Content>
|
||||
</SolutionConfiguration>
|
||||
<SolutionConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
<Content>
|
||||
<SolutionConfiguration xmlns="">
|
||||
<ProjectConfiguration Project="{7C374451-C217-42B8-AF1F-AEB70A3EACB4}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\TestPerf\TestPerf.csproj" BuildProjectInSolution="True">Release|x64</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{7E3A9AB3-8CBB-4B9C-BA76-0FE7108DCAEB}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\TestComp\TestComp.vcxproj" BuildProjectInSolution="True">Release|x64</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{9A9F52CA-F624-43A4-B5EF-C50861F584C2}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\UnitTest\UnitTest.csproj" BuildProjectInSolution="True">Release|x64</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{6ACFD2B2-E8AA-4CD4-AAD8-213CE8BB2637}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\cswinrt\cswinrt.vcxproj" BuildProjectInSolution="True">Release|x64</ProjectConfiguration>
|
||||
</SolutionConfiguration>
|
||||
</Content>
|
||||
</SolutionConfiguration>
|
||||
<SolutionConfiguration Include="Release|x86">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x86</Platform>
|
||||
<Content>
|
||||
<SolutionConfiguration xmlns="">
|
||||
<ProjectConfiguration Project="{7C374451-C217-42B8-AF1F-AEB70A3EACB4}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\TestPerf\TestPerf.csproj" BuildProjectInSolution="True">Release|x86</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{7E3A9AB3-8CBB-4B9C-BA76-0FE7108DCAEB}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\TestComp\TestComp.vcxproj" BuildProjectInSolution="True">Release|Win32</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{9A9F52CA-F624-43A4-B5EF-C50861F584C2}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\UnitTest\UnitTest.csproj" BuildProjectInSolution="True">Release|x86</ProjectConfiguration>
|
||||
<ProjectConfiguration Project="{6ACFD2B2-E8AA-4CD4-AAD8-213CE8BB2637}" AbsolutePath="C:\git\xlang\src\tool\cswinrt\cswinrt\cswinrt.vcxproj" BuildProjectInSolution="True">Release|Win32</ProjectConfiguration>
|
||||
</SolutionConfiguration>
|
||||
</Content>
|
||||
</SolutionConfiguration>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="C:\git\xlang\src\tool\cswinrt\TestPerf\TestPerf.csproj">
|
||||
<ToolsVersion>
|
||||
</ToolsVersion>
|
||||
<SkipNonexistentProjects>False</SkipNonexistentProjects>
|
||||
<AdditionalProperties>Configuration=Debug; Platform=AnyCPU</AdditionalProperties>
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>AnyCPU</Platform>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="C:\git\xlang\src\tool\cswinrt\UnitTest\UnitTest.csproj">
|
||||
<ToolsVersion>
|
||||
</ToolsVersion>
|
||||
<SkipNonexistentProjects>False</SkipNonexistentProjects>
|
||||
<AdditionalProperties>Configuration=Debug; Platform=AnyCPU</AdditionalProperties>
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>AnyCPU</Platform>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Target Name="Restore" DependsOnTargets="_GenerateRestoreGraph">
|
||||
<RemoveDuplicates Inputs="@(_RestoreGraphEntry)">
|
||||
<Output TaskParameter="Filtered" ItemName="_RestoreGraphEntryFiltered" />
|
||||
</RemoveDuplicates>
|
||||
<RestoreTask RestoreGraphItems="@(_RestoreGraphEntryFiltered)" RestoreDisableParallel="$(RestoreDisableParallel)" RestoreNoCache="$(RestoreNoCache)" RestoreIgnoreFailedSources="$(RestoreIgnoreFailedSources)" RestoreRecursive="$(RestoreRecursive)" RestoreForce="$(RestoreForce)" HideWarningsAndErrors="$(HideWarningsAndErrors)" Interactive="$(NuGetInteractive)" RestoreForceEvaluate="$(RestoreForceEvaluate)" />
|
||||
</Target>
|
||||
<Target Name="GenerateRestoreGraphFile" DependsOnTargets="_GenerateRestoreGraph">
|
||||
<Error Condition="$(RestoreGraphOutputPath) == ''" Text="Missing RestoreGraphOutputPath property!" />
|
||||
<RemoveDuplicates Inputs="@(_RestoreGraphEntry)">
|
||||
<Output TaskParameter="Filtered" ItemName="_RestoreGraphEntryFiltered" />
|
||||
</RemoveDuplicates>
|
||||
<WriteRestoreGraphTask RestoreGraphItems="@(_RestoreGraphEntryFiltered)" RestoreGraphOutputPath="$(RestoreGraphOutputPath)" RestoreRecursive="$(RestoreRecursive)" />
|
||||
</Target>
|
||||
<Target Name="CollectPackageReferences" Returns="@(PackageReference)" />
|
||||
<Target Name="CollectPackageDownloads" Returns="@(PackageDownload)" />
|
||||
<Target Name="CollectFrameworkReferences" Returns="@(FrameworkReference)" />
|
||||
<Target Name="_LoadRestoreGraphEntryPoints" Returns="@(RestoreGraphProjectInputItems)">
|
||||
<GetRestoreSolutionProjectsTask Condition=" $(MSBuildProjectFullPath.EndsWith('.metaproj')) == 'true' AND @(RestoreGraphProjectInputItems) == '' " ProjectReferences="@(ProjectReference)" SolutionFilePath="$(MSBuildProjectFullPath)">
|
||||
<Output TaskParameter="OutputProjectReferences" ItemName="RestoreGraphProjectInputItems" />
|
||||
</GetRestoreSolutionProjectsTask>
|
||||
</Target>
|
||||
<Target Name="_FilterRestoreGraphProjectInputItems" DependsOnTargets="_LoadRestoreGraphEntryPoints" Returns="@(FilteredRestoreGraphProjectInputItems)">
|
||||
<RemoveDuplicates Inputs="@(_FilteredRestoreGraphProjectInputItemsTmp)">
|
||||
<Output TaskParameter="Filtered" ItemName="FilteredRestoreGraphProjectInputItemsWithoutDuplicates" />
|
||||
</RemoveDuplicates>
|
||||
<MsBuild Condition=" '$(RestoreUseSkipNonexistentTargets)' == 'true' " BuildInParallel="$(RestoreBuildInParallel)" Projects="@(FilteredRestoreGraphProjectInputItemsWithoutDuplicates)" Targets="_IsProjectRestoreSupported" SkipNonexistentTargets="true" Properties="$(_GenerateRestoreGraphProjectEntryInputProperties)">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="FilteredRestoreGraphProjectInputItems" />
|
||||
</MsBuild>
|
||||
<MsBuild Condition=" '$(RestoreUseSkipNonexistentTargets)' != 'true' " ContinueOnError="$(RestoreContinueOnError)" Projects="@(FilteredRestoreGraphProjectInputItemsWithoutDuplicates)" Targets="_IsProjectRestoreSupported" Properties="$(_GenerateRestoreGraphProjectEntryInputProperties)">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="FilteredRestoreGraphProjectInputItems" />
|
||||
</MsBuild>
|
||||
<WarnForInvalidProjectsTask Condition=" '$(DisableWarnForInvalidRestoreProjects)' != 'true' AND '$(HideWarningsAndErrors)' != 'true' " AllProjects="@(FilteredRestoreGraphProjectInputItemsWithoutDuplicates)" ValidProjects="@(FilteredRestoreGraphProjectInputItems)" />
|
||||
</Target>
|
||||
<Target Name="_GenerateRestoreGraph" DependsOnTargets="_FilterRestoreGraphProjectInputItems;_GetAllRestoreProjectPathItems" Returns="@(_RestoreGraphEntry)">
|
||||
<Message Text="Generating dg file" Importance="low" />
|
||||
<Message Text="%(_RestoreProjectPathItems.Identity)" Importance="low" />
|
||||
<MsBuild BuildInParallel="$(RestoreBuildInParallel)" Projects="@(_GenerateRestoreGraphProjectEntryInput)" Targets="_GenerateRestoreGraphProjectEntry" Properties="$(_GenerateRestoreGraphProjectEntryInputProperties)">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="_RestoreGraphEntry" />
|
||||
</MsBuild>
|
||||
<MsBuild BuildInParallel="$(RestoreBuildInParallel)" Projects="@(_RestoreProjectPathItems)" Targets="_GenerateProjectRestoreGraph" Properties="$(_GenerateRestoreGraphProjectEntryInputProperties)">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="_RestoreGraphEntry" />
|
||||
</MsBuild>
|
||||
</Target>
|
||||
<Target Name="_GenerateRestoreGraphProjectEntry" DependsOnTargets="_GenerateRestoreSpecs;_GenerateDotnetCliToolReferenceSpecs" Returns="@(_RestoreGraphEntry)" />
|
||||
<Target Name="_GenerateRestoreSpecs" DependsOnTargets="_GetRestoreProjectStyle" Returns="@(_RestoreGraphEntry)">
|
||||
<Message Text="Restore entry point $(MSBuildProjectFullPath)" Importance="low" />
|
||||
</Target>
|
||||
<Target Name="_GenerateDotnetCliToolReferenceSpecs" DependsOnTargets="_GetRestoreSettings" Returns="@(_RestoreGraphEntry)">
|
||||
<GetRestoreDotnetCliToolsTask Condition=" '$(RestoreDotnetCliToolReferences)' == '' OR '$(RestoreDotnetCliToolReferences)' == 'true' " ProjectPath="$(MSBuildProjectFullPath)" ToolFramework="$(DotnetCliToolTargetFramework)" RestorePackagesPath="$(_OutputPackagesPath)" RestoreFallbackFolders="$(_OutputFallbackFolders)" RestoreSources="$(_OutputSources)" RestoreConfigFilePaths="$(_OutputConfigFilePaths)" DotnetCliToolReferences="@(DotnetCliToolReference)">
|
||||
<Output TaskParameter="RestoreGraphItems" ItemName="_RestoreGraphEntry" />
|
||||
</GetRestoreDotnetCliToolsTask>
|
||||
</Target>
|
||||
<Target Name="_GetProjectJsonPath" Returns="$(_CurrentProjectJsonPath)">
|
||||
<GetRestoreProjectJsonPathTask Condition=" '$(RestoreProjectStyle)' == 'ProjectJson' OR '$(RestoreProjectStyle)' == '' " ProjectPath="$(MSBuildProjectFullPath)">
|
||||
<Output TaskParameter="ProjectJsonPath" ItemName="_CurrentProjectJsonPath" />
|
||||
</GetRestoreProjectJsonPathTask>
|
||||
</Target>
|
||||
<Target Name="_GetRestoreProjectStyle" DependsOnTargets="_GetProjectJsonPath;CollectPackageReferences" Returns="$(RestoreProjectStyle);$(PackageReferenceCompatibleProjectStyle)" />
|
||||
<Target Name="EnableIntermediateOutputPathMismatchWarning" Condition="'$(RestoreProjectStyle)' == 'PackageReference'" DependsOnTargets="_GetRestoreProjectStyle" />
|
||||
<Target Name="_GetRestoreTargetFrameworksOutput" DependsOnTargets="_GetRestoreProjectStyle" Returns="@(_RestoreTargetFrameworksOutputFiltered)">
|
||||
<GetProjectTargetFrameworksTask Condition=" '$(RestoreProjectStyle)' != 'ProjectJson' " ProjectPath="$(MSBuildProjectFullPath)" TargetFrameworks="$(TargetFrameworks)" TargetFramework="$(TargetFramework)" TargetFrameworkMoniker="$(TargetFrameworkMoniker)" TargetPlatformIdentifier="$(TargetPlatformIdentifier)" TargetPlatformVersion="$(TargetPlatformVersion)" TargetPlatformMinVersion="$(TargetPlatformMinVersion)">
|
||||
<Output TaskParameter="ProjectTargetFrameworks" ItemName="_RestoreProjectFramework" />
|
||||
</GetProjectTargetFrameworksTask>
|
||||
</Target>
|
||||
<Target Name="_GetRestoreTargetFrameworksAsItems" DependsOnTargets="_GetRestoreProjectStyle" Returns="@(_RestoreTargetFrameworkItems)" />
|
||||
<Target Name="_GetRestoreSettings" Condition=" '$(RestoreProjectStyle)' == 'PackageReference' OR '$(RestoreProjectStyle)' == 'ProjectJson' OR '$(RestoreProjectStyle)' == 'DotnetToolReference' " DependsOnTargets="_GetRestoreSettingsOverrides;_GetRestoreSettingsCurrentProject;_GetRestoreSettingsAllFrameworks" Returns="$(_OutputSources);$(_OutputPackagesPath);$(_OutputFallbackFolders);$(_OutputConfigFilePaths)">
|
||||
<GetRestoreSettingsTask ProjectUniqueName="$(MSBuildProjectFullPath)" RestoreSources="$(RestoreSources)" RestorePackagesPath="$(RestorePackagesPath)" RestoreFallbackFolders="$(RestoreFallbackFolders)" RestoreConfigFile="$(RestoreConfigFile)" RestoreRootConfigDirectory="$(RestoreRootConfigDirectory)" RestoreSolutionDirectory="$(RestoreSolutionDirectory)" RestoreSettingsPerFramework="@(_RestoreSettingsPerFramework)" RestorePackagesPathOverride="$(_RestorePackagesPathOverride)" RestoreSourcesOverride="$(_RestoreSourcesOverride)" RestoreFallbackFoldersOverride="$(_RestoreFallbackFoldersOverride)" MSBuildStartupDirectory="$(MSBuildStartupDirectory)">
|
||||
<Output TaskParameter="OutputSources" ItemName="_OutputSources" />
|
||||
<Output TaskParameter="OutputPackagesPath" ItemName="_OutputPackagesPath" />
|
||||
<Output TaskParameter="OutputFallbackFolders" ItemName="_OutputFallbackFolders" />
|
||||
<Output TaskParameter="OutputConfigFilePaths" ItemName="_OutputConfigFilePaths" />
|
||||
</GetRestoreSettingsTask>
|
||||
</Target>
|
||||
<Target Name="_GetRestoreSettingsCurrentProject" Condition=" '$(TargetFrameworks)' == '' AND '$(PackageReferenceCompatibleProjectStyle)' == 'true' " DependsOnTargets="_GetRestoreSettingsPerFramework" Returns="@(_RestoreSettingsPerFramework)" />
|
||||
<Target Name="_GetRestoreSettingsAllFrameworks" Condition=" '$(TargetFrameworks)' != '' AND '$(PackageReferenceCompatibleProjectStyle)' == 'true' " DependsOnTargets="_GetRestoreTargetFrameworksAsItems;_GetRestoreProjectStyle" Returns="@(_RestoreSettingsPerFramework)">
|
||||
<MSBuild BuildInParallel="$(RestoreBuildInParallel)" Projects="$(MSBuildProjectFullPath)" Targets="_GetRestoreSettingsPerFramework" Properties="TargetFramework=%(_RestoreTargetFrameworkItems.Identity);
 $(_GenerateRestoreGraphProjectEntryInputProperties)">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="_RestoreSettingsPerFramework" />
|
||||
</MSBuild>
|
||||
</Target>
|
||||
<Target Name="_GetRestoreSettingsPerFramework" Returns="@(_RestoreSettingsPerFramework)" />
|
||||
<Target Name="_GenerateRestoreProjectSpec" DependsOnTargets="_GetRestoreProjectStyle;_GetRestoreTargetFrameworksOutput;_GetRestoreSettings" Returns="@(_RestoreGraphEntry)">
|
||||
<ConvertToAbsolutePath Condition=" '$(PackageReferenceCompatibleProjectStyle)' == 'true' OR '$(RestoreProjectStyle)' == 'ProjectJson'" Paths="$(RestoreOutputPath)">
|
||||
<Output TaskParameter="AbsolutePaths" ItemName="RestoreOutputAbsolutePath" />
|
||||
</ConvertToAbsolutePath>
|
||||
</Target>
|
||||
<Target Name="_GenerateProjectRestoreGraph" DependsOnTargets="
 _GetRestoreProjectStyle;
 _GetRestoreTargetFrameworksOutput;
 _GenerateRestoreProjectSpec;
 _GenerateRestoreDependencies" Returns="@(_RestoreGraphEntry)" />
|
||||
<Target Name="_GenerateRestoreDependencies" DependsOnTargets="_GenerateProjectRestoreGraphAllFrameworks;_GenerateProjectRestoreGraphCurrentProject" Returns="@(_RestoreGraphEntry)" />
|
||||
<Target Name="_GenerateProjectRestoreGraphAllFrameworks" Condition=" '$(TargetFrameworks)' != '' " DependsOnTargets="_GetRestoreTargetFrameworksAsItems" Returns="@(_RestoreGraphEntry)">
|
||||
<MSBuild BuildInParallel="$(RestoreBuildInParallel)" Projects="$(MSBuildProjectFullPath)" Targets="_GenerateProjectRestoreGraphPerFramework" Properties="TargetFramework=%(_RestoreTargetFrameworkItems.Identity);
 $(_GenerateRestoreGraphProjectEntryInputProperties)">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="_RestoreGraphEntry" />
|
||||
</MSBuild>
|
||||
</Target>
|
||||
<Target Name="_GenerateProjectRestoreGraphCurrentProject" Condition=" '$(TargetFrameworks)' == '' " DependsOnTargets="_GenerateProjectRestoreGraphPerFramework" Returns="@(_RestoreGraphEntry)" />
|
||||
<Target Name="_GenerateProjectRestoreGraphPerFramework" DependsOnTargets="_GetRestoreProjectStyle;CollectPackageReferences;CollectPackageDownloads;CollectFrameworkReferences" Returns="@(_RestoreGraphEntry)">
|
||||
<GetRestoreProjectReferencesTask ProjectUniqueName="$(MSBuildProjectFullPath)" ProjectReferences="@(ProjectReference)" TargetFrameworks="$(TargetFramework)" ParentProjectPath="$(MSBuildProjectFullPath)">
|
||||
<Output TaskParameter="RestoreGraphItems" ItemName="_RestoreGraphEntry" />
|
||||
</GetRestoreProjectReferencesTask>
|
||||
<GetRestorePackageReferencesTask Condition=" '$(PackageReferenceCompatibleProjectStyle)' == 'true' " ProjectUniqueName="$(MSBuildProjectFullPath)" PackageReferences="@(PackageReference)" TargetFrameworks="$(TargetFramework)">
|
||||
<Output TaskParameter="RestoreGraphItems" ItemName="_RestoreGraphEntry" />
|
||||
</GetRestorePackageReferencesTask>
|
||||
<GetRestorePackageDownloadsTask Condition=" '$(PackageReferenceCompatibleProjectStyle)' == 'true' " ProjectUniqueName="$(MSBuildProjectFullPath)" PackageDownloads="@(PackageDownload)" TargetFrameworks="$(TargetFramework)">
|
||||
<Output TaskParameter="RestoreGraphItems" ItemName="_RestoreGraphEntry" />
|
||||
</GetRestorePackageDownloadsTask>
|
||||
<GetRestoreFrameworkReferencesTask Condition=" '$(PackageReferenceCompatibleProjectStyle)' == 'true' " ProjectUniqueName="$(MSBuildProjectFullPath)" FrameworkReferences="@(FrameworkReference)" TargetFrameworks="$(TargetFramework)">
|
||||
<Output TaskParameter="RestoreGraphItems" ItemName="_RestoreGraphEntry" />
|
||||
</GetRestoreFrameworkReferencesTask>
|
||||
</Target>
|
||||
<Target Name="_GenerateRestoreProjectPathItemsCurrentProject" Condition=" '$(TargetFrameworks)' == '' " DependsOnTargets="_GenerateRestoreProjectPathItemsPerFramework" Returns="@(_RestoreProjectPathItems)" />
|
||||
<Target Name="_GenerateRestoreProjectPathItemsPerFramework" Returns="@(_RestoreProjectPathItems)">
|
||||
<ConvertToAbsolutePath Paths="@(ProjectReference)">
|
||||
<Output TaskParameter="AbsolutePaths" ItemName="_RestoreGraphAbsoluteProjectPaths" />
|
||||
</ConvertToAbsolutePath>
|
||||
</Target>
|
||||
<Target Name="_GenerateRestoreProjectPathItems" DependsOnTargets="_GenerateRestoreProjectPathItemsAllFrameworks;_GenerateRestoreProjectPathItemsCurrentProject" Returns="@(_CurrentRestoreProjectPathItems)">
|
||||
<RemoveDuplicates Inputs="@(_RestoreProjectPathItems)">
|
||||
<Output TaskParameter="Filtered" ItemName="_CurrentRestoreProjectPathItems" />
|
||||
</RemoveDuplicates>
|
||||
</Target>
|
||||
<Target Name="_GenerateRestoreProjectPathItemsAllFrameworks" Condition=" '$(TargetFrameworks)' != '' " DependsOnTargets="_GetRestoreTargetFrameworksAsItems" Returns="@(_RestoreProjectPathItems)">
|
||||
<MSBuild Condition=" '$(RestoreUseSkipNonexistentTargets)' == 'true' " BuildInParallel="$(RestoreBuildInParallel)" Projects="$(MSBuildProjectFullPath)" Targets="_GenerateRestoreProjectPathItemsPerFramework" SkipNonexistentTargets="true" SkipNonexistentProjects="true" Properties="TargetFramework=%(_RestoreTargetFrameworkItems.Identity);
 $(_GenerateRestoreGraphProjectEntryInputProperties)">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="_RestoreProjectPathItems" />
|
||||
</MSBuild>
|
||||
<MSBuild Condition=" '$(RestoreUseSkipNonexistentTargets)' != 'true' " ContinueOnError="$(RestoreContinueOnError)" Projects="$(MSBuildProjectFullPath)" Targets="_GenerateRestoreProjectPathItemsPerFramework" Properties="TargetFramework=%(_RestoreTargetFrameworkItems.Identity);
 $(_GenerateRestoreGraphProjectEntryInputProperties)">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="_RestoreProjectPathItems" />
|
||||
</MSBuild>
|
||||
</Target>
|
||||
<Target Name="_GenerateRestoreProjectPathWalk" DependsOnTargets="_GenerateRestoreProjectPathItems" Returns="@(_RestoreProjectPathItems)">
|
||||
<MSBuild Condition=" '$(RestoreUseSkipNonexistentTargets)' == 'true' " BuildInParallel="$(RestoreBuildInParallel)" Projects="@(_CurrentRestoreProjectPathItems)" Targets="_GenerateRestoreProjectPathWalk" SkipNonexistentTargets="true" SkipNonexistentProjects="true" Properties="$(_GenerateRestoreGraphProjectEntryInputProperties)">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="_GenerateRestoreProjectPathWalkOutputs" />
|
||||
</MSBuild>
|
||||
<MSBuild Condition=" '$(RestoreUseSkipNonexistentTargets)' != 'true' " ContinueOnError="$(RestoreContinueOnError)" Projects="@(_CurrentRestoreProjectPathItems)" Targets="_GenerateRestoreProjectPathWalk" Properties="$(_GenerateRestoreGraphProjectEntryInputProperties)">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="_GenerateRestoreProjectPathWalkOutputs" />
|
||||
</MSBuild>
|
||||
<RemoveDuplicates Inputs="@(_GenerateRestoreProjectPathWalkOutputs)">
|
||||
<Output TaskParameter="Filtered" ItemName="_RestoreProjectPathItems" />
|
||||
</RemoveDuplicates>
|
||||
</Target>
|
||||
<Target Name="_GetAllRestoreProjectPathItems" DependsOnTargets="_FilterRestoreGraphProjectInputItems" Returns="@(_RestoreProjectPathItems)">
|
||||
<MsBuild Condition=" '$(RestoreUseSkipNonexistentTargets)' == 'true' " BuildInParallel="$(RestoreBuildInParallel)" Projects="@(FilteredRestoreGraphProjectInputItems)" Targets="_GenerateRestoreProjectPathWalk" SkipNonexistentTargets="true" SkipNonexistentProjects="true" Properties="$(_GenerateRestoreGraphProjectEntryInputProperties)">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="_RestoreProjectPathItemsOutputs" />
|
||||
</MsBuild>
|
||||
<MsBuild Condition=" '$(RestoreUseSkipNonexistentTargets)' != 'true' " ContinueOnError="$(RestoreContinueOnError)" Projects="@(FilteredRestoreGraphProjectInputItems)" Targets="_GenerateRestoreProjectPathWalk" Properties="$(_GenerateRestoreGraphProjectEntryInputProperties)">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="_RestoreProjectPathItemsOutputs" />
|
||||
</MsBuild>
|
||||
<RemoveDuplicates Inputs="@(_RestoreProjectPathItemsOutputs)">
|
||||
<Output TaskParameter="Filtered" ItemName="_RestoreProjectPathItemsWithoutDupes" />
|
||||
</RemoveDuplicates>
|
||||
<MsBuild Condition=" '$(RestoreUseSkipNonexistentTargets)' == 'true' " BuildInParallel="$(RestoreBuildInParallel)" Projects="@(_RestoreProjectPathItemsWithoutDupes)" Targets="_IsProjectRestoreSupported" SkipNonexistentTargets="true" SkipNonexistentProjects="true" Properties="$(_GenerateRestoreGraphProjectEntryInputProperties)">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="_RestoreProjectPathItems" />
|
||||
</MsBuild>
|
||||
<MsBuild Condition=" '$(RestoreUseSkipNonexistentTargets)' != 'true' " ContinueOnError="$(RestoreContinueOnError)" Projects="@(_RestoreProjectPathItemsWithoutDupes)" Targets="_IsProjectRestoreSupported" Properties="$(_GenerateRestoreGraphProjectEntryInputProperties)">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="_RestoreProjectPathItems" />
|
||||
</MsBuild>
|
||||
</Target>
|
||||
<Target Name="_GetRestoreSettingsOverrides" Returns="$(_RestorePackagesPathOverride);$(_RestoreSourcesOverride);$(_RestoreFallbackFoldersOverride)">
|
||||
<MsBuild Condition=" '$(RestorePackagesPath)' != '' " BuildInParallel="$(RestoreBuildInParallel)" Projects="$(MSBuildThisFileFullPath)" Targets="_GetRestorePackagesPathOverride">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="_RestorePackagesPathOverride" />
|
||||
</MsBuild>
|
||||
<MsBuild Condition=" '$(RestoreSources)' != '' " BuildInParallel="$(RestoreBuildInParallel)" Projects="$(MSBuildThisFileFullPath)" Targets="_GetRestoreSourcesOverride">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="_RestoreSourcesOverride" />
|
||||
</MsBuild>
|
||||
<MsBuild Condition=" '$(RestoreFallbackFolders)' != '' " BuildInParallel="$(RestoreBuildInParallel)" Projects="$(MSBuildThisFileFullPath)" Targets="_GetRestoreFallbackFoldersOverride">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="_RestoreFallbackFoldersOverride" />
|
||||
</MsBuild>
|
||||
</Target>
|
||||
<Target Name="_GetRestorePackagesPathOverride" Returns="$(_RestorePackagesPathOverride)" />
|
||||
<Target Name="_GetRestoreSourcesOverride" Returns="$(_RestoreSourcesOverride)" />
|
||||
<Target Name="_GetRestoreFallbackFoldersOverride" Returns="$(_RestoreFallbackFoldersOverride)" />
|
||||
<Target Name="_IsProjectRestoreSupported" Returns="@(_ValidProjectsForRestore)" />
|
||||
<Target Name="GetSolutionConfigurationContents" Outputs="$(SolutionConfigurationContents)" />
|
||||
<Target Name="ValidateProjects">
|
||||
<Message Condition=" ('$(Configuration)' == 'Debug') and ('$(Platform)' == 'Any CPU') " Text="The project "TestComp" is not selected for building in solution configuration "Debug|Any CPU"." />
|
||||
<Message Condition=" ('$(Configuration)' == 'Debug') and ('$(Platform)' == 'ARM') " Text="The project "TestComp" is not selected for building in solution configuration "Debug|ARM"." />
|
||||
<Message Condition=" ('$(Configuration)' == 'Release') and ('$(Platform)' == 'Any CPU') " Text="The project "TestComp" is not selected for building in solution configuration "Release|Any CPU"." />
|
||||
<Message Condition=" ('$(Configuration)' == 'Release') and ('$(Platform)' == 'ARM') " Text="The project "TestComp" is not selected for building in solution configuration "Release|ARM"." />
|
||||
<Message Condition=" ('$(Configuration)' == 'Debug') and ('$(Platform)' == 'Any CPU') " Text="The project "cswinrt" is not selected for building in solution configuration "Debug|Any CPU"." />
|
||||
<Message Condition=" ('$(Configuration)' == 'Debug') and ('$(Platform)' == 'ARM') " Text="The project "cswinrt" is not selected for building in solution configuration "Debug|ARM"." />
|
||||
<Message Condition=" ('$(Configuration)' == 'Release') and ('$(Platform)' == 'Any CPU') " Text="The project "cswinrt" is not selected for building in solution configuration "Release|Any CPU"." />
|
||||
<Message Condition=" ('$(Configuration)' == 'Release') and ('$(Platform)' == 'ARM') " Text="The project "cswinrt" is not selected for building in solution configuration "Release|ARM"." />
|
||||
</Target>
|
||||
<Target Name="ValidateToolsVersions">
|
||||
<Error Condition="'$(MSBuildToolsVersion)' == '2.0' and ('$(ProjectToolsVersion)' != '2.0' and '$(ProjectToolsVersion)' != '')" Text="The tools version "$(MSBuildToolsVersion)" of the solution does not support building projects with a different tools version." Code="MSB4149" HelpKeyword="MSBuild.SolutionToolsVersionDoesNotSupportProjectToolsVersion" />
|
||||
</Target>
|
||||
<Target Name="ValidateSolutionConfiguration">
|
||||
<Error Condition="('$(CurrentSolutionConfigurationContents)' == '') and ('$(SkipInvalidConfigurations)' != 'true')" Text="The specified solution configuration "$(Configuration)|$(Platform)" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default solution configuration." Code="MSB4126" HelpKeyword="MSBuild.SolutionInvalidSolutionConfiguration" />
|
||||
<Warning Condition="('$(CurrentSolutionConfigurationContents)' == '') and ('$(SkipInvalidConfigurations)' == 'true')" Text="The specified solution configuration "$(Configuration)|$(Platform)" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default solution configuration." Code="MSB4126" HelpKeyword="MSBuild.SolutionInvalidSolutionConfiguration" />
|
||||
<Message Condition="'$(CurrentSolutionConfigurationContents)' != ''" Text="Building solution configuration "$(Configuration)|$(Platform)"." />
|
||||
</Target>
|
||||
<Target Name="Build" Outputs="@(CollectedBuildOutput)">
|
||||
<MSBuild Projects="@(ProjectReference)" BuildInParallel="True" Properties="BuildingSolutionFile=true; CurrentSolutionConfigurationContents=$(CurrentSolutionConfigurationContents); SolutionDir=$(SolutionDir); SolutionExt=$(SolutionExt); SolutionFileName=$(SolutionFileName); SolutionName=$(SolutionName); SolutionPath=$(SolutionPath)" SkipNonexistentProjects="%(ProjectReference.SkipNonexistentProjects)">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="CollectedBuildOutput" />
|
||||
</MSBuild>
|
||||
</Target>
|
||||
<Target Name="Clean">
|
||||
<MSBuild Projects="@(ProjectReference->Reverse())" Targets="Clean" BuildInParallel="True" Properties="BuildingSolutionFile=true; CurrentSolutionConfigurationContents=$(CurrentSolutionConfigurationContents); SolutionDir=$(SolutionDir); SolutionExt=$(SolutionExt); SolutionFileName=$(SolutionFileName); SolutionName=$(SolutionName); SolutionPath=$(SolutionPath)" SkipNonexistentProjects="%(ProjectReference.SkipNonexistentProjects)" />
|
||||
</Target>
|
||||
<Target Name="Rebuild" Outputs="@(CollectedBuildOutput)">
|
||||
<MSBuild Projects="@(ProjectReference)" Targets="Rebuild" BuildInParallel="True" Properties="BuildingSolutionFile=true; CurrentSolutionConfigurationContents=$(CurrentSolutionConfigurationContents); SolutionDir=$(SolutionDir); SolutionExt=$(SolutionExt); SolutionFileName=$(SolutionFileName); SolutionName=$(SolutionName); SolutionPath=$(SolutionPath)" SkipNonexistentProjects="%(ProjectReference.SkipNonexistentProjects)">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="CollectedBuildOutput" />
|
||||
</MSBuild>
|
||||
</Target>
|
||||
<Target Name="Publish">
|
||||
<MSBuild Projects="@(ProjectReference)" Targets="Publish" BuildInParallel="True" Properties="BuildingSolutionFile=true; CurrentSolutionConfigurationContents=$(CurrentSolutionConfigurationContents); SolutionDir=$(SolutionDir); SolutionExt=$(SolutionExt); SolutionFileName=$(SolutionFileName); SolutionName=$(SolutionName); SolutionPath=$(SolutionPath)" SkipNonexistentProjects="%(ProjectReference.SkipNonexistentProjects)" />
|
||||
</Target>
|
||||
<Target Name="TestPerf" Outputs="@(TestPerfBuildOutput)">
|
||||
<MSBuild Condition="'%(ProjectReference.Identity)' == 'C:\git\xlang\src\tool\cswinrt\TestPerf\TestPerf.csproj'" Projects="@(ProjectReference)" BuildInParallel="True" ToolsVersion="$(ProjectToolsVersion)" Properties="Configuration=Debug; Platform=AnyCPU;BuildingSolutionFile=true; CurrentSolutionConfigurationContents=$(CurrentSolutionConfigurationContents); SolutionDir=$(SolutionDir); SolutionExt=$(SolutionExt); SolutionFileName=$(SolutionFileName); SolutionName=$(SolutionName); SolutionPath=$(SolutionPath)">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="TestPerfBuildOutput" />
|
||||
</MSBuild>
|
||||
</Target>
|
||||
<Target Name="TestPerf:Clean">
|
||||
<MSBuild Condition="'%(ProjectReference.Identity)' == 'C:\git\xlang\src\tool\cswinrt\TestPerf\TestPerf.csproj'" Projects="@(ProjectReference)" Targets="Clean" BuildInParallel="True" ToolsVersion="$(ProjectToolsVersion)" Properties="Configuration=Debug; Platform=AnyCPU;BuildingSolutionFile=true; CurrentSolutionConfigurationContents=$(CurrentSolutionConfigurationContents); SolutionDir=$(SolutionDir); SolutionExt=$(SolutionExt); SolutionFileName=$(SolutionFileName); SolutionName=$(SolutionName); SolutionPath=$(SolutionPath)" />
|
||||
</Target>
|
||||
<Target Name="TestPerf:Rebuild" Outputs="@(TestPerfBuildOutput)">
|
||||
<MSBuild Condition="'%(ProjectReference.Identity)' == 'C:\git\xlang\src\tool\cswinrt\TestPerf\TestPerf.csproj'" Projects="@(ProjectReference)" Targets="Rebuild" BuildInParallel="True" ToolsVersion="$(ProjectToolsVersion)" Properties="Configuration=Debug; Platform=AnyCPU;BuildingSolutionFile=true; CurrentSolutionConfigurationContents=$(CurrentSolutionConfigurationContents); SolutionDir=$(SolutionDir); SolutionExt=$(SolutionExt); SolutionFileName=$(SolutionFileName); SolutionName=$(SolutionName); SolutionPath=$(SolutionPath)">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="TestPerfBuildOutput" />
|
||||
</MSBuild>
|
||||
</Target>
|
||||
<Target Name="TestPerf:Publish">
|
||||
<MSBuild Condition="'%(ProjectReference.Identity)' == 'C:\git\xlang\src\tool\cswinrt\TestPerf\TestPerf.csproj'" Projects="@(ProjectReference)" Targets="Publish" BuildInParallel="True" ToolsVersion="$(ProjectToolsVersion)" Properties="Configuration=Debug; Platform=AnyCPU;BuildingSolutionFile=true; CurrentSolutionConfigurationContents=$(CurrentSolutionConfigurationContents); SolutionDir=$(SolutionDir); SolutionExt=$(SolutionExt); SolutionFileName=$(SolutionFileName); SolutionName=$(SolutionName); SolutionPath=$(SolutionPath)" />
|
||||
</Target>
|
||||
<Target Name="UnitTest" Outputs="@(UnitTestBuildOutput)">
|
||||
<MSBuild Condition="'%(ProjectReference.Identity)' == 'C:\git\xlang\src\tool\cswinrt\UnitTest\UnitTest.csproj'" Projects="@(ProjectReference)" BuildInParallel="True" ToolsVersion="$(ProjectToolsVersion)" Properties="Configuration=Debug; Platform=AnyCPU;BuildingSolutionFile=true; CurrentSolutionConfigurationContents=$(CurrentSolutionConfigurationContents); SolutionDir=$(SolutionDir); SolutionExt=$(SolutionExt); SolutionFileName=$(SolutionFileName); SolutionName=$(SolutionName); SolutionPath=$(SolutionPath)">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="UnitTestBuildOutput" />
|
||||
</MSBuild>
|
||||
</Target>
|
||||
<Target Name="UnitTest:Clean">
|
||||
<MSBuild Condition="'%(ProjectReference.Identity)' == 'C:\git\xlang\src\tool\cswinrt\UnitTest\UnitTest.csproj'" Projects="@(ProjectReference)" Targets="Clean" BuildInParallel="True" ToolsVersion="$(ProjectToolsVersion)" Properties="Configuration=Debug; Platform=AnyCPU;BuildingSolutionFile=true; CurrentSolutionConfigurationContents=$(CurrentSolutionConfigurationContents); SolutionDir=$(SolutionDir); SolutionExt=$(SolutionExt); SolutionFileName=$(SolutionFileName); SolutionName=$(SolutionName); SolutionPath=$(SolutionPath)" />
|
||||
</Target>
|
||||
<Target Name="UnitTest:Rebuild" Outputs="@(UnitTestBuildOutput)">
|
||||
<MSBuild Condition="'%(ProjectReference.Identity)' == 'C:\git\xlang\src\tool\cswinrt\UnitTest\UnitTest.csproj'" Projects="@(ProjectReference)" Targets="Rebuild" BuildInParallel="True" ToolsVersion="$(ProjectToolsVersion)" Properties="Configuration=Debug; Platform=AnyCPU;BuildingSolutionFile=true; CurrentSolutionConfigurationContents=$(CurrentSolutionConfigurationContents); SolutionDir=$(SolutionDir); SolutionExt=$(SolutionExt); SolutionFileName=$(SolutionFileName); SolutionName=$(SolutionName); SolutionPath=$(SolutionPath)">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="UnitTestBuildOutput" />
|
||||
</MSBuild>
|
||||
</Target>
|
||||
<Target Name="UnitTest:Publish">
|
||||
<MSBuild Condition="'%(ProjectReference.Identity)' == 'C:\git\xlang\src\tool\cswinrt\UnitTest\UnitTest.csproj'" Projects="@(ProjectReference)" Targets="Publish" BuildInParallel="True" ToolsVersion="$(ProjectToolsVersion)" Properties="Configuration=Debug; Platform=AnyCPU;BuildingSolutionFile=true; CurrentSolutionConfigurationContents=$(CurrentSolutionConfigurationContents); SolutionDir=$(SolutionDir); SolutionExt=$(SolutionExt); SolutionFileName=$(SolutionFileName); SolutionName=$(SolutionName); SolutionPath=$(SolutionPath)" />
|
||||
</Target>
|
||||
</Project>
|
Загрузка…
Ссылка в новой задаче