Jeremy Kuhne
ef1638398b
Remove legacy test code from PropertyGrid ( #12445 )
...
This removes code that was only used by tests historically. MAUI as mentioned in the code is an internal legacy test stack piece.
Also enable a number of other analyzers and delete some unused code in PlatformDetection.
2024-11-07 14:42:13 -08:00
Nora Zhou
9b0afc4513
Add unit tests for DataSourceDescriptorCollection ( #12432 )
...
* Add unit tests for DataSourceDescriptorCollection
* Declare the variable as MockDataSourceDescriptor
2024-11-07 14:28:22 -08:00
dotnet-maestro[bot]
9b548ff63e
[main] Update dependencies from dotnet/runtime ( #12444 )
...
[main] Update dependencies from dotnet/runtime
2024-11-07 13:42:28 +00:00
dotnet-maestro[bot]
f24e65c502
[main] Update dependencies from dotnet/arcade ( #12443 )
...
[main] Update dependencies from dotnet/arcade
2024-11-07 13:41:59 +00:00
Jeremy Kuhne
f3dbf39e87
Merge pull request #12439 from JeremyKuhne/cleananalyze2
...
More analyzer cleanup
2024-11-06 12:06:09 -08:00
Jeremy Kuhne
e6d48cf582
More analyzer cleanup
...
- Remove unused code
- Re-enable analyzers in System.Drawing tests
- Move analyzer related build stuff to Analyzer build files
- Be explicit about marking analyzer projects
- Move CS1573 into .editorcofnig
2024-11-06 11:27:29 -08:00
Jeremy Kuhne
5252ef32d1
Change file names from CodeStyle to Analyzer
2024-11-06 11:22:54 -08:00
Paul M Cohen
6de358af95
Fix VB issues caused by #12426 in tests ( #12429 )
...
Fix VB issues caused by #12426 in tests
2024-11-06 10:02:09 -08:00
dotnet-maestro[bot]
c4deca0cf0
[main] Update dependencies from dotnet/runtime ( #12437 )
...
[main] Update dependencies from dotnet/runtime
2024-11-06 13:42:47 +00:00
dotnet-maestro[bot]
fbb127f873
[main] Update dependencies from dotnet/arcade ( #12436 )
...
[main] Update dependencies from dotnet/arcade
2024-11-06 13:42:17 +00:00
Jeremy Kuhne
65f897bc43
Move settings into .editorconfig ( #12426 )
...
Our code styles were in a number of files. Consolodate into .editorconfig for discoverability.
I've also tried to deviate as little as possible in tests. This required fixing a number of analyzer issues in test code.
Also add some more build related solution folders for clarity and discoverability.
2024-11-05 17:30:07 -08:00
Paul M Cohen
8c4acf0349
Code Coverage for VB ApplicationServices Exceptions and minor cleanup ( #12418 )
...
Add tests for VB Application Services Exceptions and fix UserTests.UserIdentity to use Auto Properties to stop compiler from giving suggestion.
2024-11-05 10:46:03 -08:00
dotnet-maestro[bot]
883e190f0c
[main] Update dependencies from dotnet/arcade ( #12423 )
...
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>
2024-11-05 09:09:51 -08:00
dotnet-maestro[bot]
c39e207566
[main] Update dependencies from dotnet/runtime ( #12422 )
...
* 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>
2024-11-05 09:09:23 -08:00
v-zhgl
3a8e1fdbe4
Add code coverage for ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter ( #12394 )
...
* Add code coverage for ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter
* Handle FeedBacks
* Handle FeedBacks
* Handle FeedBacks
* Fixed the error
* Remove failed test case
2024-11-05 09:08:57 -08:00
Tanya Solyanik
b10907a57d
add vs-feedback info to the designer readme ( #12414 )
...
add vs-feedback info to the readme
2024-11-04 14:28:34 -08:00
Leaf Shi
23c5c5e449
Update the logic about the attribute [RefreshProperties(RefreshProperties.All)] on PropertyGridView.cs ( #12356 )
2024-11-04 10:30:49 +08:00
Leaf Shi
b64659ab64
Update InitializeComponent() template ( #12398 )
...
* Update InitializeComponent() template
* Removing extra namespace
2024-11-04 10:28:38 +08:00
Leaf Shi
71d5680774
Issue 12353 fix detach context menu strip memory leak ( #12399 )
...
* Removing reference to ContextMenuStrip when dispose control
* Merge 'main' to current branch
* Detach ContextMenuStrip from control when executing Dispose
* Use pattern matching for judge variable menu
2024-11-04 10:27:53 +08:00
dotnet-maestro[bot]
c9aa1c92b9
[main] Update dependencies from dotnet/runtime ( #12419 )
...
[main] Update dependencies from dotnet/runtime
2024-11-03 13:41:08 +00:00
dotnet-maestro[bot]
ca0be73f6f
[main] Update dependencies from dotnet/arcade ( #12415 )
...
[main] Update dependencies from dotnet/arcade
2024-11-02 12:46:54 +00:00
dotnet-maestro[bot]
a5aa9ed34a
[main] Update dependencies from dotnet/runtime ( #12416 )
...
[main] Update dependencies from dotnet/runtime
2024-11-02 12:42:32 +00:00
dotnet-maestro[bot]
84795a9b21
[main] Update dependencies from dotnet/runtime ( #12413 )
...
[main] Update dependencies from dotnet/runtime
2024-11-01 12:37:19 +00:00
dotnet-maestro[bot]
295390cf61
[main] Update dependencies from dotnet/arcade ( #12412 )
...
[main] Update dependencies from dotnet/arcade
2024-11-01 12:36:51 +00:00
Epica3055
566983b636
fix #12365 [Accessibility] The text "Document does not contain any pages" in printPreviewControl has low color contrast ( #12368 )
...
* fix #12365 [Accessibility] The text "Document does not contain any pages" in printPreviewControl has low color contrast
* use SystemColor instead of hardcode
2024-11-01 18:24:27 +08:00
Loni Tra
3c1c69c846
Mark Test Utilities As Packable Nonshipping ( #12407 )
...
* Move WinForms specific test utilities from Common.Utilities to System.Windows.Forms.TestUtilities
* Rename System.Windows.Forms.Common.TestUtilities to System.Private.Windows.Core.TestUtilities
* Include System.Private.Windows.Core.TestUtilities in Microsoft.Private.Winforms
* Add documentation and add HasNoPublicIntellisense to bypass build error
* Add global using in System.Windows.Forms unit test
* Mark System.Private.Windows.Core.TestUtilities as packable but nonshipping
* remove HasNoPublicIntellisense
2024-10-31 21:29:29 -07:00
dotnet-maestro[bot]
380ea838bd
[main] Update dependencies from dotnet/runtime ( #12409 )
...
[main] Update dependencies from dotnet/runtime
2024-10-31 12:42:24 +00:00
dotnet-maestro[bot]
5a02fddf56
[main] Update dependencies from dotnet/arcade ( #12408 )
...
[main] Update dependencies from dotnet/arcade
2024-10-31 12:36:54 +00:00
dotnet-maestro[bot]
afa9b7c921
[main] Update dependencies from dotnet/runtime ( #12406 )
...
[main] Update dependencies from dotnet/runtime
2024-10-30 19:38:58 +00:00
dotnet-maestro[bot]
18ed6632b0
[main] Update dependencies from dotnet/arcade ( #12405 )
...
Update dependencies from https://github.com/dotnet/arcade build 20241029.1
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.24527.1 -> To Version 10.0.0-beta.24529.1
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-10-30 12:38:42 -07:00
Paul M Cohen
781a7fbf17
Split Network.VB into 7 Files from PR #11863 ( #12226 )
...
* Split Network.VB into 7 Files
* Minor Cleanup
* Remove m_ from private variable names and fix up event handler names and comments
* Remove unused imports
* Fix Debug.Assert in AssemblyInfo.vb
* Cleanup Event Handler names
* Fix incorrect naming of Private variables
Shorten lines
* Cleanup line length and spelling
* Add missing CrLf
* Simplify dialog.BeginInvoke
* PR Feedback
* PR feedback
2024-10-30 12:38:19 -07:00
Jeremy Kuhne
6505997339
Move GetWindowText to Core ( #12397 )
...
Move GetWindowText and MapWindowPoints to Core.
Also add cast operators for HandleRef to faciliate converting between the generic and non-generic version to help WPF which publically exposes the generic version.
2024-10-29 23:24:12 +00:00
dotnet-maestro[bot]
40b639631f
[main] Update dependencies from dotnet/runtime ( #12400 )
...
[main] Update dependencies from dotnet/runtime
2024-10-29 12:46:28 +00:00
dotnet-maestro[bot]
d223c9e1eb
[main] Update dependencies from dotnet/runtime ( #12396 )
...
[main] Update dependencies from dotnet/runtime
2024-10-28 12:42:38 +00:00
dotnet-maestro[bot]
5ff850793d
[main] Update dependencies from dotnet/arcade ( #12395 )
...
[main] Update dependencies from dotnet/arcade
2024-10-28 12:37:07 +00:00
dotnet-maestro[bot]
1d004bbc37
[main] Update dependencies from dotnet/runtime ( #12393 )
...
[main] Update dependencies from dotnet/runtime
2024-10-27 12:41:06 +00:00
dotnet-maestro[bot]
7376e50c5a
[main] Update dependencies from dotnet/runtime ( #12392 )
...
[main] Update dependencies from dotnet/runtime
2024-10-26 12:42:22 +00:00
dotnet-maestro[bot]
1dd9cc11ba
[main] Update dependencies from dotnet/arcade ( #12391 )
...
[main] Update dependencies from dotnet/arcade
2024-10-26 12:41:53 +00:00
Merrie McGaw
795c71aa44
Enable Blank issues ( #12389 )
2024-10-25 14:41:03 -07:00
Jeremy Kuhne
640825b4c9
Tweak analyzers ( #12388 )
...
Want to keep false positives to a minimum, even in "Messages". The var message was coming up a lot when editing files where we wouldn't want to "fix" it, so I've silenced it.
There are a lot of "if statement can be simplified" messages in our files. I went through and fixed a bunch that came up when I was working on other things to validate the usefulness. It is the better choice at least 80% of the time, so I'm leaving it on.
Changes were primariliy made using the automated fixes. Flipped a few conditional blocks, again with the tooling.
2024-10-25 14:11:53 -07:00
v-zhgl
f2afa04adf
Modified the test case to ensure corresponding constructor is called ( #12385 )
...
Modified the test case to ensure corresponding constructor is called.
2024-10-25 14:04:00 -07:00
Paul M Cohen
09017f5256
Improve code coverage and simplify AssemblyInfo.vb and make tests Fluent. ( #12372 )
...
* Simplify AssemblyInfo.vb and make tests Fluent.
* PR Feedback
2024-10-25 14:00:41 -07:00
Liv-Goh
8c0a6d0aa1
Add unit test for UpDownBaseDesigner ( #12364 )
...
* Add unit test for UpDownBaseDesigner
* Update suggested changes and modify SnapLine testcase to increase coverage
* Add IDisposable and split SnapLine Testcase
* Remove Cast and not null checking for baselineSnapLine
2024-10-25 13:55:33 -07:00
Paul M Cohen
5d91d1a655
Improve VB Audio test coverage from PR #11863 ( #12317 )
...
* Improve VB Audio test coverage
* PR Feedback
Add PlaySystemSound test
* Rename AudioPlayMode tests so they are sorted together.
* Remove unused imports
* Fix some types from Main in VB Code
2024-10-25 13:54:51 -07:00
Tanya Solyanik
80cd75fea6
Added the latest announcement to the readme ( #12383 )
...
Added the latest announcement to the readme
2024-10-25 10:47:07 -07:00
Jeremy Kuhne
b6f0bebe16
Move more interop to Core ( #12384 )
...
Move most of the scopes to the core assembly. Remove hook for Graphics halftone disposal as there is no need to free the handle when the process is going down.
2024-10-25 10:36:14 -07:00
dotnet-maestro[bot]
62d4d9acaf
[main] Update dependencies from dotnet/runtime ( #12387 )
...
[main] Update dependencies from dotnet/runtime
2024-10-25 12:37:32 +00:00
dotnet-maestro[bot]
c33af3f95e
[main] Update dependencies from dotnet/arcade ( #12386 )
...
[main] Update dependencies from dotnet/arcade
2024-10-25 12:37:05 +00:00
v-zhgl
132e6e7e5d
Add code coverage for ToolStripComboBox ( #12347 )
...
* Add code coverage for ToolStripComboBox
* Handle FeedBacks
* Handle FeedBacks
2024-10-24 15:24:19 -07:00
Jeremy Kuhne
469c310e1c
Add the DefaultTypeResolver ( #12382 )
...
Copy the DefaultTypeResolver back from the Runtime.
This also replaces SerializationBinder in the options with ITypeResolver.
Additionally, use a bool instead of FormatterAssemblyStyle.
2024-10-24 13:07:38 -07:00