Closed Feroks closed 3 years ago
I think this might be a more generic approach: https://github.com/Redth/ResizetizerNT/pull/55
Good point, it does seem more convenient to use.
However, does your PR support wildcards such as: %(RecursiveDir)
, %(FileName)
, %(Extension)
like Link
does for regular files? I include icons by directories to avoid inflating .csporj file and this way you can easily specify how to adjust name for all files.
However, does your PR support wildcards such as:
%(RecursiveDir)
,%(FileName)
,%(Extension)
likeLink
does for regular files?
Let me try as I think it should.
Seems it does:
<ItemGroup>
<SharedImage Include="images\**\*" Link="%(RecursveDir)new_name_%(FileName)%(Extension)" />
</ItemGroup>
images | android | ios |
---|---|---|
This is because these values are evaluated before it even gets to our tasks.
NOTE: there is no nesting support since Android itself does not support this.
Great! Then this PR can be closed.
Awesome! Thanks for raising the idea! Great to get all this in!
I needed to Tint same icon into multiple colors. Since file name is the same, only last TintColor definition persists. By adding prefixes or postfixes we can alter file name, which will solve overwrite problem.