Skip to content

Commit 8ffb29d

Browse files
committed
fix compile errors
1 parent 70315bc commit 8ffb29d

6 files changed

Lines changed: 15 additions & 19 deletions

File tree

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<OutputType>Library</OutputType>
4+
<OutputType>Exe</OutputType>
55
<TargetFramework>net10.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>
99
<Compile Include="compareoptions_stringsort.fs" />
10-
<Compile Include="compareoptions_values.fs" />
1110
</ItemGroup>
1211

1312
</Project>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net10.0</TargetFramework>
6+
</PropertyGroup>
7+
8+
<ItemGroup>
9+
<Compile Include="compareoptions_values.fs" />
10+
</ItemGroup>
11+
12+
</Project>

snippets/fsharp/System.IO/Directory/Overview/class7.fs

Lines changed: 0 additions & 14 deletions
This file was deleted.

snippets/fsharp/System.IO/Directory/Overview/fs.fsproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<Compile Include="class2.fs" />
99
<Compile Include="class3.fs" />
1010
<Compile Include="class6.fs" />
11-
<Compile Include="class7.fs" />
1211
<Compile Include="class4.fs" />
1312
<Compile Include="class5.fs" />
1413
<Compile Include="class1.fs" />

snippets/fsharp/System.Threading.Tasks/Task/Wait/Wait6.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ let t =
1717
printfn $"Mean: {float sum / float n:N2}"
1818
printfn $"N: {n:N0}")
1919

20-
let ts = TimeSpan.FromMilliseconds 150
20+
let ts = TimeSpan.FromMilliseconds 150.0
2121

2222
if t.Wait ts |> not then
2323
printfn "The timeout interval elapsed."

snippets/fsharp/System.Threading/Thread/Join/join1c.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let threadProc () =
1313
Thread.CurrentThread.Name = "Thread1"
1414
&& thread2.ThreadState <> ThreadState.Unstarted
1515
then
16-
if TimeSpan.FromSeconds 2 |> thread2.Join then
16+
if TimeSpan.FromSeconds 2.0 |> thread2.Join then
1717
printfn "Thread2 has termminated."
1818
else
1919
printfn "The timeout has elapsed and Thread1 will resume."

0 commit comments

Comments
 (0)