Skip to content

Fixing code style to avoid build fail#1428

Closed
vladimir-krestov wants to merge 1 commit intomasterfrom
dev/v-vlkres/FixingBuildFail
Closed

Fixing code style to avoid build fail#1428
vladimir-krestov wants to merge 1 commit intomasterfrom
dev/v-vlkres/FixingBuildFail

Conversation

@vladimir-krestov
Copy link
Contributor

@vladimir-krestov vladimir-krestov commented Jul 19, 2019

Proposed changes

  • Made service.GetTestAccessor() construction as separate variable. This will avoid the build fail and excessive calls to GetTestAccessor() method.

Before

After pulling master branch project build is fail for the reason that the compiler can't recognize GetTestAccessor() method.

Screenshots

image

image

After

Project build is successful

Test environment(s)

  • Microsoft Windows [Version 10.0.18362.175]
  • .NET Core SDK. Version: 3.0.0-preview8-27916-13
Microsoft Reviewers: Open in CodeFlow

@vladimir-krestov vladimir-krestov requested a review from RussKie July 19, 2019 14:20
@vladimir-krestov vladimir-krestov requested a review from a team as a code owner July 19, 2019 14:20
@vladimir-krestov vladimir-krestov self-assigned this Jul 19, 2019
Copy link
Contributor

@sharwell sharwell left a comment

Choose a reason for hiding this comment

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

This should not be necessary. Reviewing now.

@ghost ghost added the waiting-author-feedback The team requires more information from the author label Jul 19, 2019
@sharwell
Copy link
Contributor

sharwell commented Jul 19, 2019

I tried to build the latest master commit and got this:

C:\Users\sam\.nuget\packages\microsoft.dotnet.genfacades\1.0.0-beta.19367.6\build\Microsoft.DotNet.GenPartialFacadeSource.targets(30,5): error : Could not load file or assembly 'System.Collections.Immutable, Version=1.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

@sharwell
Copy link
Contributor

I'm not sure why the build was failing for you, but either way the issues should be addressed by #1430.

@RussKie
Copy link
Contributor

RussKie commented Jul 19, 2019

I tried to build the latest master commit and got this:

C:\Users\sam.nuget\packages\microsoft.dotnet.genfacades\1.0.0-beta.19367.6\build\Microsoft.DotNet.GenPartialFacadeSource.targets(30,5): error : Could not load file or assembly 'System.Collections.Immutable, Version=1.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

This was addressed in dotnet/arcade#3310 and #1417

@sharwell
Copy link
Contributor

@RussKie I hit this error using b038ebe

@vladimir-krestov
Copy link
Contributor Author

All have different dev environment. For some developers, building the project can cause problems like mine. In particular, this applies to third-party developers. I propose to make changes to reduce the likelihood of problems when building the project.

@ghost ghost removed the waiting-author-feedback The team requires more information from the author label Jul 19, 2019
@vladimir-krestov
Copy link
Contributor Author

@sharwell After merging #1430 into the master branch my problem was fixed. Thanks.
@RussKie If the problem is solved, I think you can close this PR without merging.

@RussKie RussKie closed this Jul 19, 2019
@vladimir-krestov vladimir-krestov deleted the dev/v-vlkres/FixingBuildFail branch August 7, 2019 07:22
@ghost ghost locked as resolved and limited conversation to collaborators Feb 5, 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.

3 participants