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

Commit92fc550

Browse files
jojKevinRansom
authored andcommitted
Check for non-empty paths when stripping ending semicolon (#3319)
In some projects (Android in particular) the framework paths are empty. This results in an exception when trying to open the Add References dialog. This behavior is reported in issuedotnet/fsharp#3318. This commit resolves that issue.
1 parent9fe6e22 commit92fc550

File tree

1 file changed

+1
-1
lines changed
  • vsintegration/src/FSharp.ProjectSystem.FSharp

1 file changed

+1
-1
lines changed

‎vsintegration/src/FSharp.ProjectSystem.FSharp/Project.fs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ namespace rec Microsoft.VisualStudio.FSharp.ProjectSystem
10121012

10131013
letstripEndingSemicolon(sb:StringBuilder)=
10141014
letlen= sb.Length
1015-
if sb.[len-1]=';'then sb.Remove(len-1,1)|> ignore
1015+
iflen>0&&sb.[len-1]=';'then sb.Remove(len-1,1)|> ignore
10161016
()
10171017

10181018
lettargetFrameworkMoniker= this.GetTargetFrameworkMoniker()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp