You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Select Case options.vbRuntimeKind
Case VBRuntimeKind.DefaultRuntime
runtimes.Add(Path.Combine(compilerHost.GetSdkPath(), "Microsoft.VisualBasic.dll"))
Case VBRuntimeKind.SpecifiedRuntime
If options.wszSpecifiedVBRuntime Is Nothing Then
Throw New ArgumentException()
End If
' If they specified a fully qualified file, use it
If File.Exists(options.wszSpecifiedVBRuntime) Then
runtimes.Add(options.wszSpecifiedVBRuntime)
Else
' If it's just a filename, try to find it in the SDK path.
If options.wszSpecifiedVBRuntime <> Path.GetFileName(options.wszSpecifiedVBRuntime) Then
Throw New ArgumentException()
End If
Dim runtimePath = Path.Combine(compilerHost.GetSdkPath(), options.wszSpecifiedVBRuntime)
If File.Exists(runtimePath) Then
runtimes.Add(runtimePath)
Else
Throw New ArgumentException()
End If
End If
End Select
Handling invalid content of .vbproj files needs to be hardened.
ConvertedVisualBasicProjectOptions constructor may throw various exceptions, which VisualBasicProject.SetCompilerOptions then converts to FailFast.
The text was updated successfully, but these errors were encountered: