summaryrefslogtreecommitdiff
path: root/packages/microsoft.dotnet.buildtools/2.1.0-rc1-03006-01/lib/ReferenceAssemblies.targets
diff options
context:
space:
mode:
Diffstat (limited to 'packages/microsoft.dotnet.buildtools/2.1.0-rc1-03006-01/lib/ReferenceAssemblies.targets')
-rwxr-xr-xpackages/microsoft.dotnet.buildtools/2.1.0-rc1-03006-01/lib/ReferenceAssemblies.targets47
1 files changed, 47 insertions, 0 deletions
diff --git a/packages/microsoft.dotnet.buildtools/2.1.0-rc1-03006-01/lib/ReferenceAssemblies.targets b/packages/microsoft.dotnet.buildtools/2.1.0-rc1-03006-01/lib/ReferenceAssemblies.targets
new file mode 100755
index 0000000000..5b7fc1278b
--- /dev/null
+++ b/packages/microsoft.dotnet.buildtools/2.1.0-rc1-03006-01/lib/ReferenceAssemblies.targets
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+
+ <PropertyGroup>
+ <!-- The first two parts of the assembly version represent API version,
+ the third part is for bugfixes, the fourth is for hotfixes/securtity-updates -->
+ <APIVersion>$([System.Version]::Parse('$(AssemblyVersion)').ToString(2))</APIVersion>
+
+ <_usingRoslyn Condition="'$(MSBuildToolsVersion)' == 'dogfood' OR '$(MSBuildToolsVersion)' &gt;= '14.0'">true</_usingRoslyn>
+
+ <!-- Create a common root output directory for all reference assemblies -->
+ <ReferenceAssemblyOutputPath Condition="'$(ReferenceAssemblyOutputPath)' == ''">$(BaseOutputPath)ref/</ReferenceAssemblyOutputPath>
+ </PropertyGroup>
+
+ <PropertyGroup Condition="'$(IsReferenceAssembly)'=='true'">
+ <AssemblyName Condition="'$(AssemblyName)' == ''">$(MSBuildProjectName)</AssemblyName>
+ <TargetOutputRelPath Condition="'$(IsCompatAssembly)'=='true'">$(TargetOutputRelPath)Compat/</TargetOutputRelPath>
+ <OutputPath>$(ReferenceAssemblyOutputPath)$(AssemblyName)/$(AssemblyVersion)/$(TargetOutputRelPath)</OutputPath>
+ <IntermediateOutputPath>$(BaseIntermediateOutputPath)ref/$(AssemblyName)/$(AssemblyVersion)/$(TargetOutputRelPath)</IntermediateOutputPath>
+
+ <OmitTransitiveCompileReferences>true</OmitTransitiveCompileReferences>
+ <!-- if this is a reference assembly deployment project use compile assets
+ instead of runtime -->
+ <NuGetDeploySourceItem>Reference</NuGetDeploySourceItem>
+ </PropertyGroup>
+
+ <ItemGroup Condition="'$(IsReferenceAssembly)'=='true'">
+ <!-- All reference assemblies are marked APTCA. An internal tool used to generate reference
+ assembly source normalizes the security annotations from seed -> reference assembly
+ under that assumption. -->
+ <!-- NOTE: Reference assemblies are not executable so this is for reference only and does
+ not provide any security privileges at runtime. -->
+ <AssemblyInfoLines Include="[assembly:System.Security.AllowPartiallyTrustedCallers]" />
+ <!-- All reference assemblies should have the 0x70 flag which prevents them from loading
+ and the ReferenceAssemblyAttribute. -->
+ <AssemblyInfoLines Include="[assembly:System.Runtime.CompilerServices.ReferenceAssembly]" />
+ <AssemblyInfoLines Include="[assembly:System.Reflection.AssemblyFlags((System.Reflection.AssemblyNameFlags)0x70)]" />
+ </ItemGroup>
+
+ <!-- Roslyn requires the runtimemetadataversion parameter when building a core assembly -->
+ <Target Name="AddCoreAssemblyResponseFile" Condition="'$(IsCoreAssembly)' == 'true' AND '$(_usingRoslyn)' == 'true'" BeforeTargets="CoreCompile">
+ <PropertyGroup>
+ <CompilerResponseFile Condition="'$(CompilerResponseFile)'!=''">$(MSBuildThisFileDirectory)coreAssembly.rsp;$(CompilerResponseFile)</CompilerResponseFile>
+ <CompilerResponseFile Condition="'$(CompilerResponseFile)'==''">$(MSBuildThisFileDirectory)coreAssembly.rsp</CompilerResponseFile>
+ </PropertyGroup>
+ </Target>
+</Project>