Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5d1843b

Browse files
cartermpdsyme
authored andcommitted
Fix linux build (dotnet#5748)
* Attempt to fix linux build* Clean up
1 parent4529c8f commit5d1843b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎src/scripts/scriptlib.fsx‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ module Scripting =
6060

6161
let(++)a b= Path.Combine(a,b)
6262

63-
letgetBasenamea= Path.GetFileNameWithoutExtension a
64-
letgetFullPath a= Path.GetFullPath a
65-
letgetFilenamea= Path.GetFileName a
66-
letgetDirectoryNamea= Path.GetDirectoryName a
63+
letgetBasename(a:string)= Path.GetFileNameWithoutExtension(a)
64+
letgetFullPath a= Path.GetFullPath(a)
65+
letgetFilename(a:string)= Path.GetFileName(a)
66+
letgetDirectoryName(a:string)= Path.GetDirectoryName(a)
6767

6868
letcopyFile source dir=
6969
letdest=
7070
ifnot(Directory.Exists dir)then Directory.CreateDirectory dir|>ignore
71-
letresult= Path.Combine(dir,Path.GetFileName source)
71+
letresult= Path.Combine(dir,getFilename source)
7272
result
7373
//printfn "Copy %s --> %s" source dest
7474
File.Copy(source, dest,true)
@@ -96,7 +96,7 @@ module Scripting =
9696
letprocessExePath baseDir exe=
9797
if Path.IsPathRooted(exe)then exe
9898
else
99-
matchPath.GetDirectoryName(exe)with
99+
matchgetDirectoryNameexewith
100100
|""-> exe
101101
|_-> Path.Combine(baseDir,exe)|> Path.GetFullPath
102102

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp