how to convert asp.net website project to sharepoint wsp - sharepoint

I have created a Visual studio 2012 asp.net project on my local machine and now want to use in other sharepoint site.
How to convert my asp.net project to wsp file and to deploy to sharepoint environment.

You cannot automatically convert asp.net project to wsp file!
You need to adjust and change your asp.net code manually so it can be deployed to SharePoint and there is a lot to consider depending on your asp.net Projects functionality and structure - wsp (full trust code with c#) vs add-in (clientside code with JavaScript and REST).
Start here at MSDN: SharePoint general development
If you use the new SharePoint Framework (SPFx) to develop your client-side webparts, then you don't need a Visual Studio installed on a SharePoint server. You don't even need a SharePoint server.
Using SPFx you can develop in Notepad or any other code editor.
Note that SPFx is currently (Dec 13 2016) in preview.
Start here at Office Dev Center: Overview of SharePoint Framework (SPFx)

Related

SharePoint 365 Development - Visual Studio 2012 - Actions4 file

I'm looking for some advice. I need to develop some custom workflow activities for a SharePoint 365 online solution. To that extent I do not have a local install of SharePoint 2013. I am using Visual Studio 2012, and have the office developer tools for VS 2012 installed.
When I try to create an empty project for SharePoint 2013, I get the error stating:
SharePoint not installed. The required version of SharePoint
foundation 2013 or SharePoint server 2013 is not installed on this
system. To develop SharePoint solutions or browse SharePoint
connections in server explorer, SharePoint must be installed on the
local system. Make sure that the local server referenced by the
SharePoint project exists
Now, I understand that for SharePoint projects in the past that a local install was required, but with this being online, I do not have that luxury.
Ideally I'd like to identify a way in which I can create an empty project without the need for said local install.
Further to this, I have been able to create an "Apps for SharePoint 2013" project, into which I can create a custom workflow activity. I'm working through some excellent blog posts on how to develop custom activities and it seems to be working file to a point.
What I am now struggling with is that VS2012 is supposed to create an .actions4 file which I can edit to reflect what the workflow activity requires etc. I do not have this file, nor do I understand how I get it.
I would also appreciate information on how I can deploy this custom workflow activity to SharePoint Online so that I can use it in SharePoint designer workflows.
Appreciate there is a lot of asks here, but appreciate any help that people can provide.
Many Thanks,
Grant
Hope this link will help you to create workflows in office 365 . you cannot degug but you can allow visual studio to think that SP is installed on your machine.
https://sharepoint.stackexchange.com/questions/59065/how-visual-studio-checkes-that-sharepoint-has-been-installed-on-my-local-pc

Develop sharepoint project without having local sharepoint installation

I have a SharePoint 2013 server on a remote machine.
I installed this: https://www.microsoft.com/en-us/download/details.aspx?id=35585
on my development system then follow this steps.
Right click on VS 13.
Run as administrator.
File >> NEW >> Project
Templates >> SharePoint Solution
Select SharePoint 2013 - Empty Project
I got this error.
The required version of SharePoint Foundation 2013 or SharePoint Server 2013 is not installed on this system. SharePoint must be installed on the local system to develop SharePoint solutions.
Is it possible to develop SharePoint project on development system?
It depends on what type of solution you want to develop. The error you get says:
SharePoint must be installed on the local system to develop
SharePoint solutions.
so you can't develop SharePoint solutions
but you can develop apps for SharePoint.

How to create Asp.Net WebPage Project in VS 2012?

From another question, got to know that there are three development models in Asp.Net. I have installed VS 2012 in my laptop, but when I try for new web project, I am not able to see the WebPages project template.
Do I need to download the template or Am i doing it in wrong way?
In Asp.net/WebPages, it has a WebMatrix downloadable link. Does that mean, Asp.net webpage project can be created only with WebMatrix?
Web Pages projects are Web Site Projects, so you create them by choosing File ยป New Web Site, then choose ASP.NET Web Site (Razor v2).

Develop Visual Web Part Without Installing Sharepoint

I want to know if it is possible to develop web parts without installing sharepoint?
I choose Visual Web Part then I get sharepoint not installed error.
You can't develop it without SharePoint on same machine.
The answer is "Yes", you can. But if you do that then you loose all features of Visual Studio for development for SharePoint. You will need to create proper visual web part project artifact structure manually which could be tricky. Also you will have to create wsp package manually or using tools like wsp builder. Then you can copy this wsp package to sharepoint server and deploy it.

Sharepoint 2010 development - internet sites or team sites?

I am completely new to SharePoint 2010 and have managed to install SP2010 on windows 7 as a development machine.
I am trying to develop a site from scratch on the SharePoint platform but don't understand how to get my hand the code behind the pages. I understand they are generated dynamically using the database interaction however I want to create a multistage much like WordPress version but using SharePoint. Can anyone point me in the right direction on how to develop a multistage using SharePoint 2010?
You can edit master pages with tools like visual studio but your shouldn't. Download and install SharePoint Designer, it is a free development environment from Microsoft that is specially built to edit the context items of SharePoint.
http://sharepoint.microsoft.com/en-us/product/related-technologies/pages/sharepoint-designer.aspx
If you want to build web parts and so on have a loop at the SharePoint developer tools for visual studio, but to handle this you will need to buy a book about the subject. SharePoint development becomes pretty advanced as soon as you leave the web-gui.

Resources