diff --git a/readme.md b/readme.md index c393010..42943f1 100644 --- a/readme.md +++ b/readme.md @@ -100,6 +100,19 @@ If Polyfill is being consumed in a solution that produce a library (and usually If, however, `InternalsVisibleTo` is being used to expose APIs (for example to test projects), then the Polyfill nuget should be added only to the root library project. +## Troubleshooting + +Make sure `DefineConstants` is not set from dotnet CLI, which would override important constants set by Polyfill. + +Instead of using `dotnet publish -p:DefineConstants=MY_CONSTANT`, set the constant indirectly in the project: +```xml + + + $(DefineConstants);MY_CONSTANT +``` +and use `dotnet publish -p:MyConstant=true`. + + ## Included polyfills