I'm using VS 2010 to create a SP 2010 web part. I want to include my images, css files and js files in the VS project, and have them be deployed to the correct location. My understanding is that I should be using SPWebPartManager.GetClassResourcePath()
to get the urls for these items, and that the files should end up in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\{web part name}\{version}__{pk token}
.
Is the above correct, or is there a better way?
How to I include these fines in the VS project so that they are deployed to this location - e.g. is there a SharePoint mapped folder I have to put them in?