Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coreclr target for FSharp.LanguageService.Compiler #1062

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/absil/il.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

module internal Microsoft.FSharp.Compiler.AbstractIL.IL
module (*internal*) Microsoft.FSharp.Compiler.AbstractIL.IL

#nowarn "49"
#nowarn "44" // This construct is deprecated. please use List.item
Expand Down
4 changes: 2 additions & 2 deletions src/absil/il.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/// The "unlinked" view of .NET metadata and code. Central to
/// to Abstract IL library
module internal Microsoft.FSharp.Compiler.AbstractIL.IL
module (*internal*) Microsoft.FSharp.Compiler.AbstractIL.IL

open Internal.Utilities
open System.Collections.Generic
Expand Down Expand Up @@ -378,7 +378,7 @@ and ILTypes = ILList<ILType>


[<CompilationRepresentation(CompilationRepresentationFlags.ModuleSuffix)>]
module ILList =
module internal ILList =
val inline map : ('T -> 'U) -> ILList<'T> -> ILList<'U>
val inline mapi : (int -> 'T -> 'U) -> ILList<'T> -> ILList<'U>
val inline isEmpty : ILList<'T> -> bool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
<ProjectGuid>{a437a6ec-5323-47c2-8f86-e2cac54ff152}</ProjectGuid>
<AllowCrossTargeting>true</AllowCrossTargeting>
<BaseAddress>0x06800000</BaseAddress>
<OtherFlags Condition=" '$(TargetFramework)'=='coreclr'">$(OtherFlags) --targetprofile:netcore</OtherFlags>
</PropertyGroup>
<!-- References -->
<Import Project="$(FSharpSourcesRoot)\.nuget\NuGet.targets" Condition="Exists('$(FSharpSourcesRoot)\.nuget\NuGet.targets')" />
<Import Project="$(FSharpSourcesRoot)\FSharpSource.targets" />
<ItemGroup>
<FilesToLocalize Include="$(OutDir)$(AssemblyName).dll">
<TranslationFile>$(FSharpSourcesRoot)\..\loc\lcl\{Lang}\$(AssemblyName).dll.lcl</TranslationFile>
Expand All @@ -31,6 +35,9 @@
</FilesToLocalize>
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\assemblyinfo\assemblyinfo.FSharp.Compiler.dll.fs">
<Link>assemblyinfo.FSharp.Compiler.dll.fs</Link>
</Compile>
<FsSrGen Include="..\FSComp.txt">
<Link>FSComp.txt</Link>
</FsSrGen>
Expand All @@ -40,10 +47,9 @@
<Compile Include="..\..\utils\reshapedreflection.fs">
<Link>Reflection\reshapedreflection.fs</Link>
</Compile>
<Compile Include="..\..\assemblyinfo\assemblyinfo.FSharp.Compiler.dll.fs">
<Link>assemblyinfo.FSharp.Compiler.dll.fs</Link>
<Compile Include="..\..\utils\reshapedmsbuild.fs">
<Link>Reflection\reshapedmsbuild.fs</Link>
</Compile>
<Compile Include="InternalsVisibleTo.fs" />
<Compile Include="..\..\utils\sformat.fsi">
<Link>ErrorText\sformat.fsi</Link>
</Compile>
Expand Down Expand Up @@ -198,6 +204,9 @@
<Compile Include="..\..\absil\ilmorph.fs">
<Link>AbsIL/ilmorph.fs</Link>
</Compile>
<Compile Include="..\..\absil\ilsign.fs" Condition=" '$(TargetFramework)'=='coreclr'">
<Link>AbsIL\ilsign.fs</Link>
</Compile>
<Compile Include="..\..\absil\ilsupp.fsi">
<Link>AbsIL/ilsupp.fsi</Link>
</Compile>
Expand Down Expand Up @@ -491,6 +500,12 @@
<Compile Include="..\vs\Symbols.fs">
<Link>Service/Symbols.fs</Link>
</Compile>
<Compile Include="..\vs\Exprs.fsi">
<Link>Service/Exprs.fsi</Link>
</Compile>
<Compile Include="..\vs\Exprs.fs">
<Link>Service/Exprs.fs</Link>
</Compile>
<Compile Include="..\vs\ServiceLexing.fsi">
<Link>Service/ServiceLexing.fsi</Link>
</Compile>
Expand Down Expand Up @@ -524,8 +539,14 @@
<Compile Include="..\vs\service.fs">
<Link>Service/service.fs</Link>
</Compile>
<Compile Include="InternalsVisibleTo.fs" Condition="'$(TargetFramework)' != 'coreclr'">
<Link>InternalsVisibleTo.fs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'coreclr'">
<None Include="project.json" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' != 'coreclr'">
<Reference Include="mscorlib" />
<Reference Include="System" />
<Reference Include="System.Core" />
Expand All @@ -543,6 +564,8 @@
<Reference Include="Microsoft.DiaSymReader"><HintPath>..\..\..\packages\Microsoft.DiaSymReader\1.0.7\lib\portable-net45+win8\Microsoft.DiaSymReader.dll</HintPath></Reference>
<Reference Include="System.Reflection.Metadata"><HintPath>..\..\..\packages\System.Reflection.Metadata.1.3.0-beta-23816\lib\portable-net45+win8\System.Reflection.Metadata.dll</HintPath></Reference>
<Reference Include="System.Collections.Immutable"><HintPath>..\..\..\packages\System.Collections.Immutable.1.2.0-rc3-23805\lib\portable-net45+win8+wp8+wpa81</HintPath></Reference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="$(FSharpSourcesRoot)\fsharp\FSharp.Core\FSharp.Core.fsproj" >
<Project>{DED3BBD7-53F4-428A-8C9F-27968E768605}</Project>
<Name>FSharp.Core</Name>
Expand Down
38 changes: 38 additions & 0 deletions src/fsharp/FSharp.LanguageService.Compiler/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"dependencies": {
"Microsoft.NETCore.Platforms": "1.0.1-rc2-23911",
"NETStandard.Library": "1.5.0-rc2-23911",
"System.Collections.Immutable":"1.2.0-rc2-23911",
"System.Diagnostics.Process": "4.1.0-rc2-23911",
"System.Diagnostics.TraceSource": "4.0.0-rc2-23911",
"System.Linq.Expressions": "4.0.11-rc2-23911",
"System.Linq.Queryable": "4.0.1-rc2-23911",
"System.Net.Requests": "4.0.11-rc2-23911",
"System.Reflection.Emit": "4.0.1-rc2-23911",
"System.Reflection.Emit.ILGeneration": "4.0.1-rc2-23911",
"System.Reflection.Metadata": "1.3.0-rc2-23911",
"System.Reflection.TypeExtensions": "4.1.0-rc2-23911",
"System.Runtime.InteropServices": "4.1.0-rc2-23911",
"System.Runtime.InteropServices.PInvoke": "4.0.0-rc2-23911",
"System.Runtime.Loader": "4.0.0-rc2-23911",
"System.Security.Cryptography.Algorithms": "4.1.0-rc2-23911",
"System.Security.Cryptography.Primitives": "4.0.0-rc2-23911",
"System.Threading.Tasks.Parallel": "4.0.1-rc2-23911",
"System.Threading.Thread": "4.0.0-rc2-23911",
"System.Threading.ThreadPool": "4.0.10-rc2-23911",
"Microsoft.DiaSymReader.PortablePdb": "1.0.0-rc-60301",
"Microsoft.DiaSymReader": "1.0.7",
},
"runtimes": {
"win7-x86": { },
"win7-x64": { },
"osx.10.10-x64": { },
"ubuntu.14.04-x64": { }
},
"frameworks": {
"dnxcore50": {
"imports": "portable-net45+win8"
}
}
}

2 changes: 1 addition & 1 deletion src/fsharp/ast.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

module internal Microsoft.FSharp.Compiler.Ast
module (*internal*) Microsoft.FSharp.Compiler.Ast

open System.Collections.Generic
open Internal.Utilities
Expand Down
2 changes: 1 addition & 1 deletion src/fsharp/range.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

/// Anything to do with special names of identifiers and other lexical rules
module internal Microsoft.FSharp.Compiler.Range
module (*internal*) Microsoft.FSharp.Compiler.Range

open System.IO
open System.Collections.Generic
Expand Down
2 changes: 1 addition & 1 deletion src/fsharp/range.fsi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

module internal Microsoft.FSharp.Compiler.Range
module (*internal*) Microsoft.FSharp.Compiler.Range

open System.Text
open System.Collections.Generic
Expand Down