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

Settings item template breaks the build in .NET Core applications #323

Open
JeremyKuhne opened this issue Feb 7, 2020 · 0 comments
Open

Comments

@JeremyKuhne
Copy link
Member

If you add a new "Settings" item to a .NET Core project it will cause a build failure if you don't have the System.Configuration.ConfigurationManager package installed.

Error	CS1069	The type name 'ApplicationSettingsBase' could not be found in the namespace 'System.Configuration'. This type has been forwarded to assembly 'System.Configuration.ConfigurationManager, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Consider adding a reference to that assembly.	Core2	C:\Users\jerem\source\repos\UserSettings\Core2\Settings1.Designer.cs	16	Active

This doesn't happen in a .NET Core WinForms application as Microsoft.WindowsDesktop.App.WindowsForms framwork carries that package.

I'm not sure how things work precisely, but we:

  1. Want to keep the template available for Core as it is still a supported scenario
  2. Not add the package on .NET Framework apps, only Core, and ideally not when the WindowsForms framework is targeted (as it is redundant in that case)

cc: @ericstj; @maryamariyan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant