I found it out,
first you will add the app settings entries on appSetting of the web.Config with empty values or with debug values
then you add the the same with the different values on the web.release.config but add the transformation part
Then when you publish the website on release mode you'll get the release values, You can also add the same to debug config then publish in debug config with different values