I forked the EmailContacts sample app in GitHub - it is great!
When I was trying it out I got a message saying that the app is over 20 types. Therefore I had to add my license to the web.config.
If I push my code my license will be in the open since its a public GitHub repo… Is this ok?
Carlos Mendes:
By the way, I had to comment the following config to get it working on windows:
<!–<assemblies>
<add assembly=“System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35” />
</assemblies>–>
You shouldn’t release it publicly. You can do something like:
Licensing.RegisterLicenseFromFileIfExists(@“C:\src\appsettings.license.txt”);
Which is a plain-text file that just contains your licenseKeyText and points outside your repo, it’s a no-op if it doesn’t exist. Other users can still add their own licenseKey in their preferred method, e.g. in Web.config
Carlos Mendes:
Great. Thanks for the tip