Allow internal types to be selected as object data source for binding #11408
Labels
area-Binding
Impacting DataBinding
area-VSDesigner
Windows Forms out-of-proc designer related issues
Milestone
Environment
Microsoft Visual Studio Enterprise 2022 (64-bit) - Version 17.9.6
.NET version
.NET 8
Did this work in a previous version of Visual Studio and/or previous .NET release?
Nope
Issue description
We are unable to select internal types as a
DataSource
for binding. Our company policy is to have all non-customer-facing public APIs set to internal and make them internally available within the company using theInternalsVisibleTo
project element.As a current workaround, we temporarily set the access modifier of the classes to
public
, and then revert them back tointernal
after selecting the type in question. However, this can become cumbersome with larger view models that have multiple layers ofinternal
classes, where thepublic
modifier has to cascade to every dependency.Steps to reproduce
internal
class with apublic
property for data bindingDataSource
(orDataContext
) of the control to theinternal
class using the "Add and update object data sources" toolDiagnostics
No response
The text was updated successfully, but these errors were encountered: