In the NaGet MiniProfiler.MVC3 package, it creates a file in App_Start, which is used to control MiniProfiler settings (used by SqlFormatter, changes in ViewEngines, when to launch MiniProfiler, etc.).
There are many TODO comments in this file that talk about how to change the code to execute the way you want. This is great, but when the NuGet package is updated, it will see that I changed the file and did not pull out the updated version. The problem here is that I lose any updates for this file and depending on what is still updated in the package, which makes it unusable (for example, when updating MiniProfiler.MVC3 from version 1.9 to version 2.0.1 after changing MiniProfiler.cs in App_Start, the project will no longer be created due to the necessary changes to this file in version 2.0.1).
What is the best way to handle this? Should I create my own file in App_Start and not modify it in the NuGet package, ensuring that I always get a full update when upgrading to the latest version of NuGet package?
source
share