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

How GAC lead to issue if an app needs a specific version ? #79

Open depo101 opened 1 year ago

depo101 commented 1 year ago

Hello Mark,

I believe an additional explanation may be needed for Chapter 1, specifically in the following paragraph:

"For .NET Framework 4.0 or later, all the apps on a computer written for .NET Framework share the same version of the CLR and libraries stored in the Global Assembly Cache (GAC), which can lead to issues if some of them need a specific version for compatibility."

We are aware that the GAC also organizes "legacy .NET assemblies." So how does the GAC cause issues if an app requires a specific version? Could you please provide an example?

It would be beneficial to include your explanation, along with an example, at the end of this paragraph in the new release.

Chapter: Chapter-01 Section Title: Understanding .NET Framework

markjprice commented 1 year ago

That sentence only exists in the book to highlight an area where modern .NET is better than legacy .NET Framework. The book is not about .NET Framework so any more explanation about .NET Framework-specific technology is not needed by readers. Anyone who wants to know more details about how .NET Framework works should read a book about .NET Framework. In the next edition I will remove any mention of the GAC.

depo101 commented 1 year ago

Thank you Mark, Thanks for your reply. I understand this topic will be out of scope of your book. Even so if you want to give an example as a result what would it be ?

Best regards, thanks.