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

[release/7.0] Could not load file or assembly System.Text.Json Version=7.0.0.0,or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) #77988

Closed
carlossanlop opened this issue Nov 7, 2022 · 31 comments
Labels
area-Infrastructure-libraries blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab

Comments

@carlossanlop
Copy link
Member

carlossanlop commented Nov 7, 2022

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=72698
Build error leg or test failing: Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
Pull request: #77187

Error Message

Fill the error message using known issues guidance.

{
  "ErrorMessage": "The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)",
  "BuildRetry": false
}

Report

Build Definition Test Pull Request
83072 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
82919 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78333
82880 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78331
81499 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78273
80982 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78256
81193 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
81098 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78258
80937 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
80500 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78235
80837 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
80506 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #77831
79957 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #77831
80467 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
80462 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
78936 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78147
79254 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78178
80014 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
79977 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
79966 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78107
79962 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78122
79320 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
79788 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
79711 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
79209 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78174
78162 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78118
77991 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78122
78956 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78149
78488 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #77612
73673 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #77924
79507 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78107
77848 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #77831
78569 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #77818
75353 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
72698 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #77187

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 34
@carlossanlop carlossanlop added area-Infrastructure-libraries blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab labels Nov 7, 2022
@ghost
Copy link

ghost commented Nov 7, 2022

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

Issue Details

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=72698
Build error leg or test failing: Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
Pull request: #77187

Error Message

Fill the error message using known issues guidance.

{
  "ErrorMessage": "The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)",
  "BuildRetry": false
}
Author: carlossanlop
Assignees: -
Labels:

area-Infrastructure-libraries, blocking-clean-ci, Known Build Error

Milestone: -

@carlossanlop
Copy link
Member Author

@dotnet/area-system-text-json this is an error coming from System.Text.Json btw.

@ghost
Copy link

ghost commented Nov 7, 2022

Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis
See info in area-owners.md if you want to be subscribed.

Issue Details

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=72698
Build error leg or test failing: Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
Pull request: #77187

Error Message

Fill the error message using known issues guidance.

{
  "ErrorMessage": "The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)",
  "BuildRetry": false
}
Author: carlossanlop
Assignees: -
Labels:

area-System.Text.Json, blocking-clean-ci, Known Build Error

Milestone: -

@carlossanlop
Copy link
Member Author

carlossanlop commented Nov 10, 2022

Also showed up in the PR to update the arcade dependencies in 7.0: #78107

Queue: Libraries Build windows net48 x86 Release
Job: https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-78107-merge-ec3bc7608be8448d9f/Microsoft.Extensions.Logging.Console.Tests/1/console.5693599f.log?helixlogtype=result
Log file: https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-78107-merge-ec3bc7608be8448d9f/Microsoft.Extensions.Logging.Console.Tests/1/console.5693599f.log?helixlogtype=result

===========================================================================================================

C:\h\w\B85E09BA\w\B5100980\e>xunit.console.exe Microsoft.Extensions.Logging.Console.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing  
  Discovering: Microsoft.Extensions.Logging.Console.Tests (app domain = on [no shadow copy], method display = ClassAndMethod, method display options = None)
  Discovered:  Microsoft.Extensions.Logging.Console.Tests (found 110 of 112 test cases)
  Starting:    Microsoft.Extensions.Logging.Console.Tests (parallel test collections = on, max threads = 2)

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'System.Text.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
   at Microsoft.Extensions.Logging.ConsoleLoggerExtensions.AddConsole(ILoggingBuilder builder)
   at Microsoft.Extensions.DependencyInjection.LoggingServiceCollectionExtensions.AddLogging(IServiceCollection services, Action`1 configure)
   at Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.<>c.<AddConsole_IsOutputRedirected_ColorDisabled>b__21_0()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.DotNet.RemoteExecutor.Program.Main(String[] args)
    Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled [FAIL]
      Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Remote process failed with an unhandled exception.
      Stack Trace:
        
        Child exception:
          System.IO.FileLoadException: Could not load file or assembly 'System.Text.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        File name: 'System.Text.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
           at Microsoft.Extensions.Logging.ConsoleLoggerExtensions.AddConsole(ILoggingBuilder builder)
           at Microsoft.Extensions.DependencyInjection.LoggingServiceCollectionExtensions.AddLogging(IServiceCollection services, Action`1 configure)
           at Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.<>c.<AddConsole_IsOutputRedirected_ColorDisabled>b__21_0()
        
        WRN: Assembly binding logging is turned OFF.
        To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
        Note: There is some performance penalty associated with assembly bind failure logging.
        To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
        
        
        Child process:
          Microsoft.Extensions.Logging.Console.Tests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest+<>c Void <AddConsole_IsOutputRedirected_ColorDisabled>b__21_0()
        
        
  Finished:    Microsoft.Extensions.Logging.Console.Tests
=== TEST EXECUTION SUMMARY ===
   Microsoft.Extensions.Logging.Console.Tests  Total: 621, Errors: 0, Failed: 1, Skipped: 0, Time: 3.921s
----- end Thu 11/10/2022 18:29:41.14 ----- exit code 1 ----------------------------------------------------------

@carlossanlop
Copy link
Member Author

carlossanlop commented Nov 10, 2022

It seems this problem started after this 7.0 PR got merged: #73737 which introduced some System.Text.Json code in the affected tests.

Pinging @dotnet/area-extensions-logging for help fixing this.

@ghost
Copy link

ghost commented Nov 10, 2022

Tagging subscribers to this area: @dotnet/area-extensions-logging
See info in area-owners.md if you want to be subscribed.

Issue Details

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=72698
Build error leg or test failing: Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
Pull request: #77187

Error Message

Fill the error message using known issues guidance.

{
  "ErrorMessage": "The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)",
  "BuildRetry": false
}

Report

Build Definition Test Pull Request
75353 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
72698 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #77187

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 2 2
Author: carlossanlop
Assignees: -
Labels:

blocking-clean-ci, area-Extensions-Logging, Known Build Error

Milestone: -

@carlossanlop carlossanlop changed the title Could not load file or assembly System.Text.Json Version=7.0.0.0,or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) [release/7.0] Could not load file or assembly System.Text.Json Version=7.0.0.0,or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Nov 10, 2022
@tarekgh
Copy link
Member

tarekgh commented Nov 10, 2022

CC @eerhardt

@eerhardt
Copy link
Member

It seems this problem started after this 7.0 PR got merged: #73737

That PR was merged 3 months ago. How would that have caused this to start happening in the past week?

@carlossanlop
Copy link
Member Author

Hmm I can be wrong too. But it's the last change that this test project received in 7.0, and the addition of S.T.Json code was a big coincidence. I am also not seeing the same problem in any other test projects (so far).

@eerhardt
Copy link
Member

All the failures appear to be on .NET Framework. My suspicion is that something changed in the build infra or on .NET Framework that caused this to start failing. I don't think a PR from 3 months ago would have caused this, unless it has been failing for the last 3 months.

@eerhardt
Copy link
Member

Looking at the binlog, it looks like it is picking up 7.0.1 of STJ for some reason:

image

I believe this is the issue.

@eerhardt
Copy link
Member

Looks like the 7.0.1 change came in 8 days ago - which aligns with when this started failing: #77388.

@tarekgh
Copy link
Member

tarekgh commented Nov 10, 2022

Could it be desktop binding redirect issue?

@carlossanlop do you know if there any other tests failing for the same reason?

CC @ericstj

@eerhardt
Copy link
Member

Could it be desktop binding redirect issue?

Yes - that is what I am saying above.

To investigate this, I would download the test .zip file, and inspect which assembly is compiled against Version=7.0.0.0 of System.Text.Json. Now that the above servicing change is in, it should be compiled against Version=7.0.0.1.

@ghost
Copy link

ghost commented Nov 11, 2022

Tagging subscribers to this area: @dotnet/area-extensions-logging
See info in area-owners.md if you want to be subscribed.

Issue Details

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=72698
Build error leg or test failing: Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
Pull request: #77187

Error Message

Fill the error message using known issues guidance.

{
  "ErrorMessage": "The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)",
  "BuildRetry": false
}

Report

Build Definition Test Pull Request
78936 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78147
79254 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78178
80014 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
79977 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
79966 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78107
79962 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78122
79957 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #77831
79320 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
79788 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
79711 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
79209 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78174
78162 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78118
77991 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78122
78956 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78149
78488 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #77612
73673 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #77924
79507 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78107
77848 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #77831
78569 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #77818
75353 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
72698 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #77187

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
19 21 21
Author: carlossanlop
Assignees: -
Labels:

blocking-clean-ci, area-Extensions-Logging, Known Build Error

Milestone: -

@ViktorHofer
Copy link
Member

I’m away from the computer right now, but I think I thought of the problem. It looks like packaging.targets is what defines the incremented assembly version and that’s only included. When IsPackable is set which wouldn’t be the case for the reference assembly projects. @ViktorHofer

@ericstj sounds like #63467?

@ericstj
Copy link
Member

ericstj commented Nov 11, 2022

I knew this looked familiar. I remember looking at it with @eerhardt. Do you recall doing anything about it in 6.0?

Perhaps the smallest change here would be to not use the reference assembly projects for p2ps when IsPackable is true (since, after all we aren’t going to ship them in that case), or perhaps as a smaller change just do that for net4x configurations.

@joperezr
Copy link
Member

I actually think that the smallest change to fix this would be just to set two properties in order to make sure that auto binding redorects are created correctly. I haven't been able to validate this as I'm away from my desk but I'll try it out in a bit.

@joperezr
Copy link
Member

Yup, I have now validated that if you just add <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> property into the Microsoft.Extensions.Logging.Console.Tests project the binding redirects are now produced into the dll.config file and the tests pass successfully:

image

@ericstj
Copy link
Member

ericstj commented Nov 12, 2022

If we can build against correctly versioned reference we should. Reduce the cases where we require redirects.

@joperezr
Copy link
Member

That's fine by me. That said, that's a change that probably should be made in main first and later cherry picked to release branch. I would suggest to, in the mean time, merge the pr I have opened in release that would fix the build and tests by generating redirects, and we can later remove that once we have the reference version fixes ready.

@ghost
Copy link

ghost commented Nov 12, 2022

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

Issue Details

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=72698
Build error leg or test failing: Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
Pull request: #77187

Error Message

Fill the error message using known issues guidance.

{
  "ErrorMessage": "The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)",
  "BuildRetry": false
}

Report

Build Definition Test Pull Request
80982 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78256
81193 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
81098 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78258
80937 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
80500 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78235
80837 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
80506 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #77831
79957 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #77831
80467 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
80462 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
78936 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78147
79254 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78178
80014 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
79977 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
79966 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78107
79962 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78122
79320 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
79788 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
79711 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
79209 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78174
78162 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78118
77991 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78122
78956 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78149
78488 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #77612
73673 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #77924
79507 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #78107
77848 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #77831
78569 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #77818
75353 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
72698 dotnet/runtime Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled #77187

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
6 30 30
Author: carlossanlop
Assignees: -
Labels:

area-Infrastructure-libraries, blocking-clean-ci, in-pr, Known Build Error

Milestone: -

@eerhardt
Copy link
Member

I knew this looked familiar. I remember looking at it with @eerhardt. Do you recall doing anything about it in 6.0?

I thought I remembered this issue as well, but couldn't find it last week. For release/6.0 to work around the issue, I did this:

<ItemGroup>
<!-- Workaround for https://github.com/dotnet/runtime/issues/63467 -->
<SuggestedBindingRedirects Include="Microsoft.Extensions.Hosting, Culture=neutral, PublicKeyToken=adb9793829ddae60"
MaxVersion="$(MajorVersion).$(MinorVersion).0.$(ServicingVersion)" />
</ItemGroup>

@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Nov 14, 2022
ViktorHofer added a commit to ViktorHofer/runtime that referenced this issue Nov 22, 2022
Manual backport of c8503d3
Fixes dotnet#77988
Unblocks dotnet#78532

Introduce the AnnotateTargetPathWithContract switch to
make it configure-able when a source project should
return the reference project's assembly instead of
the source assembly, when other projects compile
against it. Set it so that reference assemblies are
only returned for NetCoreAppCurrent tfms or when the
project isn't packable.

- Fix System.DirectoryServices.AccountManagement build
System.DirectoryServices.AccountManagement now builds against
src/System.DirectoryServices instead of ref/System.DirectoryServices
(because the package doesn't contain the ref assembly).

Because of that, the compiler now gets confused because of the
System.DirectoryServices.Interop namespace and the global Interop class.
This happens even though the DirectoryServices.Interop namespace doesn't include any
public types.

That results in the following errors:

src\libraries\System.DirectoryServices.AccountManagement\src\System\DirectoryServices\AccountManagement\AD\SidList.cs(50,26): error CS0246: The type or namespace name 'SID_AND_ATTRIBUTES' could not be found (are you missing a using directive or an assembly reference?)
src\libraries\System.DirectoryServices.AccountManagement\src\System\DirectoryServices\AccountManagement\interopt.cs(439,20): error CS0246: The type or namespace name 'UNICODE_INTPTR_STRING' could not be found (are you missing a using directive or an assembly reference?)
This commit fixes that by removing the System.DirectoryServices.Interop
namespace and moving the types into the parent namespace.

- Suppress nullable warnings in Serialization.Schema
Now that Schema compiles against the source assembly of System.CodeDom,
it receives nullability errors. I'm suppressing them manually for now
but am filing an issue to correctly fix those.

Related: dotnet#78036
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Nov 22, 2022
ViktorHofer added a commit that referenced this issue Nov 23, 2022
Manual backport of c8503d3
Fixes #77988
Unblocks #78532

Introduce the AnnotateTargetPathWithContract switch to
make it configure-able when a source project should
return the reference project's assembly instead of
the source assembly, when other projects compile
against it. Set it so that reference assemblies are
only returned for NetCoreAppCurrent tfms or when the
project isn't packable.

- Fix System.DirectoryServices.AccountManagement build
System.DirectoryServices.AccountManagement now builds against
src/System.DirectoryServices instead of ref/System.DirectoryServices
(because the package doesn't contain the ref assembly).

Because of that, the compiler now gets confused because of the
System.DirectoryServices.Interop namespace and the global Interop class.
This happens even though the DirectoryServices.Interop namespace doesn't include any
public types.

That results in the following errors:

src\libraries\System.DirectoryServices.AccountManagement\src\System\DirectoryServices\AccountManagement\AD\SidList.cs(50,26): error CS0246: The type or namespace name 'SID_AND_ATTRIBUTES' could not be found (are you missing a using directive or an assembly reference?)
src\libraries\System.DirectoryServices.AccountManagement\src\System\DirectoryServices\AccountManagement\interopt.cs(439,20): error CS0246: The type or namespace name 'UNICODE_INTPTR_STRING' could not be found (are you missing a using directive or an assembly reference?)
This commit fixes that by removing the System.DirectoryServices.Interop
namespace and moving the types into the parent namespace.

- Suppress nullable warnings in Serialization.Schema
Now that Schema compiles against the source assembly of System.CodeDom,
it receives nullability errors. I'm suppressing them manually for now
but am filing an issue to correctly fix those.

Related: #78036
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Nov 23, 2022
@ViktorHofer
Copy link
Member

Fixed by #78730

@ghost ghost locked as resolved and limited conversation to collaborators Dec 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Infrastructure-libraries blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab
Projects
None yet
Development

No branches or pull requests

6 participants