markjprice / cs11dotnet7

Repository for the Packt Publishing book titled "C# 11 and .NET 7 - Modern Cross-Platform Development Fundamentals" by Mark J. Price
566 stars 206 forks source link

Requiring properties to be set during instantiation #61

Closed DrAvriLev closed 1 year ago

DrAvriLev commented 1 year ago

Please check that your issue is not already in the errata aka list of corrections and improvements. Please note that PRs will be ignored because code in the repo must match the print book already published. Please raise an issue instead so I can handle it appropriately. All issues will be entered into the errata once closed. They will also be fixed in the next book edition.

You can delete the note above after reading it. Please complete as much information below as possible so that I can understand and fix the issue quickly. Screenshots can be especially useful. You can drag and drop images into the box. Thank you!

Chapter: 5 Page Number: 231 Section Title: Requiring properties to be set during instantiation Step Number: Problem to fix: Suggested solution: Other useful information e.g. OS, coding tools, and so on: I get an error saying : Error CS0246 The type or namespace name 'Book' could not be found (are you missing a using directive or an assembly reference?) PoepleApp D:# C# 11 and .NET 7\C# Leraning files\Chapter05\PersonApp\Program.cs 162 Active

I know I need to reference the new class. How I do it here, please?

markjprice commented 1 year ago

Have you read this errata item that might help you: https://github.com/markjprice/cs11dotnet7/blob/main/docs/errata/errata.md#page-231---requiring-properties-to-be-set-during-instantiation

DrAvriLev commented 1 year ago

Thank you very much. I knew I was missing a step. I figured that issue by adding manually the include statement to the PeopleApp properties... I'm going to edit my pdf file so save this change. Thanks for your prompt answer. šŸ‘

DrAvriLev commented 1 year ago

Yes I did.

Thanks

Dr. Lev

From: Mark J. Price @.> Sent: Sunday, April 16, 2023 10:53 AM To: markjprice/cs11dotnet7 @.> Cc: DrAvriLev @.>; Author @.> Subject: Re: [markjprice/cs11dotnet7] Requiring properties to be set during instantiation (Issue #61)

Have you read this errata item that might help you: https://github.com/markjprice/cs11dotnet7/blob/main/docs/errata/errata.md#page-231---requiring-properties-to-be-set-during-instantiation

ā€” Reply to this email directly, view it on GitHub https://github.com/markjprice/cs11dotnet7/issues/61#issuecomment-1510154026 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AFUNFM236YJ7IWZN4ST4BH3XBOQM5ANCNFSM6AAAAAAW76J33I . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AFUNFM2IGLD2Y2N7LZFYON3XBOQM5A5CNFSM6AAAAAAW76J33KWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTS2AMPSU.gif Message ID: @. @.> >