question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SBRP System.Configuration.ConfigurationManager 7.0.0 missing public types

See original GitHub issue

Describe the Bug

system.configuration.configurationmanager.7.0.0 in https://github.com/dotnet/source-build-reference-packages is missing some public types available in the nuget package. One example being ConfigurationPropertyAttribute - this is as a result causing source build build breaks when we attempt to oboard newest SBRP in msbuild: https://github.com/dotnet/msbuild/pull/8893

The missing type is not added even when I try to regenerate package with generate.cmd -p system.configuration.configurationmanager,7.0.0

Steps to Reproduce

  1. https://github.com/dotnet/source-build-reference-packages/blob/main/src/referencePackages/src/system.configuration.configurationmanager/7.0.0/lib/net7.0/System.Configuration.ConfigurationManager.cs
  2. Search for ConfigurationPropertyAttribute - missing
  3. https://www.fuget.org/packages/System.Configuration.ConfigurationManager/7.0.0/lib/net7.0/System.Configuration.ConfigurationManager.dll/System.Configuration/ConfigurationPropertyAttribute - type is available (and public)

Issue Analytics

  • State:open
  • Created 3 months ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
ViktorHofercommented, Jun 19, 2023

Taking a look and will try to send a PR until tomorrow so that the msbuild PR gets unblocked.

1reaction
ViktorHofercommented, Jun 19, 2023

@MichaelSimons this is happening because SBRP explicitly excludes that type when generating the reference package source: https://github.com/dotnet/source-build-reference-packages/blob/9cee0e5f54df0b2f2f5161aec2102b82ad6043df/src/packageSourceGenerator/DefaultGenApiDocIds.txt#LL9C1-L9C54

That said, someone could argue that the types in that list should only be excluded when appearing as attributes and not excluding the types themselves.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't use System.Configuration.Configuration manager in ...
I have an assembly created in NetStandard2.0. It reads AppSettings using System.Configuration.ConfigurationManager. I have installed nuget ...
Read more >
System.Configuration.ConfigurationManager 7.0.0
Provides types that support using configuration files. Commonly Used Types: System.Configuration.Configuration System.Configuration.ConfigurationManager.
Read more >
System.Configuration Reference missing in Visual Studio ...
I am trying to add a reference to System.Configuration to make use of the Configuration Manager in Visual Studio 2019 but its not...
Read more >
Looking inside ConfigurationManager in .NET 6
In this first post, I take a look at the ConfigurationManager class, why it was added ... NET 5 exposes multiple types around...
Read more >
The type name 'ApplicationSettingsBase' could not be ...
I am using DataSet in my C# console application. When I select checkbox to save connection string in the setting file, such setting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found