diff --git a/FSharp.Compiler.Service.sln b/FSharp.Compiler.Service.sln index cfabbec65a..065bba2af6 100644 --- a/FSharp.Compiler.Service.sln +++ b/FSharp.Compiler.Service.sln @@ -1,6 +1,6 @@ Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2013 -VisualStudioVersion = 12.0.31101.0 +# Visual Studio 14 +VisualStudioVersion = 14.0.23107.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "project", "project", "{B6B68AE6-E7A4-4D43-9B34-FFA74BFE192B}" ProjectSection(SolutionItems) = preProject @@ -56,6 +56,10 @@ Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Fsc", "samples\FscExe\Fsc.f EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSharp_Analysis", "tests\service\data\CSharp_Analysis\CSharp_Analysis.csproj", "{887630A3-4B1D-40EA-B8B3-2D842E9C40DB}" EndProject +Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "RunAssemblyResolveProblem", "RunAssemblyResolveProblem\RunAssemblyResolveProblem.fsproj", "{8990E2BF-92DB-43B1-AFFE-9EAD609FCCE4}" +EndProject +Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "AssemblyResolveProblem", "tests\service\data\AssemblyResolveProblem\AssemblyResolveProblem.fsproj", "{7114EB5B-C1E0-476A-B384-25BB209DF8AE}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -189,6 +193,42 @@ Global {887630A3-4B1D-40EA-B8B3-2D842E9C40DB}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU {887630A3-4B1D-40EA-B8B3-2D842E9C40DB}.Release|Mixed Platforms.Build.0 = Release|Any CPU {887630A3-4B1D-40EA-B8B3-2D842E9C40DB}.Release|x86.ActiveCfg = Release|Any CPU + {8990E2BF-92DB-43B1-AFFE-9EAD609FCCE4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8990E2BF-92DB-43B1-AFFE-9EAD609FCCE4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8990E2BF-92DB-43B1-AFFE-9EAD609FCCE4}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {8990E2BF-92DB-43B1-AFFE-9EAD609FCCE4}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {8990E2BF-92DB-43B1-AFFE-9EAD609FCCE4}.Debug|x86.ActiveCfg = Debug|Any CPU + {8990E2BF-92DB-43B1-AFFE-9EAD609FCCE4}.Debug|x86.Build.0 = Debug|Any CPU + {8990E2BF-92DB-43B1-AFFE-9EAD609FCCE4}.Proto|Any CPU.ActiveCfg = Release|Any CPU + {8990E2BF-92DB-43B1-AFFE-9EAD609FCCE4}.Proto|Any CPU.Build.0 = Release|Any CPU + {8990E2BF-92DB-43B1-AFFE-9EAD609FCCE4}.Proto|Mixed Platforms.ActiveCfg = Release|Any CPU + {8990E2BF-92DB-43B1-AFFE-9EAD609FCCE4}.Proto|Mixed Platforms.Build.0 = Release|Any CPU + {8990E2BF-92DB-43B1-AFFE-9EAD609FCCE4}.Proto|x86.ActiveCfg = Release|Any CPU + {8990E2BF-92DB-43B1-AFFE-9EAD609FCCE4}.Proto|x86.Build.0 = Release|Any CPU + {8990E2BF-92DB-43B1-AFFE-9EAD609FCCE4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8990E2BF-92DB-43B1-AFFE-9EAD609FCCE4}.Release|Any CPU.Build.0 = Release|Any CPU + {8990E2BF-92DB-43B1-AFFE-9EAD609FCCE4}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {8990E2BF-92DB-43B1-AFFE-9EAD609FCCE4}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {8990E2BF-92DB-43B1-AFFE-9EAD609FCCE4}.Release|x86.ActiveCfg = Release|Any CPU + {8990E2BF-92DB-43B1-AFFE-9EAD609FCCE4}.Release|x86.Build.0 = Release|Any CPU + {7114EB5B-C1E0-476A-B384-25BB209DF8AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7114EB5B-C1E0-476A-B384-25BB209DF8AE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7114EB5B-C1E0-476A-B384-25BB209DF8AE}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {7114EB5B-C1E0-476A-B384-25BB209DF8AE}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {7114EB5B-C1E0-476A-B384-25BB209DF8AE}.Debug|x86.ActiveCfg = Debug|Any CPU + {7114EB5B-C1E0-476A-B384-25BB209DF8AE}.Debug|x86.Build.0 = Debug|Any CPU + {7114EB5B-C1E0-476A-B384-25BB209DF8AE}.Proto|Any CPU.ActiveCfg = Release|Any CPU + {7114EB5B-C1E0-476A-B384-25BB209DF8AE}.Proto|Any CPU.Build.0 = Release|Any CPU + {7114EB5B-C1E0-476A-B384-25BB209DF8AE}.Proto|Mixed Platforms.ActiveCfg = Release|Any CPU + {7114EB5B-C1E0-476A-B384-25BB209DF8AE}.Proto|Mixed Platforms.Build.0 = Release|Any CPU + {7114EB5B-C1E0-476A-B384-25BB209DF8AE}.Proto|x86.ActiveCfg = Release|Any CPU + {7114EB5B-C1E0-476A-B384-25BB209DF8AE}.Proto|x86.Build.0 = Release|Any CPU + {7114EB5B-C1E0-476A-B384-25BB209DF8AE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7114EB5B-C1E0-476A-B384-25BB209DF8AE}.Release|Any CPU.Build.0 = Release|Any CPU + {7114EB5B-C1E0-476A-B384-25BB209DF8AE}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {7114EB5B-C1E0-476A-B384-25BB209DF8AE}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {7114EB5B-C1E0-476A-B384-25BB209DF8AE}.Release|x86.ActiveCfg = Release|Any CPU + {7114EB5B-C1E0-476A-B384-25BB209DF8AE}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/RunAssemblyResolveProblem/App.config b/RunAssemblyResolveProblem/App.config new file mode 100644 index 0000000000..88fa4027bd --- /dev/null +++ b/RunAssemblyResolveProblem/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/RunAssemblyResolveProblem/AssemblyInfo.fs b/RunAssemblyResolveProblem/AssemblyInfo.fs new file mode 100644 index 0000000000..94e4d6d7de --- /dev/null +++ b/RunAssemblyResolveProblem/AssemblyInfo.fs @@ -0,0 +1,41 @@ +namespace RunAssemblyResolveProblem.AssemblyInfo + +open System.Reflection +open System.Runtime.CompilerServices +open System.Runtime.InteropServices + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[] +[] +[] +[] +[] +[] +[] +[] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [] +[] +[] + +do + () \ No newline at end of file diff --git a/RunAssemblyResolveProblem/Program.fs b/RunAssemblyResolveProblem/Program.fs new file mode 100644 index 0000000000..e3d3d7207a --- /dev/null +++ b/RunAssemblyResolveProblem/Program.fs @@ -0,0 +1,125 @@ +module RunAssemblyResolveProblem.Test + +open System +open System.IO +open Microsoft.FSharp.Compiler +open Microsoft.FSharp.Compiler.Interactive.Shell +open Microsoft.FSharp.Compiler.SourceCodeServices + +// Intialize output and input streams +let inStream = new StringReader("") +let outStream = new CompilerOutputStream() +let errStream = new CompilerOutputStream() + +// Build command line arguments & start FSI session + +open System +open System.Reflection +let sysLib nm = + if System.Environment.OSVersion.Platform = System.PlatformID.Win32NT then // file references only valid on Windows + @"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\" + nm + ".dll" + else + let sysDir = System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory() + let (++) a b = System.IO.Path.Combine(a,b) + sysDir ++ nm + ".dll" + +let run () = + printfn "Creating Checker..." + let checker = FSharpChecker.Create() + let base1 = Path.GetTempFileName() + let dllName = Path.ChangeExtension(base1, ".dll") + let xmlName = Path.ChangeExtension(base1, ".xml") + let fileName1 = Path.ChangeExtension(base1, ".fs") + let projFileName = Path.ChangeExtension(base1, ".fsproj") + File.WriteAllText(fileName1, "module M") + let checkerArgs = + [| "--simpleresolution" + "--noframework" + "--debug:full" + "--define:DEBUG" + "--optimize-" + fileName1 + "-r:" + sysLib "mscorlib" + "-r:" + sysLib "System" + "-r:" + sysLib "System.Core" + "-r:" + Path.GetFullPath "TEST_BUG/FSharp.Core.dll" + "-r:" + Path.GetFullPath "TEST_BUG/AssemblyResolveProblem.dll" + "-r:" + Path.GetFullPath "TEST_BUG/FSharp.Configuration.dll" + "-r:" + Path.GetFullPath "TEST_BUG/unresolved/SharpYaml.dll" + "--out:" + dllName + "--doc:" + xmlName + "--warn:3" + "--fullpaths" + "--flaterrors" + "--target:library" |] + + printfn "Get results... %A" checkerArgs + let options = checker.GetProjectOptionsFromCommandLineArgs(projFileName, checkerArgs) + printfn "Get ParseAndCheckProject..." + let results = checker.ParseAndCheckProject(options) |> Async.RunSynchronously + + let mapError (err:FSharpErrorInfo) = + sprintf "**** %s: %s" (if err.Severity = Microsoft.FSharp.Compiler.FSharpErrorSeverity.Error then "error" else "warning") err.Message + if results.HasCriticalErrors then + let errors = results.Errors |> Seq.map mapError + let errorMsg = sprintf "Parsing and checking project failed: \n\t%s" (System.String.Join("\n\t", errors)) + failwith errorMsg + else + if results.Errors.Length > 0 then + let warnings = results.Errors |> Seq.map mapError + printfn "Parsing and checking warnings: \n\t%s" (System.String.Join("\n\t", warnings)) + + printfn "Get referenceMap..." + let referenceMap = + results.ProjectContext.GetReferencedAssemblies() + |> Seq.choose (fun (r:FSharpAssembly) -> r.FileName |> Option.map (fun f -> f, r)) + |> dict + + printfn "Get map..." + let map = + ["AssemblyResolveProblem.dll"] |> Seq.map (fun file -> file, if referenceMap.ContainsKey file then Some referenceMap.[file] else None) + map + + +[] +let main argv = + let fscore = + if System.Environment.OSVersion.Platform = System.PlatformID.Win32NT then // file references only valid on Windows + @"C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\4.4.0.0\FSharp.Core.dll" + else + typeof<_ option>.Assembly.Location + + let yamlPath = "unresolved/SharpYaml.dll" + let files = + [| fscore, "FSharp.Core.dll" + Path.ChangeExtension (fscore, "optdata"), "FSharp.Core.optdata" + Path.ChangeExtension (fscore, "sigdata"), "FSharp.Core.sigdata" + "bin/v4.5/AssemblyResolveProblem.dll", "AssemblyResolveProblem.dll" + "bin/v4.5/SharpYaml.dll", yamlPath + "bin/v4.5/FSharp.Configuration.dll", "FSharp.Configuration.dll" + |] + let destDir = "TEST_BUG" + for sourceFile, destFile in files do + let destPath = Path.Combine(destDir, destFile) + let destDir = Path.GetDirectoryName(destPath) + if not (Directory.Exists destDir) then + Directory.CreateDirectory destDir |> ignore + if not (File.Exists destPath) then + File.Copy(sourceFile, destPath) + + //System.Environment.CurrentDirectory <- Path.GetFullPath(destDir) + + let fsiConfig = FsiEvaluationSession.GetDefaultConfiguration() + let argv = [| "C:\\fsi.exe" |] + let allArgs = + Array.append argv + [| "--noninteractive"; "--noframework"; "-r:" + Path.GetFullPath "TEST_BUG/FSharp.Core.dll" |] + printfn "Start Session... " + let fsiSession = FsiEvaluationSession.Create(fsiConfig, allArgs, inStream, new StreamWriter(outStream), new StreamWriter(errStream)) + + printfn "Start EvalInteraction... " + try + fsiSession.EvalScript (Path.GetFullPath "RunAssemblyResolveProblem.fsx") + finally + printfn "Output: %s, Error: %s" (outStream.Read()) (errStream.Read()) + 0 // return an integer exit code diff --git a/RunAssemblyResolveProblem/RunAssemblyResolveProblem.fsproj b/RunAssemblyResolveProblem/RunAssemblyResolveProblem.fsproj new file mode 100644 index 0000000000..6840d62492 --- /dev/null +++ b/RunAssemblyResolveProblem/RunAssemblyResolveProblem.fsproj @@ -0,0 +1,89 @@ + + + + + Debug + AnyCPU + 2.0 + 8990e2bf-92db-43b1-affe-9ead609fcce4 + Exe + RunAssemblyResolveProblem + RunAssemblyResolveProblem + v4.5.2 + true + 4.4.0.0 + RunAssemblyResolveProblem + + + true + full + false + false + bin\Debug\ + DEBUG;TRACE + 3 + AnyCPU + bin\Debug\RunAssemblyResolveProblem.XML + true + C:\Users\dragon\Documents\Projects\FSharp.Compiler.Service\ + + + pdbonly + true + true + bin\Release\ + TRACE + 3 + AnyCPU + bin\Release\RunAssemblyResolveProblem.XML + true + C:\Users\dragon\Documents\Projects\FSharp.Compiler.Service\ + + + + + False + + + + + + + + + + + Always + + + + + FSharp.Compiler.Service + {2e4d67b4-522d-4cf7-97e4-ba940f0b18f3} + True + + + + 11 + + + + + $(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.0\Framework\v4.0\Microsoft.FSharp.Targets + + + + + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\FSharp\Microsoft.FSharp.Targets + + + + + + \ No newline at end of file diff --git a/RunAssemblyResolveProblem/RunAssemblyResolveProblem.fsx b/RunAssemblyResolveProblem/RunAssemblyResolveProblem.fsx new file mode 100644 index 0000000000..f6bdcb7824 --- /dev/null +++ b/RunAssemblyResolveProblem/RunAssemblyResolveProblem.fsx @@ -0,0 +1,22 @@ + +open System +open System.IO +open System.Reflection + +printfn "Adding Handler..." +AppDomain.CurrentDomain.add_AssemblyResolve( + new ResolveEventHandler(fun _ e -> + printfn "resolving %s" e.Name + if e.Name.StartsWith "SharpYaml" then + Assembly.LoadFrom(Path.GetFullPath "TEST_BUG/unresolved/SharpYaml.dll") + elif e.Name.StartsWith "FSharp.Core" then + Assembly.LoadFrom(Path.GetFullPath "TEST_BUG/FSharp.Core.dll") + else null)) + +#r @"FSharp.Compiler.Service.dll" +#r @"RunAssemblyResolveProblem.exe" + +try + let map = RunAssemblyResolveProblem.Test.run() + ignore map +with e -> printfn "Error: %O" e \ No newline at end of file diff --git a/paket.dependencies b/paket.dependencies index b2e0e9c900..0355d26778 100644 --- a/paket.dependencies +++ b/paket.dependencies @@ -11,4 +11,7 @@ nuget FAKE nuget FSharp.Formatting nuget SourceLink.Fake +# tests +nuget FSharp.Configuration + github fsharp/FAKE modules/Octokit/Octokit.fsx \ No newline at end of file diff --git a/paket.lock b/paket.lock index 70394d05af..93d2371c28 100644 --- a/paket.lock +++ b/paket.lock @@ -1,8 +1,9 @@ NUGET - remote: https://www.nuget.org/api/v2 + remote: https://nuget.org/api/v2 specs: FAKE (4.1.0) FSharp.Compiler.Service (1.4.0.1) + FSharp.Configuration (0.5.3) FSharp.Formatting (2.10.0) FSharp.Compiler.Service (>= 0.0.87) FSharpVSPowerTools.Core (1.8.0) @@ -10,23 +11,23 @@ NUGET FSharp.Compiler.Service (>= 0.0.87) Microsoft.Bcl (1.1.10) Microsoft.Bcl.Build (>= 1.0.14) - Microsoft.Bcl.Build (1.0.21) + Microsoft.Bcl.Build (1.0.21) - import_targets: false Microsoft.Net.Http (2.2.29) Microsoft.Bcl (>= 1.1.10) Microsoft.Bcl.Build (>= 1.0.14) NuGet.CommandLine (2.8.6) NUnit (2.6.3) NUnit.Runners (2.6.3) - Octokit (0.14.0) - framework: wpv8.0 + Octokit (0.14.0) Microsoft.Net.Http SourceLink.Fake (1.0.0) - sqlite-net-wp8 (3.8.5) - framework: wpv8.0 - SQLite.Net-PCL (3.0.5) - sqlite-net-wp8 (>= 3.8.5) - framework: wpv8.0 SQLite.Net.Platform.Generic (2.4.1) SQLite.Net-PCL + SQLite.Net-PCL (3.0.5) + sqlite-net-wp8 (>= 3.8.5) - framework: wpv8.0 + sqlite-net-wp8 (3.8.5) - framework: wpv8.0 GITHUB remote: fsharp/FAKE specs: - modules/Octokit/Octokit.fsx (16296d960f02a6192baa9e3f9facb32aca7184bb) + modules/Octokit/Octokit.fsx (545fb5d2cc7901bcbfd8f7f1a53da8f7f169deda) Octokit \ No newline at end of file diff --git a/tests/service/data/AssemblyResolveProblem/AssemblyInfo.fs b/tests/service/data/AssemblyResolveProblem/AssemblyInfo.fs new file mode 100644 index 0000000000..de954d397e --- /dev/null +++ b/tests/service/data/AssemblyResolveProblem/AssemblyInfo.fs @@ -0,0 +1,41 @@ +namespace AssemblyResolveProblem.AssemblyInfo + +open System.Reflection +open System.Runtime.CompilerServices +open System.Runtime.InteropServices + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[] +[] +[] +[] +[] +[] +[] +[] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [] +[] +[] + +do + () \ No newline at end of file diff --git a/tests/service/data/AssemblyResolveProblem/AssemblyResolveProblem.fsproj b/tests/service/data/AssemblyResolveProblem/AssemblyResolveProblem.fsproj new file mode 100644 index 0000000000..11a2fdbf78 --- /dev/null +++ b/tests/service/data/AssemblyResolveProblem/AssemblyResolveProblem.fsproj @@ -0,0 +1,91 @@ + + + + + Debug + AnyCPU + 2.0 + 7114eb5b-c1e0-476a-b384-25bb209df8ae + Library + AssemblyResolveProblem + AssemblyResolveProblem + v4.5 + 4.4.0.0 + true + AssemblyResolveProblem + + + true + full + false + false + bin\Debug\ + DEBUG;TRACE + 3 + bin\Debug\AssemblyResolveProblem.XML + + + pdbonly + true + true + bin\Release\ + TRACE + 3 + bin\Release\AssemblyResolveProblem.XML + + + + + False + + + + + + + + + + + + + + 11 + + + + + $(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.0\Framework\v4.0\Microsoft.FSharp.Targets + + + + + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\FSharp\Microsoft.FSharp.Targets + + + + + + + + + + ..\..\..\..\packages\FSharp.Configuration\lib\net40\FSharp.Configuration.dll + True + True + + + ..\..\..\..\packages\FSharp.Configuration\lib\net40\SharpYaml.dll + True + True + + + + + \ No newline at end of file diff --git a/tests/service/data/AssemblyResolveProblem/AssemblyResolveProblem.sln b/tests/service/data/AssemblyResolveProblem/AssemblyResolveProblem.sln new file mode 100644 index 0000000000..539ecf7d06 --- /dev/null +++ b/tests/service/data/AssemblyResolveProblem/AssemblyResolveProblem.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.23107.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "AssemblyResolveProblem", "AssemblyResolveProblem.fsproj", "{7114EB5B-C1E0-476A-B384-25BB209DF8AE}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {7114EB5B-C1E0-476A-B384-25BB209DF8AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7114EB5B-C1E0-476A-B384-25BB209DF8AE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7114EB5B-C1E0-476A-B384-25BB209DF8AE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7114EB5B-C1E0-476A-B384-25BB209DF8AE}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/tests/service/data/AssemblyResolveProblem/Config.yaml b/tests/service/data/AssemblyResolveProblem/Config.yaml new file mode 100644 index 0000000000..6878b86b77 --- /dev/null +++ b/tests/service/data/AssemblyResolveProblem/Config.yaml @@ -0,0 +1,8 @@ +Dummy1: test.data + +Dummy2: 12345 + +Dummy3: + Dummy31: test.data + Dummy32: "test.data" + Dummy33: "test.data" \ No newline at end of file diff --git a/tests/service/data/AssemblyResolveProblem/Configuration.fs b/tests/service/data/AssemblyResolveProblem/Configuration.fs new file mode 100644 index 0000000000..583a92e526 --- /dev/null +++ b/tests/service/data/AssemblyResolveProblem/Configuration.fs @@ -0,0 +1,11 @@ +namespace AssemblyResolveProblem.Configuration + +open FSharp.Configuration + +type ConfigFile = YamlConfig<"Config.yaml"> + +type TestType () = + let c = ConfigFile() + do + c.Load(@"C:\Users\dragon\Documents\Projects\FSharp.Compiler.Service\tests\service\data\AssemblyResolveProblem\config.yaml") + diff --git a/tests/service/data/AssemblyResolveProblem/Script.fsx b/tests/service/data/AssemblyResolveProblem/Script.fsx new file mode 100644 index 0000000000..dd00e5efec --- /dev/null +++ b/tests/service/data/AssemblyResolveProblem/Script.fsx @@ -0,0 +1,8 @@ +// Learn more about F# at http://fsharp.org. See the 'F# Tutorial' project +// for more guidance on F# programming. + +#load "Configuration.fs" +open Sample_VS2015_FSharp_Library_net45_assemblyResolveProblem + +// Define your library scripting code here + diff --git a/tests/service/data/AssemblyResolveProblem/paket.references b/tests/service/data/AssemblyResolveProblem/paket.references new file mode 100644 index 0000000000..f576f0a288 --- /dev/null +++ b/tests/service/data/AssemblyResolveProblem/paket.references @@ -0,0 +1 @@ +FSharp.Configuration \ No newline at end of file