[main] Update dependencies from dotnet/runtime
This pull request updates the following dependencies
From https://github.com/dotnet/runtime
- Subscription: d9f5b309-084f-43b5-02de-08d8b80548e4
- Build: 20220813.9
- Date Produced: August 14, 2022 8:05:35 AM UTC
- Commit: 7d986fa00cfc93e656e5bc548f244df82c401b59
- Branch: refs/heads/main
- Updates:
- Microsoft.Internal.Runtime.WindowsDesktop.Transport: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- Microsoft.NET.Sdk.IL: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- Microsoft.NETCore.App.Ref: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- Microsoft.NETCore.App.Runtime.win-x64: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- Microsoft.NETCore.ILAsm: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- Microsoft.NETCore.ILDAsm: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- Microsoft.NETCore.Platforms: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- Microsoft.Win32.Registry.AccessControl: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- Microsoft.Win32.SystemEvents: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- Microsoft.Windows.Compatibility: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- runtime.win-x64.Microsoft.NETCore.ILAsm: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- runtime.win-x86.Microsoft.NETCore.ILAsm: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- System.CodeDom: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- System.Configuration.ConfigurationManager: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- System.Diagnostics.EventLog: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- System.Diagnostics.PerformanceCounter: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- System.DirectoryServices: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- System.Drawing.Common: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- System.IO.Packaging: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- System.Reflection.MetadataLoadContext: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- System.Resources.Extensions: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- System.Security.Cryptography.Pkcs: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- System.Security.Cryptography.ProtectedData: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- System.Security.Cryptography.Xml: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- System.Security.Permissions: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- System.Text.Encodings.Web: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- System.Text.Json: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- System.Threading.AccessControl: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- System.Windows.Extensions: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
- VS.Redist.Common.NetCore.SharedFramework.x64.7.0: from 7.0.0-rc.1.22410.1 to 7.0.0-rc.1.22413.9
Microsoft Reviewers: Open in CodeFlow
It is building on the CI as well, but looks like a VB related test Microsoft.VisualBasic.Logging.Tests.LogTests.Write is failing:
Error message
System.NullReferenceException : Object reference not set to an instance of an object.
Stack trace
at Microsoft.VisualBasic.Logging.Tests.LogTests.Write() in /_/src/Microsoft.VisualBasic/tests/UnitTests/Microsoft/VisualBasic/Logging/LogTests.cs:line 24
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
@steveharter , it seems that winforms test failure is related to https://github.com/dotnet/runtime/pull/73087 - if TraceSource is initialized from the config file, it does not initialize the default file listener, and test expects the default listener to be initialized. I suspect winforms should come up with a different way to detect initialization from a config fie, could you please suggest one?
@steveharter, @Tanya-Solyanik: To be more precise, it is something in the Application Framework for/in Visual Basic, that's causing this, because it does an assumption, which I frankly don't understand:
https://source.dot.net/#Microsoft.VisualBasic.Forms/Microsoft/VisualBasic/Logging/Log.vb,170

This assumption is that when GetSupportedAttributes gets called in a class derived from TraceSource that then would tell that the trace source was configured from a config file. This is not only what DefaultTraceSource does, it seems to be the only reason for it existence. Now, as far as I understand it, after the change, GetSupportAttributes gets called unconditionally, so HasBeenConfigured in the VB AppFramework's DefaultTraceSource returns always true, and so a FileLogTraceListener gets never added, since the Log class assumes, the trace source was configured by a config file. And that's why there will never be a value other than nothing for the DefaultFileLogWriter property.
Now, what I don't understand: Why would (previously) GetSupportedAttributes only have been called, when the trace source was configured by a config file?
/azp run
Azure Pipelines successfully started running 2 pipeline(s).