Created
July 17, 2018 09:00
-
-
Save bartsokol/9eef9518d7b5bac6c33fdbf120e6d575 to your computer and use it in GitHub Desktop.
Props to make Type Providers compile from dotnet build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Project> | |
<!-- Type providers currently can't run inside the .NET Core 2.0 hosted compiler, see https://github.com/Microsoft/visualfsharp/pull/3658#issuecomment-334773415 --> | |
<PropertyGroup> | |
<IsWindows Condition="'$(OS)' == 'Windows_NT'">true</IsWindows> | |
<IsOSX Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">true</IsOSX> | |
<IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</IsLinux> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(IsWindows)' == 'true' AND Exists('C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0\fsc.exe')"> | |
<FscToolPath>C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0</FscToolPath> | |
<FscToolExe>fsc.exe</FscToolExe> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(IsWindows)' == 'true' AND Exists('C:\Program Files (x86)\Microsoft SDKs\F#\10.1\Framework\v4.0\fsc.exe')"> | |
<FscToolPath>C:\Program Files (x86)\Microsoft SDKs\F#\10.1\Framework\v4.0</FscToolPath> | |
<FscToolExe>fsc.exe</FscToolExe> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(IsOSX)' == 'true' AND Exists('/Library/Frameworks/Mono.framework/Versions/Current/Commands/fsharpc')"> | |
<FscToolPath>/Library/Frameworks/Mono.framework/Versions/Current/Commands</FscToolPath> | |
<FscToolExe>fsharpc</FscToolExe> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(IsLinux)' == 'true' AND Exists('/usr/bin/fsharpc')"> | |
<FscToolPath>/usr/bin</FscToolPath> | |
<FscToolExe>fsharpc</FscToolExe> | |
</PropertyGroup> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to this issue