File tree 2 files changed +17
-3
lines changed
2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## [ 1.0.4] - 2024-08-22
4
+
5
+ ### Fixed
6
+
7
+ * Fixed support for non-FSharp.Core namespaces when using a preview SDK.
8
+
3
9
## [ 1.0.3] - 2024-08-20
4
10
5
11
### Fixed
Original file line number Diff line number Diff line change @@ -81,9 +81,17 @@ let toFallbackXmlPath (xmlPath: string) =
81
81
let sep = Path.DirectorySeparatorChar
82
82
let xmlPath = replaceLast xmlPath " shared" " packs"
83
83
let xmlPath = replaceLast xmlPath $" .App{sep}" $" .App.Ref{sep}"
84
- let version = Regex.Match( xmlPath, @" \d+\.\d+\.\d+" ) .Value
85
- let release = version.Substring( 0 , version.LastIndexOf( '.' ))
86
- let xmlPath = replaceLast xmlPath version $" {version}{sep}ref{sep}net{release}"
84
+ let splitted = xmlPath.Split( sep)
85
+ let fullVersion = splitted.[ splitted.Length - 2 ]
86
+
87
+ let shortVersion =
88
+ fullVersion.Split( " ." )
89
+ |> Array.take 2
90
+ |> fun ns -> System.String.Join( " ." , ns)
91
+
92
+ let xmlPath =
93
+ replaceLast xmlPath fullVersion $" {fullVersion}{sep}ref{sep}net{shortVersion}"
94
+
87
95
xmlPath
88
96
89
97
let tryGetXmlDocument xmlPath =
You can’t perform that action at this time.
0 commit comments