{"action":"created","issue":{"url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/issues/799","repository_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service","labels_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/issues/799/labels{/name}","comments_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/issues/799/comments","events_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/issues/799/events","html_url":"https://github.com/fsharp/FSharp.Compiler.Service/issues/799","id":254884045,"number":799,"title":"How to compile for netcore with FCS 14?","user":{"login":"matthid","id":1866463,"avatar_url":"https://avatars0.githubusercontent.com/u/1866463?v=4","gravatar_id":"","url":"https://api.github.com/users/matthid","html_url":"https://github.com/matthid","followers_url":"https://api.github.com/users/matthid/followers","following_url":"https://api.github.com/users/matthid/following{/other_user}","gists_url":"https://api.github.com/users/matthid/gists{/gist_id}","starred_url":"https://api.github.com/users/matthid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthid/subscriptions","organizations_url":"https://api.github.com/users/matthid/orgs","repos_url":"https://api.github.com/users/matthid/repos","events_url":"https://api.github.com/users/matthid/events{/privacy}","received_events_url":"https://api.github.com/users/matthid/received_events","type":"User","site_admin":false},"labels":[{"id":58800248,"url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-09-03T16:13:23Z","updated_at":"2017-09-18T16:14:14Z","closed_at":"2017-09-18T16:14:14Z","author_association":"CONTRIBUTOR","body":"Given the arguments:\r\n```\r\n [\"--debug:portable\"; \"--define:DOTNETCORE\"; \"--define:FAKE\"; \"--noframework\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Runtime\\4.3.0\\ref\\netstandard1.5\\System.Runtime.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Threading.Timer\\4.3.0\\ref\\netstandard1.2\\System.Threading.Timer.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Threading.Thread\\4.3.0\\ref\\netstandard1.3\\System.Threading.Thread.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Threading.Tasks\\4.3.0\\ref\\netstandard1.3\\System.Threading.Tasks.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Text.Encoding\\4.3.0\\ref\\netstandard1.3\\System.Text.Encoding.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Runtime.Handles\\4.3.0\\ref\\netstandard1.3\\System.Runtime.Handles.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Runtime.Extensions\\4.3.0\\ref\\netstandard1.5\\System.Runtime.Extensions.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Reflection.Primitives\\4.3.0\\ref\\netstandard1.0\\System.Reflection.Primitives.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.IO.FileSystem.Primitives\\4.3.0\\ref\\netstandard1.3\\System.IO.FileSystem.Primitives.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Globalization\\4.3.0\\ref\\netstandard1.3\\System.Globalization.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Diagnostics.Tracing\\4.3.0\\ref\\netstandard1.5\\System.Diagnostics.Tracing.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Diagnostics.Tools\\4.3.0\\ref\\netstandard1.0\\System.Diagnostics.Tools.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Diagnostics.Debug\\4.3.0\\ref\\netstandard1.3\\System.Diagnostics.Debug.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Collections\\4.3.0\\ref\\netstandard1.3\\System.Collections.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.AppContext\\4.3.0\\ref\\netstandard1.6\\System.AppContext.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\Microsoft.Win32.Primitives\\4.3.0\\ref\\netstandard1.3\\Microsoft.Win32.Primitives.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Threading.ThreadPool\\4.3.0\\ref\\netstandard1.3\\System.Threading.ThreadPool.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Threading.Tasks.Extensions\\4.4.0\\lib\\netstandard1.0\\System.Threading.Tasks.Extensions.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Threading\\4.3.0\\ref\\netstandard1.3\\System.Threading.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Text.Encoding.Extensions\\4.3.0\\ref\\netstandard1.3\\System.Text.Encoding.Extensions.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Net.Primitives\\4.3.0\\ref\\netstandard1.3\\System.Net.Primitives.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.IO\\4.3.0\\ref\\netstandard1.5\\System.IO.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Globalization.Calendars\\4.3.0\\ref\\netstandard1.3\\System.Globalization.Calendars.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Reflection\\4.3.0\\ref\\netstandard1.5\\System.Reflection.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Net.Sockets\\4.3.0\\ref\\netstandard1.3\\System.Net.Sockets.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.IO.FileSystem\\4.3.0\\ref\\netstandard1.3\\System.IO.FileSystem.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Console\\4.3.0\\ref\\netstandard1.3\\System.Console.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Runtime.InteropServices\\4.3.0\\ref\\netstandard1.5\\System.Runtime.InteropServices.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Resources.ResourceManager\\4.3.0\\ref\\netstandard1.0\\System.Resources.ResourceManager.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Reflection.Extensions\\4.3.0\\ref\\netstandard1.0\\System.Reflection.Extensions.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Reflection.Emit.ILGeneration\\4.3.0\\ref\\netstandard1.0\\System.Reflection.Emit.ILGeneration.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Diagnostics.DiagnosticSource\\4.4.1\\lib\\netstandard1.3\\System.Diagnostics.DiagnosticSource.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Text.RegularExpressions\\4.3.0\\ref\\netstandard1.6\\System.Text.RegularExpressions.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Security.Cryptography.Primitives\\4.3.0\\ref\\netstandard1.3\\System.Security.Cryptography.Primitives.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Runtime.Numerics\\4.3.0\\ref\\netstandard1.1\\System.Runtime.Numerics.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Runtime.InteropServices.RuntimeInformation\\4.3.0\\ref\\netstandard1.1\\System.Runtime.InteropServices.RuntimeInformation.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Reflection.TypeExtensions\\4.4.0\\ref\\netstandard1.5\\System.Reflection.TypeExtensions.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Reflection.Emit.Lightweight\\4.3.0\\ref\\netstandard1.0\\System.Reflection.Emit.Lightweight.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Reflection.Emit\\4.3.0\\ref\\netstandard1.1\\System.Reflection.Emit.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.ObjectModel\\4.3.0\\ref\\netstandard1.3\\System.ObjectModel.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Net.WebHeaderCollection\\4.3.0\\ref\\netstandard1.3\\System.Net.WebHeaderCollection.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Linq\\4.3.0\\ref\\netstandard1.6\\System.Linq.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Globalization.Extensions\\4.3.0\\ref\\netstandard1.3\\System.Globalization.Extensions.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Collections.Concurrent\\4.3.0\\ref\\netstandard1.3\\System.Collections.Concurrent.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Buffers\\4.4.0\\ref\\netstandard1.1\\System.Buffers.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Xml.ReaderWriter\\4.3.0\\ref\\netstandard1.3\\System.Xml.ReaderWriter.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Threading.Tasks.Parallel\\4.3.0\\ref\\netstandard1.1\\System.Threading.Tasks.Parallel.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Security.Cryptography.Encoding\\4.3.0\\ref\\netstandard1.3\\System.Security.Cryptography.Encoding.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Linq.Expressions\\4.3.0\\ref\\netstandard1.6\\System.Linq.Expressions.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.IO.Compression\\4.3.0\\ref\\netstandard1.3\\System.IO.Compression.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Xml.XDocument\\4.3.0\\ref\\netstandard1.3\\System.Xml.XDocument.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Security.Cryptography.Algorithms\\4.3.0\\ref\\netstandard1.6\\System.Security.Cryptography.Algorithms.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Linq.Queryable\\4.3.0\\ref\\netstandard1.0\\System.Linq.Queryable.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.IO.Compression.ZipFile\\4.3.0\\ref\\netstandard1.3\\System.IO.Compression.ZipFile.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Security.Cryptography.OpenSsl\\4.4.0\\ref\\netstandard1.6\\System.Security.Cryptography.OpenSsl.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Security.Cryptography.Csp\\4.3.0\\ref\\netstandard1.3\\System.Security.Cryptography.Csp.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Security.Cryptography.Cng\\4.4.0\\ref\\netstandard1.6\\System.Security.Cryptography.Cng.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Security.Cryptography.X509Certificates\\4.3.0\\ref\\netstandard1.4\\System.Security.Cryptography.X509Certificates.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Net.Http\\4.3.2\\ref\\netstandard1.3\\System.Net.Http.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\System.Net.Requests\\4.3.0\\ref\\netstandard1.3\\System.Net.Requests.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\FSharp.Core\\4.2.3\\lib\\netstandard1.6\\FSharp.Core.dll\";\r\n \"-r:C:\\Users\\matth\\.nuget\\packages\\Fake.Core.Context\\5.0.0-alpha016\\lib\\netstandard1.6\\Fake.Core.Context.dll\";\r\n \"--nowin32manifest\"; \"-o\";\r\n \".fake\\context-exists.fsx\\context-exists_01E9F1E98F5920F95F7DCE9DE9E97BF008A593B24E3BFFA4F4E6ADCBAFFECCA7.dll\";\r\n \"context-exists.fsx\"]\r\n```\r\n\r\nthe v13 of FCS compiled a netstandard16 dll. With v14 I get:\r\n`unknown (1,0)-(1,0): Error FS0084: Assembly reference 'mscorlib.dll' was not found or is invalid`\r\n\r\n/cc @dsyme or @KevinRansom any Idea ? Do I have to provide different arguments now?\r\n\r\n#### Repro\r\n\r\n`args` is as defined above:\r\n\r\n```fsharp\r\n    let fsc = FSharpChecker.Create()\r\n    let errors, returnCode = fsc.Compile (args |> List.toArray) |> Async.RunSynchronously\r\n    let formatError (e:FSharpErrorInfo) =\r\n         sprintf \"%s (%d,%d)-(%d,%d): %A FS%04d: %s\" e.FileName e.StartLineAlternate e.StartColumn e.EndLineAlternate e.EndColumn e.Severity e.ErrorNumber e.Message\r\n    let formatErrors errors =\r\n        System.String.Join(\"\\n\", errors |> Seq.map formatError)\r\n    if returnCode <> 0 then failwithf \"Compilation failed: \\n%s\" (formatErrors errors)\r\n```\r\n\r\n#### Related information \r\n\r\n* Operating system: Windows 10\r\n* CoreCLR: FCS running in a netcoreapp1.1\r\n"},"comment":{"url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/issues/comments/330273980","html_url":"https://github.com/fsharp/FSharp.Compiler.Service/issues/799#issuecomment-330273980","issue_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/issues/799","id":330273980,"user":{"login":"matthid","id":1866463,"avatar_url":"https://avatars0.githubusercontent.com/u/1866463?v=4","gravatar_id":"","url":"https://api.github.com/users/matthid","html_url":"https://github.com/matthid","followers_url":"https://api.github.com/users/matthid/followers","following_url":"https://api.github.com/users/matthid/following{/other_user}","gists_url":"https://api.github.com/users/matthid/gists{/gist_id}","starred_url":"https://api.github.com/users/matthid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthid/subscriptions","organizations_url":"https://api.github.com/users/matthid/orgs","repos_url":"https://api.github.com/users/matthid/repos","events_url":"https://api.github.com/users/matthid/events{/privacy}","received_events_url":"https://api.github.com/users/matthid/received_events","type":"User","site_admin":false},"created_at":"2017-09-18T16:14:14Z","updated_at":"2017-09-18T16:14:14Z","author_association":"CONTRIBUTOR","body":"Works, but docs should probably be updated."}}
{"actor":{"display_login":"matthid"}}