Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update installcontext_installcontext.vb #9226

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
' System.Configuration.Install.InstallContext

Check failure on line 1 in snippets/visualbasic/VS_Snippets_CLR/InstallContext_InstallContext/VB/installcontext_installcontext.vb

View workflow job for this annotation

GitHub Actions / snippets-build

ERROR: Project missing. A project (and optionally a solution file) must be in this directory or one of the parent directories to validate and build this code.
' System.Configuration.Install.InstallContext.InstallContext()
' System.Configuration.Install.InstallContext.InstallContext(string, string[])
' System.Configuration.Install.InstallContext.IsParameterTrue
Expand Down Expand Up @@ -79,7 +79,7 @@
If args.Length < 2 Then
' <Snippet2>
' There are no command line arguments, create an empty 'InstallContext'.
myInstallObject.myInstallContext = New InstallContext()
myInstallObject.Context = New InstallContext()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this is correct. InstallContext_Example defines a field called myInstallContext on line 29.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, there is no property or field named Context

' </Snippet2>
ElseIf args.Length = 2 And args(1) = "/?" Then
' Display the 'Help' for this utility.
Expand All @@ -97,7 +97,7 @@
For i = 1 To args.Length - 1
commandLine(i-1) = args(i)
Next i
myInstallObject.myInstallContext = _
myInstallObject.Context = _
New InstallContext("/LogFile:example.log", commandLine)
' </Snippet3>
End If
Expand All @@ -116,4 +116,4 @@
End Class
End Namespace 'MyInstallContextNamespace

' </Snippet1>
' </Snippet1>
Loading