Hi,
I have a project composed of few platforms that looks like the following:
I need to add a reference in all projects that point to the shared project. The problem is that the generated _csproj_ (for instance in the UWP one) replaces $safeprojectname$.Shared with the full project name, so instead of adding MyProject1.Shared, MyProject1.UWP.Shared is added.
How can I overcome this?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Isn't that what the ext_ prefix is for, to get the parent's variables?
So you would use: $ext_safeprojectname$.Shared
Yes it does. But it's not mentioned in the docs whatsoever.
Here's my Q/A in SO.
@weitzhandler Thanks for confirming that works. I'll add this to the backlog to update the article.
@rhyous Thanks for providing the solution!
@gewarren I believe this one is area-extensibility since it concerns authoring project templates.
Most helpful comment
So you would use: $ext_safeprojectname$.Shared