File tree 3 files changed +30
-3
lines changed
TestAssets/TestProjects/FSharpTestAppSimple
3 files changed +30
-3
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright (c) .NET Foundation and contributors. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+ module ConsoleApplication.Program
4
+
5
+ open System
6
+
7
+ [<EntryPoint>]
8
+ let main argv =
9
+ printfn " Hello World!"
10
+ 0
Original file line number Diff line number Diff line change
1
+ <Project Sdk =" Microsoft.NET.Sdk" ToolsVersion =" 15.0" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
2
+ <Import Project =" $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), testAsset.props))\testAsset.props" />
3
+
4
+ <PropertyGroup >
5
+ <TargetFramework >netcoreapp2.0</TargetFramework >
6
+ <OutputType >Exe</OutputType >
7
+ <!-- Issue: https://github.com/dotnet/sdk/issues/1150 -->
8
+ <DisableImplicitPackageTargetFallback >true</DisableImplicitPackageTargetFallback >
9
+ </PropertyGroup >
10
+
11
+ <ItemGroup >
12
+ <Compile Include =" Program.fs" />
13
+ </ItemGroup >
14
+
15
+ </Project >
Original file line number Diff line number Diff line change @@ -157,10 +157,12 @@ public void PackAddsCorrectFilesForProjectsWithOutputNameSpecified()
157
157
. And . Contain ( e => e . FullName == "lib/netstandard1.5/MyLibrary.pdb" ) ;
158
158
}
159
159
160
- [ Fact ]
161
- public void PackWorksWithLocalProject ( )
160
+ [ Theory ]
161
+ [ InlineData ( "C#" , "TestAppSimple" ) ]
162
+ [ InlineData ( "F#" , "FSharpTestAppSimple" ) ]
163
+ public void PackWorksWithLocalProject ( string language , string projectName )
162
164
{
163
- var testInstance = TestAssets . Get ( "TestAppSimple" )
165
+ var testInstance = TestAssets . Get ( projectName )
164
166
. CreateInstance ( )
165
167
. WithSourceFiles ( )
166
168
. WithRestoreFiles ( ) ;
You can’t perform that action at this time.
0 commit comments