Skip to content

Instantly share code, notes, and snippets.

@ericstj
Created April 21, 2016 16:19
Show Gist options
  • Save ericstj/b40dd3846c3faec5ea1ba55fce64d1f8 to your computer and use it in GitHub Desktop.
Save ericstj/b40dd3846c3faec5ea1ba55fce64d1f8 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<OutputPath>DTAR_08E86330_4835_4B5C_9E5A_61F37AE1A077_DTAR</OutputPath>
<TargetFrameworkIdentifier>.NETCore</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
<TargetFrameworkProfile></TargetFrameworkProfile>
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion>10.0</TargetPlatformVersion>
<FrameworkRegistryBase></FrameworkRegistryBase>
<ProcessorArchitecture>msil</ProcessorArchitecture>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<!-- Tell DTAR to read the @(Reference) items from our nuget packages -->
<DTARUseReferencesFromProject>true</DTARUseReferencesFromProject>
<!-- Ensure we use .NETCore,Version=v5.0 for resolution since that is what is in the project.json -->
<NuGetTargetMoniker>.NETCore,Version=v5.0</NuGetTargetMoniker>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'ARM'">
<PlatformTarget>ARM</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'x64'">
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'x86'">
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition="'$(GlobalDTARTargetsImport)' == '' or !Exists('$(GlobalDTARTargetsImport)')">
<GlobalDTARTargetsImport>$(MSBuildToolsPath)\Microsoft.Common.targets</GlobalDTARTargetsImport>
</PropertyGroup>
<Target Name="PrepareForResolveNuGetPackageAssets">
<ItemGroup>
<_ProjectLockJsonDirectoryRoots Include="$(TargetFrameworkDirectory)" />
</ItemGroup>
<PropertyGroup>
<!-- This project file content is copied to another directory when consumed by VS,
make sure they can still find the Project.lock.json -->
<ProjectLockFile Condition="Exists('%(_ProjectLockJsonDirectoryRoots.Identity)project.lock.json')">%(_ProjectLockJsonDirectoryRoots.Identity)project.lock.json</ProjectLockFile>
<!-- This project may be run before a restore has been done, so resolve from the
pre-installed package location -->
<NugetPackagesDirectory>$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\NuGet\Repository', 'NETCoreSDK', null, RegistryView.Registry32, RegistryView.Default))</NugetPackagesDirectory>
</PropertyGroup>
</Target>
<PropertyGroup>
<GlobalDesignTimeResolveAssemblyReferencesDependsOn>
GetFrameworkPaths;
GetReferenceAssemblyPaths;
PrepareForResolveNuGetPackageAssets;
ResolveAssemblyReferences;
</GlobalDesignTimeResolveAssemblyReferencesDependsOn>
</PropertyGroup>
<Target
Name="GlobalDesignTimeResolveAssemblyReferences"
DependsOnTargets="$(GlobalDesignTimeResolveAssemblyReferencesDependsOn)" />
<Import Project="$(GlobalDTARTargetsImport)" />
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment