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

Fixes issue #9807 REVIEW (2nd) AFTER #12486 merged DRAFT #11867

Closed
wants to merge 649 commits into from

Conversation

paul1956
Copy link
Contributor

@paul1956 paul1956 commented Aug 13, 2024

Fixes #9807

Proposed changes

  • Add Remove dependance on WebClient for VB FileDownload by using HttpClient
  • Add a Visual Basic Scratch Project so that Microsoft.VisualBasic.Forms dependent code can be tested from a Visual Basic project (even an empty WinForms project written in VB does not work)
  • Upload still uses WebClient that also needs to be done as a separate PR

Customer Impact

Adds Async file download support to VB, and if WebClient goes away this will allow existing Visual Basic programs using synchronous File Download to still work.
It also enable Async NetworkDownload is API is approved

Regression?

  • Yes when WebClient if and when goes away, no today

Risk

  • The code as is completely untested as I can't test without a working Scratch Project.
  • The existing code uses ICredentials in some of the paths, it is unclear how compatible that is between WebClient and HttpClient

Test methodology

Close to 100% Code Coverage Before and After change, original tests had no tests and there Error Message handling was odd

There are Exception Messages that need to move from WebClient to this PR and be translated.

Microsoft Reviewers: Open in CodeFlow

Copy link

codecov bot commented Aug 13, 2024

Codecov Report

Attention: Patch coverage is 99.72771% with 4 lines in your changes missing coverage. Please review.

Project coverage is 97.06195%. Comparing base (fae358b) to head (d869cf1).
Report is 5 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                  @@
##                main      #11867          +/-   ##
====================================================
+ Coverage   75.69021%   97.06195%   +21.37174%     
====================================================
  Files           3151        1164        -1987     
  Lines         635600      353193      -282407     
  Branches       46951        5289       -41662     
====================================================
- Hits          481087      342816      -138271     
+ Misses        151076        9631      -141445     
+ Partials        3437         746        -2691     
Flag Coverage Δ
Debug 97.06195% <99.72771%> (+21.37174%) ⬆️
integration ?
production ?
test 97.06195% <99.72771%> (+0.01142%) ⬆️
unit ?

Flags with carried forward coverage won't be shown. Click here to find out more.

@lonitra lonitra changed the base branch from feature/10.0 to main August 15, 2024 00:56
Zheng-Li01 and others added 21 commits November 5, 2024 11:30
…StripComboBoxFlatComboAdapter (dotnet#12394)

* Add code coverage for ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter

* Handle FeedBacks

* Handle FeedBacks

* Handle FeedBacks

* Fixed the error

* Remove failed test case
* Update dependencies from https://github.com/dotnet/runtime build 20241103.1

Microsoft.Internal.Runtime.WindowsDesktop.Transport , Microsoft.NET.Sdk.IL , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.ILAsm , Microsoft.NETCore.ILDAsm , Microsoft.NETCore.Platforms , Microsoft.Win32.Registry.AccessControl , Microsoft.Win32.SystemEvents , runtime.win-x64.Microsoft.NETCore.ILAsm , runtime.win-x86.Microsoft.NETCore.ILAsm , System.CodeDom , System.ComponentModel.Composition , System.ComponentModel.Composition.Registration , System.Configuration.ConfigurationManager , System.Data.Odbc , System.Data.OleDb , System.Diagnostics.EventLog , System.Diagnostics.PerformanceCounter , System.DirectoryServices , System.DirectoryServices.AccountManagement , System.DirectoryServices.Protocols , System.Formats.Nrbf , System.IO.Hashing , System.IO.Packaging , System.IO.Ports , System.Management , System.Reflection.Context , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Runtime.Caching , System.Runtime.Serialization.Formatters , System.Security.Cryptography.Pkcs , System.Security.Cryptography.ProtectedData , System.Security.Cryptography.Xml , System.Security.Permissions , System.ServiceModel.Syndication , System.ServiceProcess.ServiceController , System.Speech , System.Text.Encoding.CodePages , System.Text.Encodings.Web , System.Text.Json , System.Threading.AccessControl , System.Windows.Extensions , VS.Redist.Common.NetCore.SharedFramework.x64.10.0
 From Version 10.0.0-alpha.1.24552.2 -> To Version 10.0.0-alpha.1.24553.1

* Update dependencies from https://github.com/dotnet/runtime build 20241104.9

Microsoft.Internal.Runtime.WindowsDesktop.Transport , Microsoft.NET.Sdk.IL , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.ILAsm , Microsoft.NETCore.ILDAsm , Microsoft.NETCore.Platforms , Microsoft.Win32.Registry.AccessControl , Microsoft.Win32.SystemEvents , runtime.win-x64.Microsoft.NETCore.ILAsm , runtime.win-x86.Microsoft.NETCore.ILAsm , System.CodeDom , System.ComponentModel.Composition , System.ComponentModel.Composition.Registration , System.Configuration.ConfigurationManager , System.Data.Odbc , System.Data.OleDb , System.Diagnostics.EventLog , System.Diagnostics.PerformanceCounter , System.DirectoryServices , System.DirectoryServices.AccountManagement , System.DirectoryServices.Protocols , System.Formats.Nrbf , System.IO.Hashing , System.IO.Packaging , System.IO.Ports , System.Management , System.Reflection.Context , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Runtime.Caching , System.Runtime.Serialization.Formatters , System.Security.Cryptography.Pkcs , System.Security.Cryptography.ProtectedData , System.Security.Cryptography.Xml , System.Security.Permissions , System.ServiceModel.Syndication , System.ServiceProcess.ServiceController , System.Speech , System.Text.Encoding.CodePages , System.Text.Encodings.Web , System.Text.Json , System.Threading.AccessControl , System.Windows.Extensions , VS.Redist.Common.NetCore.SharedFramework.x64.10.0
 From Version 10.0.0-alpha.1.24552.2 -> To Version 10.0.0-alpha.1.24554.9

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Update dependencies from https://github.com/dotnet/arcade build 20241104.2

Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.CMake.Sdk , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.XUnitExtensions
 From Version 10.0.0-beta.24551.1 -> To Version 10.0.0-beta.24554.2

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
…dotnet#12418)

Add tests for VB Application Services Exceptions and fix UserTests.UserIdentity to use Auto Properties to stop compiler from giving suggestion.
[main] Update dependencies from dotnet/arcade
* Add code coverage for TrackBarRenderer

* Handle FeedBacks

* Handle FeedBacks

* Handle FeedBacks

* Handle FeedBacks
[main] Update dependencies from dotnet/arcade
It doesn't really matter anymore and is creating extra maintenance cost as we add new APIs. Remove versioning.targets as it did very little and all over the override attributes.

See a discussion on this here: dotnet/runtime#44194
@paul1956 paul1956 changed the title Fixes issue #9807 REVIEW (2nd) AFTER #12221 merged DRAFT Fixes issue #9807 REVIEW (2nd) AFTER #12486 merged DRAFT Nov 14, 2024
paul1956 added a commit to paul1956/winforms that referenced this pull request Nov 15, 2024
@paul1956
Copy link
Contributor Author

Replaced by PR #12489

@paul1956 paul1956 closed this Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
draft draft PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor VB's Application Framework Network Class
6 participants