Граф коммитов

10006 Коммитов

Автор SHA1 Сообщение Дата
Loni Tra 80313d7eae
Ensure proper ref count of underlying ocx (#12281) 2024-10-08 10:32:56 -07:00
Paul M Cohen 91ce65aeb1
Fix formatting and improve coverage on some Unit Tests from simplifying PR #11863 (#12263)
* Fix formatting and improve coverage on some Unit Tests
Add missung argName in WindowsFormApplicationBase

* Fix type as type declarations
Add using for VBInpurBox

* PR Feedback

* Remove unneccessary imports

* revert import removal

* Rename resourceID to reflect its use as a ResourceKey
Use existing NullAndEmptyStringDataAttribute
2024-10-08 09:38:28 -07:00
Leaf Shi 3894dcafe5
Add tests for MaskedTextBoxTextEditorDropDown.cs (#12244)
* Add tests for MaskedTextBoxTextEditorDropDown.cs

* Update test "ProcessDialogKey_SetsCancel_WhenEscapePressed"

* Update MaskedTextBoxTextEditorDropDownTests.cs
2024-10-08 09:34:11 -07:00
v-olzhan da8495a729
Add unit tests for ToolStripContainerDesigner (#12200)
* Add unit tests for ToolStripContainerDesigner

* handle feedbacks

* put method to scenario if just call once
2024-10-08 09:21:47 -07:00
dotnet-maestro[bot] f7bbb19c51
[main] Update dependencies from dotnet/runtime (#12285)
[main] Update dependencies from dotnet/runtime
2024-10-08 12:41:16 +00:00
Syareel Aiman f7107b45c5
Add unit tests for PictureBoxActionList (#12201)
Related #10773

Proposed changes
Add unit test PictureBoxActionListTests.cs for public properties and method of the PictureBoxActionList.
Enable nullability in PictureBoxActionList.
2024-10-07 14:29:38 -07:00
Paul M Cohen 0af0312af3
Use BoolData in Tests (#12275) 2024-10-07 14:15:48 -07:00
Ricardo Bossan fef2bd30ca
Adds code coverage to ImageIndexEditor (#12237)
Adds coverage for ImageIndexEditor

Related #10773

## Proposed changes

- Adds coverage for public properties and methods of the
`ImageIndexEditor` class.

## Customer Impact

- None

## Regression?

- No

## Risk

- Minimal

## Test methodology

- Unit tests

## Test environment(s)

- 9.0.100-rc.1.24452.12

Co-authored-by: Ricardo Bossan (BEYONDSOFT CONSULTING INC) (from Dev Box) <v-rbossan@microsoft.com>
2024-10-07 09:15:16 -07:00
Jeremy Kuhne 189b209933
Tweak visibility for WPF (#12276)
Added the full set of runtime assemblies with (hopefully) the right keys. Test assemblies will eventually need added.

I've introduced constants for the public key values to make this a little easier to update / follow. I didn't update all of the usages, anyone else can do so, or I'll eventually pick it off when it is convenient.

This also moves some interop down to Core and does some renaming. It is intentional that I did not change the name of some of the files to allow history to be easily kept. I'll update names to match in future pulls.
2024-10-06 21:05:14 -07:00
dotnet-maestro[bot] ea461e204b
[main] Update dependencies from dotnet/runtime (#12278)
[main] Update dependencies from dotnet/runtime
2024-10-05 12:42:16 +00:00
dotnet-maestro[bot] fbb686cdef
[main] Update dependencies from dotnet/arcade (#12277)
[main] Update dependencies from dotnet/arcade
2024-10-05 12:41:44 +00:00
Rich Lander efe6e112d8
Switch default feed to use wildcards only (#12268)
* Switch default feed to full wildcard

* Add other wildcards back
2024-10-04 09:28:17 -07:00
Paul M Cohen 0969c894ca
Improve code coverage for FileLogTraceListener from simplifying PR #11863 (#12264)
* Improve code coverage for FileLogTraceListener

* Update src/Microsoft.VisualBasic/tests/UnitTests/Microsoft/VisualBasic/Logging/FileLogTraceListenerTests.cs

Thanks I had no idea about boolData

Co-authored-by: Loni Tra <lonitra@microsoft.com>

---------

Co-authored-by: Loni Tra <lonitra@microsoft.com>
2024-10-04 09:25:22 -07:00
dotnet-maestro[bot] 0059818f34
[main] Update dependencies from dotnet/runtime (#12272)
[main] Update dependencies from dotnet/runtime
2024-10-04 12:37:18 +00:00
dotnet-maestro[bot] 5a08bc9009
[main] Update dependencies from dotnet/arcade (#12271)
[main] Update dependencies from dotnet/arcade
2024-10-04 12:36:49 +00:00
Paul M Cohen caf4fb9f82
Fix IDE0002 in LogTests.cs (#12265)
Fix IDE0002 in LogTests.cs
2024-10-03 13:41:50 -07:00
dotnet-maestro[bot] a9c899f20a
[main] Update dependencies from dotnet/runtime (#12266)
[main] Update dependencies from dotnet/runtime
2024-10-03 12:41:10 +00:00
Paul M Cohen d10e2c2fa6
Adds XML Comments to FileSystemProxy and SpecialDirectoriesProxy (#12141)
* Add XML Comments related to FileSystemProxy which includes SpecialDirectoriesProxy

* Fix some types

* Add some language keywords

* Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb

Co-authored-by: Loni Tra <lonitra@microsoft.com>

* Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb

Co-authored-by: Loni Tra <lonitra@microsoft.com>

* Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb

Co-authored-by: Loni Tra <lonitra@microsoft.com>

* Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb

Co-authored-by: Loni Tra <lonitra@microsoft.com>

* PR feedback

* Update all XML comments

* Fix Typo in FileSystemProxy that caused build to fail.

* Update XML Coments

* Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/SpecialDirectoriesProxy.vb

Co-authored-by: Tanya Solyanik <tanyaso@microsoft.com>

* Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/SpecialDirectoriesProxy.vb

Co-authored-by: Tanya Solyanik <tanyaso@microsoft.com>

* Redo all the comments in SpecialDirectoriesProxy

* Add cref per PR feedback and changed type to Namespace

* PR Feedback to add see cref's

---------

Co-authored-by: Loni Tra <lonitra@microsoft.com>
Co-authored-by: Tanya Solyanik <tanyaso@microsoft.com>
2024-10-02 20:43:30 -07:00
Tanya Solyanik 5570dfa17e
Moved to SDK RC2 (#12254)
* Moved to SDK RC2 to get the same build errors in VS and CLI build and be able to fix them.

Before this change the IntPreview version of VS was correctly complaining about a redundant cast(IDE0004) in ToolStrip.cs
    g.DrawLines(SystemPens.ControlText, (ReadOnlySpan<Point>)
        [
            new(verticalBeamStart, _lastInsertionMarkRect.Y), new(verticalBeamStart, _lastInsertionMarkRect.Bottom - 1),
            new(verticalBeamStart + 1, _lastInsertionMarkRect.Y), new(verticalBeamStart + 1, _lastInsertionMarkRect.Bottom - 1)
        ]);

But the CLI build required this cast.

After the upgrade to RC2, IDE0300 - Collection initialization can be simplified - became more robust and required code fixes that use collection expressions applied to the solution.
2024-10-02 18:23:28 -07:00
Jeremy Kuhne 5bef748fad
Add internals visibility to System.Windows.Primitives (#12260)
Need a bottom level interop assembly in WPF to give all projects a common base so that CsWin32 doesn't generate duplicate defines.

WindowsBase might be able to subsume this at some point, but it doesn't have internals visible to the rest of the graph and it's current internal interop is included repeatedly in multiple assemblies.
2024-10-02 19:32:36 +00:00
Rich Lander 16c923a2d1
Configure repo for Central Package Management (#12175)
* Enable Central Package Management (CPM)

* Move versions to D.P.p

* Add import

* Add package source mapping

* Alpha-order PackageVersion elements

* Remove old feeds

* Add LF to EOF

* Fix typos

* Switch back to properties for versions

* Update package source mapping

* Add GPF folder

* Add xunit.assert back

* Remove local directory

* Add more mappings

* Add PrivateAssets attribute, per suggestion

* Do not add a <PackageVersion /> for xunit.assert for test projects

Arcade is adding an implicit reference to xunit.assert for all test projects so this PackageVersion is only needed when a non-test project references it.  This conditions out the reference to avoid the NU1009 error.

* Add references from CodeCoverage.proj

* Categorize packages

* Update MicrosoftCodeAnalysisNetAnalyzersVersion to stable version

* Pin dependencies

* Remove comments

---------

Co-authored-by: Jeff Kluge <jeffkl@microsoft.com>
2024-10-02 09:21:27 -07:00
dotnet-maestro[bot] 31fa9eddc4
[main] Update dependencies from dotnet/runtime (#12256)
[main] Update dependencies from dotnet/runtime
2024-10-02 12:37:35 +00:00
dotnet-maestro[bot] 6b4c1facda
[main] Update dependencies from dotnet/arcade (#12255)
[main] Update dependencies from dotnet/arcade
2024-10-02 12:37:03 +00:00
Tanya Solyanik c9a58e92a1
Get rid of a warning in the latest IntPreview VS build (#12251)
In language version preview, the 'field' keyword binds to a synthesized backing field for the property. To avoid generating a synthesized backing field, and to refer to the existing member, use 'this.field' or '@field' instead.
2024-10-01 13:45:26 -07:00
Tanya Solyanik 49b0091975
Merge pull request #12250 from Tanya-Solyanik/revert-contrast-fix
Extra Border Color in DataGridView with RightToLeft layout
2024-10-01 11:43:25 -07:00
Tanya Solyanik 9cd54df5cf [release/9.0] Extra Border Color in DataGridView with RightToLeft layout (#12246)
Fixes #12187 in .NET 9.0 release

Revert "Makes DataGridView row header left border have proper luminosity in RightToLeft mode, both with VisualStyles enabled or disabled" commit 9bda02d. This change regresses the color contrast issue that we will re-do in NET10. Besides this regression, the original fix was incomplete, as it applied only to RightToLeft layout.

Customer Impact
Customer will observe visual difference between NET8 and NET9.
While fixing a color contrast issue #5961 in .NET9, we regressed a customization scenario where dev sets a custom DataGridView grid color. The grid color now partially shows in the column header bar. It should be applied only to the regular DGV cells.

Regression
 Yes

Testing
Manual testing

Risk
Low. This is a revert to the NET8.0 state.
2024-10-01 10:45:04 -07:00
dotnet-maestro[bot] a4bbf5621a
[main] Update dependencies from dotnet/runtime (#12247)
[main] Update dependencies from dotnet/runtime
2024-10-01 12:41:13 +00:00
Ricardo Bossan 7c9f958bfd
Adds code coverage to FormatStringEditorTests (#12208)
Adds coverage to FormatStringEditor

Related #10773

## Proposed changes

- Adds code coverage to `FormatStringEditor`

## Customer Impact

- None

## Regression?

- No

## Risk

- Minimal

## Test methodology

- Unit tests

## Test environment(s)

- 9.0.100-rc.1.24452.12

Co-authored-by: Ricardo Bossan (BEYONDSOFT CONSULTING INC) (from Dev Box) <v-rbossan@microsoft.com>
2024-09-30 12:09:10 -07:00
dotnet-maestro[bot] 4cd3b176bb
[main] Update dependencies from dotnet/runtime (#12243)
* Update dependencies from https://github.com/dotnet/runtime build 20240927.10

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.24476.10 -> To Version 10.0.0-alpha.1.24477.10

* Update dependencies from https://github.com/dotnet/runtime build 20240928.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.24477.10 -> To Version 10.0.0-alpha.1.24478.1

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

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.24478.1 -> To Version 10.0.0-alpha.1.24479.4

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-09-30 09:05:12 -07:00
Leaf Shi ff838ac7ac
Add retry mechanism for clipboard tests (#12231)
* Put  Thread.Sleep to clipboard base class

* Add retry mechanism instead of Sleeping before testing
2024-09-29 10:07:33 +08:00
dotnet-maestro[bot] c16538b0d4
[main] Update dependencies from dotnet/runtime (#12241)
[main] Update dependencies from dotnet/runtime
2024-09-27 12:37:37 +00:00
dotnet-maestro[bot] 547e9f56fc
[main] Update dependencies from dotnet/arcade (#12240)
[main] Update dependencies from dotnet/arcade
2024-09-27 12:37:07 +00:00
Jeremy Kuhne b4d1fcc56d
Add support for Point in Value (#12235)
Adds non-boxing support for Point in Value.

Also fix issue trying to put Rectangle/Padding over top of different stored value and add test.
2024-09-26 14:40:47 -07:00
dotnet-maestro[bot] 43d510c3fa
[main] Update dependencies from dotnet/runtime (#12233)
[main] Update dependencies from dotnet/runtime
2024-09-26 12:42:35 +00:00
dotnet-maestro[bot] 4eb622dc23
[main] Update dependencies from dotnet/arcade (#12232)
[main] Update dependencies from dotnet/arcade
2024-09-26 12:42:06 +00:00
Loni Tra 0d0e1c9350
Attempt to Start Sharing System.Private.Windows.Core with WPF (#12225)
add internalsvisibleto wpf assemblies
2024-09-25 14:12:32 -07:00
Jeremy Kuhne 7af497d2d9
Remove remaining old PropertyStore APIs (#12215)
- Tweak AddOrRemove methods for better change comparison
- Make it consistently throw if trying to force cast null to T
2024-09-25 12:05:00 -07:00
Ricardo Bossan d4e6f9ddb2
Adds code coverage to FormatStringDialog (#12185)
Adds code coverage for FormatStringDialog

Related #10773

## Proposed changes

- Adds code coverage for `FormatStringDialog`.

## Customer Impact

- None

## Regression?

- No

## Risk

- Minimal

## Test methodology

- Unit tests

## Test environment(s)

- 9.0.100-rc.1.24452.12

Co-authored-by: Ricardo Bossan (BEYONDSOFT CONSULTING INC) (from Dev Box) <v-rbossan@microsoft.com>
2024-09-25 12:00:00 -07:00
dotnet-maestro[bot] c4ce33d8ff
[main] Update dependencies from dotnet/runtime (#12224)
Update dependencies from https://github.com/dotnet/runtime build 20240924.2

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.24474.1 -> To Version 10.0.0-alpha.1.24474.2

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-09-25 10:22:25 -07:00
dotnet-maestro[bot] 535adc1e05
[main] Update dependencies from dotnet/arcade (#12223)
Update dependencies from https://github.com/dotnet/arcade build 20240924.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.24473.2 -> To Version 10.0.0-beta.24474.1

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-09-25 10:22:04 -07:00
Loni Tra b59247a3ef
Merge pull request #12204 from dotnet/backport/pr-12192-to-main
Clear Clipboard Correctly
2024-09-24 11:03:22 -07:00
Loni Tra d6ab51d2f8
Merge pull request #12203 from dotnet/backport/pr-12193-to-main
Fix GetFormats and GetDataPresent
2024-09-24 11:03:06 -07:00
Jeremy Kuhne af250234c0
Update another set of PropertyStore usages (#12209)
This actually removes one of the legacy methods, so yay progress.

In Form the owned forms set is now a List<Form> rather than a manually managed array.
2024-09-24 10:04:39 -07:00
v-zhgl 572782a3f5
Add code coverage for ToolStripLabel.cs file (#12166)
* Add code coverage for ToolStripLabe.cd file

* Handle FeedBacks

* Handle FeedBacks

* Handle FeedBacks
2024-09-24 09:53:07 -07:00
dotnet-maestro[bot] d05b6523d6
[main] Update dependencies from dotnet/runtime (#12212)
[main] Update dependencies from dotnet/runtime
2024-09-24 12:42:35 +00:00
dotnet-maestro[bot] 50653473e0
[main] Update dependencies from dotnet/arcade (#12211)
[main] Update dependencies from dotnet/arcade
2024-09-24 12:42:08 +00:00
Jeremy Kuhne 79def1de08
Update more PropertyStore usage (#12205)
Most of the changes are in DataGridView this time.

- Clearing DefaultHeaderCellType (to default) by setting null is something we should allow
- We shouldn't faciliate storing non AccessibleObjects
- Minor optimization tweak to AddOrRemoveValue
- Tweak AddOrRemoveValue for perf and null correctness
- Clarify logic in AddOrRemoveValue and add exception message to cast error
2024-09-23 17:30:02 -07:00
Loni Tra 3745035958 Add regression test for aad987c 2024-09-23 16:31:41 -07:00
Loni Tra 90b550b489 Add regression test for 176a013 2024-09-23 16:25:37 -07:00
Melon Wang1 9bb6315706
Add unit tests for TextBoxActionList (#12198)
Related #10773

Add unit test TextBoxActionListTests.cs for public properties and method of the TextBoxActionList.
Enable nullability in TextBoxActionList.
2024-09-23 14:08:07 -07:00