SharePoint 2010 - Visual Studio Progetto Struttura
-
10-12-2019 - |
Domanda
Quali sono le tue strutture del progetto per i progetti di SharePoint.Ad esempio la mia semplice struttura è: Pensa a un progetto denominato MyPortal
myportal.sln
- myportal.branding (pagine master personalizzate, layout di pagina, immagini CSS-JS che vanno sotto _Kayouts)
- myportal.definitions (tipi di contenuto, ricevitori di eventi, definizioni elenco / istanze)
- myportal.webparts (webparts, controlli utente, pagine applicative personalizzate)
Soluzione
MyPortal.Controls (controls and objects)
MyPortal.Commands (logic and analytics)
MyPortal.Properties (styling)
This can be followed for just about any SharePoint project.
Altri suggerimenti
Structure for any type of SharePoint Project has differences:
1-in Microsoft you can find many templates for programming:
any type has it's own template: download them
for example for web parts:
Elements.xml
Contains information that is used by the Feature definition file in your project to deploy the Web Part.
.webpart file
Provides information that SharePoint needs to display your Web Part in a Web Part gallery.
Code File
Contains methods that add controls to the Web Part and generate custom content within the Web Part.
you can download from here:
Visual Basic and C# SharePoint Templates
These templates appear under the Visual Basic/SharePoint or Visual C#/SharePoint subcategories, and may be further sorted into 2007 and 2010.
2- in CodePlex :
This project extends the Visual Studio 2010 SharePoint Project system with advanced templates and tools.
3- SPSF
The SharePoint Software Factory is a Visual Studio Extension helping SharePoint newbies, as well as experienced developers to create, manage and deploy SharePoint solutions without having to know every tiny XML and C# secret.
4- cksdev
This project extends the Visual Studio 2010 SharePoint project system with advanced templates and tools.