forked from dotnet/fsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FSharpTests.Directory.Build.targets
23 lines (19 loc) · 1.09 KB
/
FSharpTests.Directory.Build.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<Project>
<Target Name="HACK_CopyFscDependenciesToReleaseDirectory"
BeforeTargets="CoreCompile"
Condition=" '$(FSharpTestCompilerVersion)' == 'coreclr' ">
<!--
When the build is done using correct netsdk projects this won't be necessary
-->
<PropertyGroup>
<DotnetSdkVersion>$([System.IO.File]::ReadAllText('$(MSBuildThisFileDirectory)DotnetCLIToolsVersion.txt').Trim())</DotnetSdkVersion>
</PropertyGroup>
<ItemGroup>
<CompilerFilesToCopy Include="$(MSBuildThisFileDirectory)Tools/dotnet20/sdk/$(DotnetSdkVersion)/FSharp/*.json" />
<CompilerFilesToCopy Include="$(MSBuildThisFileDirectory)Tools/dotnet20/sdk/$(DotnetSdkVersion)/FSharp/Microsoft.DiaSymReader.dll" />
<CompilerFilesToCopy Include="$(MSBuildThisFileDirectory)Tools/dotnet20/sdk/$(DotnetSdkVersion)/FSharp/Microsoft.DiaSymReader.PortablePdb.dll" />
</ItemGroup>
<Message Text="Copying compiler files to $(_FSharpCompilerPath)" />
<Copy SourceFiles="@(CompilerFilesToCopy)" DestinationFolder="$(_FSharpCompilerPath)" SkipUnchangedFiles = "true" />
</Target>
</Project>