Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikayla Hutchinson <m.j.hutchinson@gmail.com>2018-08-16 18:01:46 +0300
committerMikayla Hutchinson <m.j.hutchinson@gmail.com>2018-08-16 18:01:46 +0300
commit3ef9705f871161172c42b6b902bdb4c22fa7c761 (patch)
tree6d8c9bbc5b1fc3c5990156777a1ea95c4a7845eb
parent02271fa9dea377a7dfa8f0b70011025cf83b70be (diff)
[F#] Hack around forms template bug breaking tests
-rw-r--r--main/external/fsharpbinding/MonoDevelop.FSharp.Tests/TemplateTests.fs6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/external/fsharpbinding/MonoDevelop.FSharp.Tests/TemplateTests.fs b/main/external/fsharpbinding/MonoDevelop.FSharp.Tests/TemplateTests.fs
index efd7bc1975..fa48ce0e71 100644
--- a/main/external/fsharpbinding/MonoDevelop.FSharp.Tests/TemplateTests.fs
+++ b/main/external/fsharpbinding/MonoDevelop.FSharp.Tests/TemplateTests.fs
@@ -163,6 +163,12 @@ type ``Template tests``() =
Directory.CreateDirectory templatesDir |> ignore
let configFileName = templatesDir/"NuGet.Config"
File.WriteAllText (configFileName, config, Text.Encoding.UTF8)
+ // HACK: Work around issue in "Xamarin Forms FSharp ClassLibrary" test
+ // the template is broken and doesn't define a framework, so gets the default net45
+ // however the base tests UnitTests.TestBase change the default to net40 resulting in
+ //"Could not install package 'FSharp.Core 4.3.3'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0',"
+ MonoDevelop.Projects.Services.ProjectService.DefaultTargetFramework
+ <- Runtime.SystemAssemblyService.GetTargetFramework (MonoDevelop.Core.Assemblies.TargetFrameworkMoniker.NET_4_5);
[<Test;AsyncStateMachine(typeof<Task>)>]
member x.``FSharp portable project``() =