From d3e7ed2952cb4017293aaa00dc3d950243855710 Mon Sep 17 00:00:00 2001 From: Enrico Sada Date: Tue, 22 Nov 2016 15:08:44 +0100 Subject: [PATCH 1/2] add build outoftree test --- test-msbuild/run-tests.targets | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test-msbuild/run-tests.targets b/test-msbuild/run-tests.targets index 21b010a..27fa7b5 100644 --- a/test-msbuild/run-tests.targets +++ b/test-msbuild/run-tests.targets @@ -84,6 +84,19 @@ + + + $(MSBuildThisFileDirectory) + $(MSBuildThisFileDirectory)TestLibrary + "$(ProjectDirectory)\TestLibrary.fsproj" + + + + + + + + $(MSBuildThisFileDirectory)TestLibraryCrossGen From 8e2f2b00bf5c052c05c18628011fb881f5963315 Mon Sep 17 00:00:00 2001 From: Enrico Sada Date: Tue, 22 Nov 2016 15:35:42 +0100 Subject: [PATCH 2/2] add failing test "multiple fsproj in same dir" --- .../TestMultipleLibraryInSameDir/Helper.fs | 12 +++++ .../TestMultipleLibraryInSameDir/Helper2.fs | 12 +++++ .../Test1Library.fsproj | 46 +++++++++++++++++++ .../Test2Library.fsproj | 46 +++++++++++++++++++ test-msbuild/run-tests.targets | 23 ++++++++++ 5 files changed, 139 insertions(+) create mode 100644 test-msbuild/TestMultipleLibraryInSameDir/Helper.fs create mode 100644 test-msbuild/TestMultipleLibraryInSameDir/Helper2.fs create mode 100644 test-msbuild/TestMultipleLibraryInSameDir/Test1Library.fsproj create mode 100644 test-msbuild/TestMultipleLibraryInSameDir/Test2Library.fsproj diff --git a/test-msbuild/TestMultipleLibraryInSameDir/Helper.fs b/test-msbuild/TestMultipleLibraryInSameDir/Helper.fs new file mode 100644 index 0000000..a29f6ac --- /dev/null +++ b/test-msbuild/TestMultipleLibraryInSameDir/Helper.fs @@ -0,0 +1,12 @@ +// Copyright (c) .NET Foundation and contributors. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +namespace TestLibrary + +open Lib + +type Helper() = + + static member GetMessage () = Lib.message () + + static member SayHi () = Lib.sayHi () diff --git a/test-msbuild/TestMultipleLibraryInSameDir/Helper2.fs b/test-msbuild/TestMultipleLibraryInSameDir/Helper2.fs new file mode 100644 index 0000000..6d374f7 --- /dev/null +++ b/test-msbuild/TestMultipleLibraryInSameDir/Helper2.fs @@ -0,0 +1,12 @@ +// Copyright (c) .NET Foundation and contributors. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +module Lib + +open System + +let message () = + "This string came from the test library!" + +let sayHi () = + Console.WriteLine("Hello there!") diff --git a/test-msbuild/TestMultipleLibraryInSameDir/Test1Library.fsproj b/test-msbuild/TestMultipleLibraryInSameDir/Test1Library.fsproj new file mode 100644 index 0000000..86f57cf --- /dev/null +++ b/test-msbuild/TestMultipleLibraryInSameDir/Test1Library.fsproj @@ -0,0 +1,46 @@ + + + + + + + netstandard1.6 + + + + 1.0.0-preview3 + Enrico Sada + + + + + + + + + + + 1.6.0 + + + $(MicrosoftFSharpCorenetcoreVersion) + + + $(MicrosoftNETSdkVersion) + All + + + $(FSharpNETSdkVersion) + All + + + + + + 1.0.0-preview2-020000 + + + + + + diff --git a/test-msbuild/TestMultipleLibraryInSameDir/Test2Library.fsproj b/test-msbuild/TestMultipleLibraryInSameDir/Test2Library.fsproj new file mode 100644 index 0000000..86f57cf --- /dev/null +++ b/test-msbuild/TestMultipleLibraryInSameDir/Test2Library.fsproj @@ -0,0 +1,46 @@ + + + + + + + netstandard1.6 + + + + 1.0.0-preview3 + Enrico Sada + + + + + + + + + + + 1.6.0 + + + $(MicrosoftFSharpCorenetcoreVersion) + + + $(MicrosoftNETSdkVersion) + All + + + $(FSharpNETSdkVersion) + All + + + + + + 1.0.0-preview2-020000 + + + + + + diff --git a/test-msbuild/run-tests.targets b/test-msbuild/run-tests.targets index 27fa7b5..c7c93b1 100644 --- a/test-msbuild/run-tests.targets +++ b/test-msbuild/run-tests.targets @@ -97,6 +97,23 @@ + + + + $(MSBuildThisFileDirectory)TestMultipleLibraryInSameDir + Test1Library.fsproj + Test2Library.fsproj + + + + + + + + + + + $(MSBuildThisFileDirectory)TestLibraryCrossGen @@ -183,12 +200,18 @@ + + + + + +