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

Trying to use designsurface.cs but have error on line 84 - public ICollection LoadErrors => _loadErrors ?? Array.Empty<object>(); #12514

Open
DaveTallett26 opened this issue Nov 20, 2024 · 2 comments
Labels
❔ question General question, not a problem in source code or documentation (yet) 📭 waiting-author-feedback The team requires more information from the author

Comments

@DaveTallett26
Copy link

I am trying to use the code designsurface.cs.

I am using the c# compiler supplied with the current version of Windows -

Microsoft (R) Visual C# 2008 Compiler version 3.5.30729.9151
for Microsoft (R) .NET Framework version 3.5

line 84 appears to not compile

public ICollection LoadErrors => _loadErrors ?? Array.Empty();

Can you help me please?

DMT

@paul1956
Copy link
Contributor

The current C# compiler comes with Visual Studio 2022 it's at least version 12 (not near computer to check). To build WinForms Repo you need to use Visual Studio 2022, build instructions are include.

@elachlan elachlan added area-DesignerSupport ❔ question General question, not a problem in source code or documentation (yet) and removed area-DesignerSupport labels Nov 20, 2024
@lonitra
Copy link
Member

lonitra commented Nov 26, 2024

As @paul1956 mentions, VS 2022 is needed. Docs on machine set up and how to build winforms repo can be found here. If you are still running into issues, please let us know, happy to help!

@lonitra lonitra added the 📭 waiting-author-feedback The team requires more information from the author label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❔ question General question, not a problem in source code or documentation (yet) 📭 waiting-author-feedback The team requires more information from the author
Projects
None yet
Development

No branches or pull requests

4 participants