Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Fix CI build - #32471

Merged
stephentoub merged 1 commit into
dotnet:masterfrom
safern:FixCiBuild
Sep 26, 2018
Merged

stephentoub merged 1 commit into
dotnet:masterfrom
safern:FixCiBuild

Conversation

@safern

@safern safern commented Sep 26, 2018

Copy link
Copy Markdown
Member

Fix CI build broken in: #32374

cc: @pjanotti @wfurt @stephentoub @danmosemsft @weshaggard

@safern

safern commented Sep 26, 2018 •

Copy link
Copy Markdown
Member Author

Build is failing with:

17:25:33 System\IO\Ports\SerialStream.Windows.cs(605,50): error CS0103: The name 'portNumber' does not exist in the current context [D:\j\workspace\windows-TGrou---2a8f9c29\src\System.IO.Ports\src\System.IO.Ports.csproj]

after that change because of the else if, since the variable is declared inline inside the else if statement, when we tried to use it outside the else if it doesn't exist in that context.

@stephentoub

Copy link
Copy Markdown
Member

Thank you for fixing this. I just hit it and was about to do the same.

@pjanotti

Copy link
Copy Markdown
Contributor

Thanks @safern.

@karelz karelz added this to the 3.0 milestone Oct 8, 2018
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants