@@ -2185,7 +2185,9 @@ let ``Test Project13 all symbols`` () =
21852185 [ " type System.IComparable" ;
21862186 " type System.IFormattable" ;
21872187 " type System.IConvertible" ;
2188+ #if ! DOTNETCORE
21882189 " type System.Runtime.Serialization.ISerializable" ;
2190+ #endif
21892191 " type System.IComparable<System.DateTime>" ;
21902192 " type System.IEquatable<System.DateTime>" ])
21912193
@@ -3587,14 +3589,22 @@ let _ = XmlProvider<"<root><value>1</value><value>3</value></root>">.GetSample()
35873589 yield @" -r:" + sysLib " System.Xml.Linq" |]
35883590 let options = checker.GetProjectOptionsFromCommandLineArgs ( projFileName, args)
35893591
3592+ #if DOTNETCORE
3593+ [<Test; Ignore " Disabled until FSharp.Data.dll is build for dotnet core." >]
3594+ #else
35903595[<Test>]
3596+ #endif
35913597let ``Test Project25 whole project errors`` () =
35923598 let wholeProjectResults = checker.ParseAndCheckProject( Project25.options) |> Async.RunSynchronously
35933599 for e in wholeProjectResults.Errors do
35943600 printfn " Project25 error: <<<%s >>>" e.Message
35953601 wholeProjectResults.Errors.Length |> shouldEqual 0
35963602
3603+ #if DOTNETCORE
3604+ [<Test; Ignore " Disabled until FSharp.Data.dll is build for dotnet core." >]
3605+ #else
35973606[<Test>]
3607+ #endif
35983608let ``Test symbol uses of type - provided members`` () =
35993609 let wholeProjectResults = checker.ParseAndCheckProject( Project25.options) |> Async.RunSynchronously
36003610 let backgroundParseResults1 , backgroundTypedParse1 =
@@ -3647,7 +3657,11 @@ let ``Test symbol uses of type-provided members`` () =
36473657
36483658 usesOfGetSampleSymbol |> shouldEqual [|( " file1" , (( 5 , 8 ), ( 5 , 25 ))); ( " file1" , (( 10 , 8 ), ( 10 , 78 )))|]
36493659
3660+ #if DOTNETCORE
3661+ [<Test; Ignore " Disabled until FSharp.Data.dll is build for dotnet core." >]
3662+ #else
36503663[<Test>]
3664+ #endif
36513665let ``Test symbol uses of type - provided types`` () =
36523666 let wholeProjectResults = checker.ParseAndCheckProject( Project25.options) |> Async.RunSynchronously
36533667 let backgroundParseResults1 , backgroundTypedParse1 =
@@ -4074,9 +4088,14 @@ let ``Test project31 C# type attributes`` () =
40744088 yield output.Replace( " \r\n " , " \n " ) .Replace( " \n " , " " ) ]
40754089 |> set
40764090 |> shouldEqual
4077- ( set [ " (DebuggerTypeProxyAttribute, [], [])" ;
4078- """ (DebuggerDisplayAttribute, [(type Microsoft.FSharp.Core.string, "Count = {Count}")], [])""" ;
4079- """ (DefaultMemberAttribute, [(type Microsoft.FSharp.Core.string, "Item")], [])""" ])
4091+ ( set [
4092+ " (DebuggerTypeProxyAttribute, [], [])" ;
4093+ """ (DebuggerDisplayAttribute, [(type Microsoft.FSharp.Core.string, "Count = {Count}")], [])""" ;
4094+ """ (DefaultMemberAttribute, [(type Microsoft.FSharp.Core.string, "Item")], [])""" ;
4095+ #if DOTNETCORE
4096+ " (__DynamicallyInvokableAttribute, [], [])" ;
4097+ #endif
4098+ ])
40804099
40814100[<Test>]
40824101let ``Test project31 C # method attributes`` () =
@@ -4096,8 +4115,11 @@ let ``Test project31 C# method attributes`` () =
40964115 objMethodsAttributes
40974116 |> set
40984117 |> shouldEqual
4099- ( set [ " (SecuritySafeCriticalAttribute, [], [])" ;
4100- " (CLSCompliantAttribute, [(type Microsoft.FSharp.Core.bool, false)], [])" ])
4118+ ( set [
4119+ #if ! DOTNETCORE
4120+ " (SecuritySafeCriticalAttribute, [], [])" ;
4121+ #endif
4122+ " (CLSCompliantAttribute, [(type Microsoft.FSharp.Core.bool, false)], [])" ])
41014123
41024124[<Test>]
41034125let ``Test project31 Format C # type attributes`` () =
@@ -4112,7 +4134,11 @@ let ``Test project31 Format C# type attributes`` () =
41124134 |> shouldEqual
41134135 ( set [ " [<DebuggerTypeProxyAttribute (typeof<Mscorlib_CollectionDebugView<>>)>]" ;
41144136 """ [<DebuggerDisplayAttribute ("Count = {Count}")>]""" ;
4115- """ [<Reflection.DefaultMemberAttribute ("Item")>]""" ])
4137+ """ [<Reflection.DefaultMemberAttribute ("Item")>]""" ;
4138+ #if DOTNETCORE
4139+ " [<__DynamicallyInvokableAttribute ()>]" ;
4140+ #endif
4141+ ])
41164142
41174143[<Test>]
41184144let ``Test project31 Format C # method attributes`` () =
@@ -4130,7 +4156,10 @@ let ``Test project31 Format C# method attributes`` () =
41304156 |> set
41314157 |> shouldEqual
41324158 ( set [ " [<CLSCompliantAttribute (false)>]" ;
4133- " [<Security.SecuritySafeCriticalAttribute ()>]" ])
4159+ #if ! DOTNETCORE
4160+ " [<Security.SecuritySafeCriticalAttribute ()>]" ;
4161+ #endif
4162+ ])
41344163
41354164module Project32 =
41364165 open System.IO
@@ -4398,8 +4427,15 @@ module Project35b =
43984427 let cleanFileName a = if a = fileName1 then " file1" else " ??"
43994428
44004429 let fileNames = [ fileName1]
4401- let options = checker.GetProjectOptionsFromScript( fileName1, fileSource1) |> Async.RunSynchronously
4402-
4430+ #if TODO_ REWORK_ ASSEMBLY_ LOAD
4431+ let projPath = Path.ChangeExtension( fileName1, " .fsproj" )
4432+ let dllPath = Path.ChangeExtension( fileName1, " .dll" )
4433+ let args = mkProjectCommandLineArgs( dllPath, fileNames)
4434+ let args2 = Array.append args [| " -r: notexist.dll" |]
4435+ let options = checker.GetProjectOptionsFromCommandLineArgs ( projPath, args2)
4436+ #else
4437+ let options = checker.GetProjectOptionsFromScript( fileName1, fileSource1) |> Async.RunSynchronously
4438+ #endif
44034439
44044440[<Test>]
44054441let ``Test project35b Dependency files for ParseFileInProject`` () =
0 commit comments