When I deploying solution I need to create folder and place the icon there. How can I do it?
You can use modules for that.
http://msdn.microsoft.com/en-us/library/ms453137.aspx
After adding a module to your Visual Studio Project and adding the image inside it, you can reference it that way:
var web = SPContext.Current.Web; //web scope, if site scope then use SPContext.Current.Site.RootWeb instead.
var myFile = web.ServerRelativeUrl + "/ModuleName/image.jpg"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.