Move FSharpTestProjects to the TestAssets folder.
This commit is contained in:
parent
806e506368
commit
247b8106d8
12 changed files with 0 additions and 0 deletions
15
TestAssets/FSharpTestProjects/CompileFail/Program.fs
Normal file
15
TestAssets/FSharpTestProjects/CompileFail/Program.fs
Normal file
|
@ -0,0 +1,15 @@
|
|||
// 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 TestApp
|
||||
|
||||
open System
|
||||
open System.Diagnostics
|
||||
|
||||
module Program =
|
||||
|
||||
[<EntryPoint>]
|
||||
let Main (args: string array) =
|
||||
this will not compile !
|
||||
|
||||
0
|
20
TestAssets/FSharpTestProjects/CompileFail/project.json
Normal file
20
TestAssets/FSharpTestProjects/CompileFail/project.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"version": "1.0.0-*",
|
||||
"compilationOptions": {
|
||||
"emitEntryPoint": true
|
||||
},
|
||||
"compilerName": "fsc",
|
||||
"compileFiles": [
|
||||
"Program.fs"
|
||||
],
|
||||
"dependencies": {
|
||||
"Microsoft.FSharp.Core.netcore": "1.0.0-alpha-151221",
|
||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
||||
},
|
||||
|
||||
"frameworks": {
|
||||
"dnxcore50": {
|
||||
"imports": "portable-net45+win8"
|
||||
}
|
||||
}
|
||||
}
|
20
TestAssets/FSharpTestProjects/TestApp/FSharpTestApp.xproj
Normal file
20
TestAssets/FSharpTestProjects/TestApp/FSharpTestApp.xproj
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.Props" Condition="'$(VSToolsPath)' != ''" />
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>a666217d-2aca-4866-b109-ea476e51c7aa</ProjectGuid>
|
||||
<RootNamespace>FSharpTestApp</RootNamespace>
|
||||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">..\..\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
|
||||
<OutputPath Condition="'$(OutputPath)'=='' ">..\..\artifacts\bin\$(MSBuildProjectName)\</OutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||
</Project>
|
16
TestAssets/FSharpTestProjects/TestApp/Program.fs
Normal file
16
TestAssets/FSharpTestProjects/TestApp/Program.fs
Normal file
|
@ -0,0 +1,16 @@
|
|||
// 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 TestApp
|
||||
|
||||
open System
|
||||
open System.Diagnostics
|
||||
|
||||
module Program =
|
||||
|
||||
open TestLibrary
|
||||
|
||||
[<EntryPoint>]
|
||||
let Main (args: string array) =
|
||||
printfn "%s" (TestLibrary.Helper.GetMessage())
|
||||
0
|
21
TestAssets/FSharpTestProjects/TestApp/project.json
Normal file
21
TestAssets/FSharpTestProjects/TestApp/project.json
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"version": "1.0.0-*",
|
||||
"compilationOptions": {
|
||||
"emitEntryPoint": true
|
||||
},
|
||||
"compilerName": "fsc",
|
||||
"compileFiles": [
|
||||
"Program.fs"
|
||||
],
|
||||
"dependencies": {
|
||||
"TestLibrary": "1.0.0-*",
|
||||
"NETStandard.Library": "1.0.0-rc2-23811",
|
||||
"Microsoft.FSharp.Core.netcore": "1.0.0-alpha-151221",
|
||||
},
|
||||
|
||||
"frameworks": {
|
||||
"dnxcore50": {
|
||||
"imports": "portable-net45+win8"
|
||||
}
|
||||
}
|
||||
}
|
19
TestAssets/FSharpTestProjects/TestAppWithArgs/Program.fs
Normal file
19
TestAssets/FSharpTestProjects/TestAppWithArgs/Program.fs
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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 TestApp
|
||||
|
||||
open System
|
||||
open System.Diagnostics
|
||||
|
||||
module Program =
|
||||
|
||||
[<EntryPoint>]
|
||||
let Main args =
|
||||
printfn "Hello World!"
|
||||
|
||||
printfn "I was passed %d args:" args.Length
|
||||
|
||||
args |> Array.iter (printfn "arg: [%s]")
|
||||
|
||||
0
|
20
TestAssets/FSharpTestProjects/TestAppWithArgs/project.json
Normal file
20
TestAssets/FSharpTestProjects/TestAppWithArgs/project.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"version": "1.0.0-*",
|
||||
"compilationOptions": {
|
||||
"emitEntryPoint": true
|
||||
},
|
||||
"compilerName": "fsc",
|
||||
"compileFiles": [
|
||||
"Program.fs"
|
||||
],
|
||||
"dependencies": {
|
||||
"Microsoft.FSharp.Core.netcore": "1.0.0-alpha-151221",
|
||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
||||
},
|
||||
|
||||
"frameworks": {
|
||||
"dnxcore50": {
|
||||
"imports": "portable-net45+win8"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.Props" Condition="'$(VSToolsPath)' != ''" />
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>ec801982-096b-4af3-a42b-7881b1a7380e</ProjectGuid>
|
||||
<RootNamespace>FSharpTestLibrary</RootNamespace>
|
||||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">..\..\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
|
||||
<OutputPath Condition="'$(OutputPath)'=='' ">..\..\artifacts\bin\$(MSBuildProjectName)\</OutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||
</Project>
|
12
TestAssets/FSharpTestProjects/TestLibrary/Helper.fs
Normal file
12
TestAssets/FSharpTestProjects/TestLibrary/Helper.fs
Normal file
|
@ -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 ()
|
12
TestAssets/FSharpTestProjects/TestLibrary/Helper2.fs
Normal file
12
TestAssets/FSharpTestProjects/TestLibrary/Helper2.fs
Normal file
|
@ -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!")
|
17
TestAssets/FSharpTestProjects/TestLibrary/project.json
Normal file
17
TestAssets/FSharpTestProjects/TestLibrary/project.json
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"version": "1.0.0-*",
|
||||
"dependencies": {
|
||||
"Microsoft.FSharp.Core.netcore": "1.0.0-alpha-151221",
|
||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
||||
},
|
||||
"compilerName": "fsc",
|
||||
"compileFiles": [
|
||||
"Helper2.fs",
|
||||
"Helper.fs"
|
||||
],
|
||||
"frameworks": {
|
||||
"dnxcore50": {
|
||||
"imports": "portable-net45+win8"
|
||||
}
|
||||
}
|
||||
}
|
3
TestAssets/FSharpTestProjects/global.json
Normal file
3
TestAssets/FSharpTestProjects/global.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"projects": [ ".", "../../src" ]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue