2018-01-29 19:03:06 +00:00
|
|
|
<Project DefaultTargets="LinkNative" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2017-04-10 11:41:01 +00:00
|
|
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
|
|
|
|
|
|
|
|
<PropertyGroup>
|
2017-06-07 13:16:24 +00:00
|
|
|
<OutputType Condition="'$(OutputType)' == ''">Exe</OutputType>
|
|
|
|
<OutputPath>$(MSBuildProjectDirectory)\bin\$(Configuration)\$(Platform)\</OutputPath>
|
|
|
|
<IntermediateOutputPath>$(MSBuildProjectDirectory)\obj\$(Configuration)\$(Platform)\</IntermediateOutputPath>
|
2018-01-29 19:03:06 +00:00
|
|
|
<DebugType Condition="'$(DebugType)' == ''">portable</DebugType>
|
2017-04-10 11:41:01 +00:00
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
<CopyNuGetImplementations>false</CopyNuGetImplementations>
|
|
|
|
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
|
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
2018-01-29 19:03:06 +00:00
|
|
|
<TargetFrameworkIdentifier>.NETCoreApp</TargetFrameworkIdentifier>
|
|
|
|
<TargetFramework>netcoreapp2.0</TargetFramework>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<PackageReference Include="Microsoft.NETCore.App">
|
|
|
|
<Version>$(MicrosoftNETCoreAppPackageVersion)</Version>
|
|
|
|
</PackageReference>
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<!-- Reuse restored assets from the repro project -->
|
|
|
|
<PropertyGroup>
|
|
|
|
<RestoreOutputPath>$(IntermediateOutputRootPath)\repro</RestoreOutputPath>
|
2017-04-10 11:41:01 +00:00
|
|
|
</PropertyGroup>
|
|
|
|
|
2017-06-07 13:16:24 +00:00
|
|
|
<!--
|
|
|
|
When building a library as a reference, the returned build outputs include both the
|
|
|
|
IL assembly produced by CSC and the native obj produced by Ilc. Separate the native
|
|
|
|
object file here so it isn't passed to CSC, and instead redirect it to be picked up
|
|
|
|
by the LinkNative target.
|
|
|
|
-->
|
|
|
|
<Target Name="RemoveObjFiles" AfterTargets="ResolveProjectReferences" Condition="'$(IlcMultiModule)' == 'true'">
|
|
|
|
<ItemGroup>
|
2018-01-29 19:03:06 +00:00
|
|
|
<ObjFiles Include="@(_ResolvedProjectReferencePaths)" Condition="'%(Extension)' == '.obj' or '%(Extension)' == '.bc'" />
|
2017-06-07 13:16:24 +00:00
|
|
|
<LinkerArg Include="@(_ResolvedProjectReferencePaths)" Condition="'%(Extension)' == '.obj'" />
|
|
|
|
<IlcReference Include="@(_ResolvedProjectReferencePaths)" Condition="'%(Extension)' == '.dll'" />
|
|
|
|
<_ResolvedProjectReferencePaths Remove="@(ObjFiles)" />
|
|
|
|
</ItemGroup>
|
|
|
|
</Target>
|
|
|
|
|
2017-04-10 11:41:01 +00:00
|
|
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
|
|
|
|
|
2018-01-29 19:03:06 +00:00
|
|
|
<Import Project="$(IlcPath)\build\Microsoft.NETCore.Native.targets" />
|
2017-06-07 13:16:24 +00:00
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<CustomLinkerArg Include="$(AdditionalLinkerFlags)" />
|
|
|
|
</ItemGroup>
|
|
|
|
|
2018-01-29 19:03:06 +00:00
|
|
|
<PropertyGroup>
|
|
|
|
<DefineConstants Condition="'$(IlcMultiModule)' == 'true'">MULTIMODULE_BUILD;$(DefineConstants)</DefineConstants>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2017-06-07 13:16:24 +00:00
|
|
|
<ItemGroup>
|
|
|
|
<IlcArg Include="--targetarch=$(Platform)" />
|
2018-01-29 19:03:06 +00:00
|
|
|
<IlcArg Include="--stacktracedata" />
|
2017-06-07 13:16:24 +00:00
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
</Project>
|