73 lines
3.6 KiB
XML
73 lines
3.6 KiB
XML
<Project ToolsVersion="14.0" DefaultTargets="BuildAndTest" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<Import Project="dir.props" />
|
|
|
|
<!-- required to build the projects in their specified order -->
|
|
<PropertyGroup>
|
|
<SerializeProjects>true</SerializeProjects>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup Condition="'$(DirectoryToBuild)' == ''">
|
|
<Project Include="ref.builds" />
|
|
<Project Include="shims\shims.proj" />
|
|
<Project Include="Native\native-binplace.proj" />
|
|
<Project Include="src.builds" />
|
|
<Project Include="shims\manual\*.csproj" />
|
|
<Project Include="shims\ApiCompat.proj" />
|
|
</ItemGroup>
|
|
|
|
<UsingTask TaskName="GenerateDepsJson" AssemblyFile="$(BuildToolsTaskDir)Microsoft.DotNet.Build.Tasks.dll"/>
|
|
<!-- After we build all the source libraries we need to generate a deps.json file for the shared test framework -->
|
|
<Target Name="GenerateTestSharedFrameworkDepsFile" AfterTargets="BuildAllProjects" Condition="'$(BinplaceTestSharedFramework)' == 'true'">
|
|
|
|
<ItemGroup>
|
|
<!-- This is for HostPolicy, CoreCLR and Jit dependencies to continue to remain inside of the dep.json -->
|
|
<ExceptionForDepsJson Include="microsoft.netcore.app" />
|
|
|
|
<!-- TODO: We should see about generating this from scratch instead of relying on a previous deps file as a template -->
|
|
<_sharedFrameworkDepsJson Include="$(ToolsDir)dotnetcli\shared\Microsoft.NETCore.App\*\Microsoft.NETCore.App.deps.json" />
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup>
|
|
<_OriginalDepsJsonPath>%(_sharedFrameworkDepsJson.FullPath)</_OriginalDepsJsonPath>
|
|
<_OutputTestSharedFrameworkDepsPath>$(NETCoreAppTestSharedFrameworkPath)\Microsoft.NETCore.App.deps.json</_OutputTestSharedFrameworkDepsPath>
|
|
</PropertyGroup>
|
|
|
|
<GenerateDepsJson DepsJsonPath="$(_OriginalDepsJsonPath)"
|
|
GenerateNewDepsJson="true"
|
|
RuntimeDirectory="$(NETCoreAppTestSharedFrameworkPath)"
|
|
DepsExceptions="@(ExceptionForDepsJson)"
|
|
OutputPath="$(_OutputTestSharedFrameworkDepsPath)"/>
|
|
</Target>
|
|
|
|
<ItemGroup Condition="'$(DirectoryToBuild)' != ''">
|
|
<Project Include="$(DirectoryToBuild)/**/*.csproj" />
|
|
</ItemGroup>
|
|
|
|
<Import Project="..\dir.targets" />
|
|
<Import Project="..\dir.traversal.targets" />
|
|
|
|
<Import Project="$(ToolsDir)packages.targets" Condition="Exists('$(ToolsDir)packages.targets') and '$(ImportGetNuGetPackageVersions)' != 'false'" />
|
|
<Import Project="$(ToolsDir)UpdateBuildValues.targets" Condition="Exists('$(ToolsDir)UpdateBuildValues.targets')" />
|
|
|
|
<PropertyGroup Condition="Exists('$(ToolsDir)packages.targets') and '$(ImportGetNuGetPackageVersions)' != 'false'">
|
|
<TraversalBuildDependsOn>
|
|
$(TraversalBuildDependsOn);
|
|
BuildPackages;
|
|
</TraversalBuildDependsOn>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="Exists('$(ToolsDir)toolruntime.targets')">
|
|
<TraversalBuildDependsOn>
|
|
EnsureBuildToolsRuntime;
|
|
$(TraversalBuildDependsOn)
|
|
</TraversalBuildDependsOn>
|
|
</PropertyGroup>
|
|
|
|
<!-- Generate the shared library for running ILC tests for configuration Release-x64 -->
|
|
<Target Name="GenerateSharedLibraryForILC" AfterTargets="BuildAllProjects" Condition="'$(EnableMultiFileILCTests)' == 'true'">
|
|
<Message Importance="High" Text="Generating shared library for running ILC tests." Condition="Exists('$(TestHostRootPath)\TestILC\ilc.exe')" />
|
|
<Exec Command="$(TestHostRootPath)\TestILC\ilc.exe -buildSharedAssemblies -buildType ret -frameworkPath "$(ILCFXInputFolder)"" StandardOutputImportance="Low" Condition="Exists('$(TestHostRootPath)\TestILC\ilc.exe')" />
|
|
</Target>
|
|
|
|
</Project>
|