Skip to content

Commit 3512e6b

Browse files
author
Kapil Borle
committed
Add CoreCLR target files
1 parent 74d45bd commit 3512e6b

File tree

2 files changed

+119
-0
lines changed

2 files changed

+119
-0
lines changed

Microsoft.CoreSys.CSharp.Targets

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!--
2+
***********************************************************************************************
3+
Microsoft.Windows.UI.Xaml.CSharp.targets
4+
5+
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6+
created a backup copy. Incorrect changes to this file will make it
7+
impossible to load or build your projects from the command-line or the IDE.
8+
9+
Copyright (C) Microsoft Corporation. All rights reserved.
10+
***********************************************************************************************
11+
-->
12+
13+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
14+
<PropertyGroup>
15+
<TargetFrameworkIdentifier Condition="'$(TargetFrameworkIdentifier)' == ''">.NETCore</TargetFrameworkIdentifier>
16+
<TargetFrameworkVersion Condition="'$(TargetFrameworkVersion)' == ''">v4.5</TargetFrameworkVersion>
17+
<TargetPlatformVersion Condition="'$(TargetPlatformVersion)' == ''">8.0</TargetPlatformVersion>
18+
19+
<ImplicitlyExpandTargetPlatform Condition="'$(ImplicitlyExpandTargetPlatform)' == '' ">true</ImplicitlyExpandTargetPlatform>
20+
<ImplicitlyExpandTargetFramework Condition="'$(ImplicitlyExpandTargetFramework)' == '' ">true</ImplicitlyExpandTargetFramework>
21+
<NoStdLib Condition="'$(NoStdLib)' == ''">true</NoStdLib>
22+
<UseVSHostingProcess>false</UseVSHostingProcess>
23+
24+
25+
<!-- Supress the warnings in the 1st pass so that warnings are not repeated twice -->
26+
<SuppressWarningsInPass1 Condition="'$(SuppressWarningsInPass1)' == '' ">true</SuppressWarningsInPass1>
27+
28+
</PropertyGroup>
29+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
30+
<Import Project="Microsoft.CoreSys.Common.targets" />
31+
</Project>

Microsoft.Coresys.Common.Targets

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
<!--
2+
***********************************************************************************************
3+
Microsoft.Windows.UI.Xaml.Common.targets
4+
5+
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6+
created a backup copy. Incorrect changes to this file will make it
7+
impossible to load or build your projects from the command-line or the IDE.
8+
9+
Copyright (C) Microsoft Corporation. All rights reserved.
10+
***********************************************************************************************
11+
-->
12+
13+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
14+
15+
16+
17+
<!--
18+
============================================================
19+
Properties and Targets Common to Managed .NETCore projects
20+
============================================================
21+
-->
22+
23+
<!--
24+
The ImplicitlyExpandTargetFramework target will expand all
25+
of the dll reference assemblies in the TargetFrameworkDirectory
26+
for the project and place the items into the ReferencePath itemgroup
27+
which contains resolved items.
28+
-->
29+
<PropertyGroup>
30+
<ResolveReferencesDependsOn>
31+
$(ResolveReferencesDependsOn);
32+
ImplicitlyExpandTargetFramework;
33+
ImplicitlyExpandTargetPlatform
34+
</ResolveReferencesDependsOn>
35+
36+
<ImplicitlyExpandTargetFrameworkDependsOn>
37+
$(ImplicitlyExpandTargetFrameworkDependsOn);
38+
GetReferenceAssemblyPaths
39+
</ImplicitlyExpandTargetFrameworkDependsOn>
40+
</PropertyGroup>
41+
42+
<Target Name="ImplicitlyExpandTargetFramework"
43+
Condition="'$(ImplicitlyExpandTargetFramework)' == 'true'"
44+
DependsOnTargets="$(ImplicitlyExpandTargetFrameworkDependsOn)"
45+
>
46+
<ItemGroup>
47+
<ReferenceAssemblyPaths Include="$(_TargetFrameworkDirectories)"/>
48+
<ReferencePath Include="%(ReferenceAssemblyPaths.Identity)*.dll">
49+
<WinMDFile>false</WinMDFile>
50+
<CopyLocal>false</CopyLocal>
51+
<ReferenceGroupingDisplayName>$(TargetFrameworkMonikerDisplayName)</ReferenceGroupingDisplayName>
52+
<ReferenceGrouping>$(TargetFrameworkMoniker)</ReferenceGrouping>
53+
<ResolvedFrom>ImplicitlyExpandTargetFramework</ResolvedFrom>
54+
<IsSystemReference>True</IsSystemReference>
55+
</ReferencePath>
56+
</ItemGroup>
57+
58+
<Message Importance="Low" Text="TargetMonikerDisplayName: $(TargetFrameworkMonikerDisplayName) ReferenceAssemblyPaths: @(ReferenceAssemblyPaths)"/>
59+
60+
<Message Importance="Low" Text="Including @(ReferencePath)"
61+
Condition="'%(ReferencePath.ResolvedFrom)' == 'ImplicitlyExpandTargetFramework'"/>
62+
63+
<ItemGroup>
64+
<_ResolveAssemblyReferenceResolvedFiles Include="@(ReferencePath)"
65+
Condition="'%(ReferencePath.ResolvedFrom)' == 'ImplicitlyExpandTargetFramework'"/>
66+
</ItemGroup>
67+
</Target>
68+
69+
<!--
70+
The ImplicitlyExpandTargetPlatform target will expand all
71+
of the winmd files in the windowsSDK and add them the the
72+
ReferencePath item which is the itemgroup which contains
73+
resolved items.
74+
-->
75+
<Target Name="ImplicitlyExpandTargetPlatform"
76+
Condition="'$(ImplicitlyExpandTargetPlatform)' == 'true'"
77+
>
78+
79+
<Message Importance="Low" Text="Including @(ReferencePath)"
80+
Condition="'%(ReferencePath.ResolvedFrom)' == 'ImplicitlyExpandTargetPlatform'"/>
81+
82+
<ItemGroup>
83+
<_ResolveAssemblyReferenceResolvedFiles Include="@(ReferencePath)"
84+
Condition="'%(ReferencePath.ResolvedFrom)' == 'ImplicitlyExpandTargetPlatform'"/>
85+
</ItemGroup>
86+
</Target>
87+
88+
</Project>

0 commit comments

Comments
 (0)