1

Can I create a 2010 visual web part on SharePoint 2013 environment using visual studio 2012

0

No. Unless you copy SP 2010 assemblies and then refer those as part of developing the webpart.

Make sure your target framework is v3.5.

0

yes you can, with no problem at all. I usually work that way with no problem, just move the wsp and deploy it. The deploy will stay in the folder 14, not in the 15, for that "problem" you could use the following command:

Install-SPSolution -Identity InterviewTestWebpart.wsp -GACDeployment -CompatibilityLevel {14,15}

Good Luck

  • How you will refer the assemblies? I have a 2013 setup and I haven't seen 2010 SharePoint assemblies in any place. – Amal Hashim Nov 25 '14 at 20:32
  • What is a reference? A reference is just an indicator, in the project, that you will use that class, but when you package the solution, there is no reference. a wsp is a cab file, please change the extension and open it, and tell me where there is a reference? When you realice a reference in the project is just to use it, but when you build the solution, the solution will go to take the dll's that the system have – Marco Nov 25 '14 at 20:46
  • sorry i didnt try to offend you. I placed your name before my question but for some reason it didnt came through. By reference I meant the object model code which is specific to 2013. In 2013 SharePoint dll has more features compared to 2010, so how it works. As you said if the objects that are being used is compatible with 2010 then only it will work. – Amal Hashim Nov 25 '14 at 20:50
  • There ir no problem, I accidentally pressed the enter, there is my full answer – Marco Nov 25 '14 at 20:52
  • Its giving me this error.. SharePoint not installed , the required version of SharePoint foundation 2010 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 – Avinash Nov 25 '14 at 21:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.