This was driving me crazy until I found this : https://developercommunity.visualstudio.com/t/Export-Template-is-not-replacing-the-pro/10730424?sort=newest&topics=visual Seems like there is bug in the template generation. If you open the vstemplate of your client project, you'll probably see that the razor files have ReplaceParameters="false". Just set it to true and it should work properly.