Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Image Extension

$
0
0

This is more of a VS for Mac question than a Xamarin question, but be it that VS for Mac is based on Xamarin Studio and MonoDevelop, this seems like maybe the right place to ask.

In Xcode I can easily add multiple images to an Assets.xcassets file, but inside of VS for Mac it only allows one image at a time.

I'm starting to look at Add-Ins, and had an idea of maybe creating an image asset producer that takes an input SVG or raster image, and produces the necessary size outputs and programmatically adds them to the projects you select, such as Android, IOS, and OSX, it would be an undertaking of course, but it could cut down on some development time.

Now I know in VS for Windows I could use classes like EnvDTE.DTE to reference the solution and projects that are open in the current instance of VS. Can I do this as well on VS for Mac? The documentation I've seen is very scant, extensibility is not mentioned much. I may just simply want to add a right-click content menu to my Xamarin Forms project called "Add New Image to Projects" and once an SVG or raster image is chosen, it enumerates the projects in the current solution, looks for the ones with a name that ends in say .IOS, and does the appropriate operations to add the image sizings to Assets.xcassets.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>