Visual Studio is an integrated development environment (IDE) from Microsoft.
39
votes
5answers
3k views
Migrating a solution from 2007 to 2010
Let's say we have a well-established solution in Visual Studio 2008, using WSPBuilder to bundle it up into a package. It has a handful of features and a whole whack of assets to deploy (.webpart, ...
20
votes
6answers
3k views
List of best practices on structuring SharePoint 2010 solutions
I am looking for good guidance on how to structure a SharePoint Solution including:
Visual Studio Project Structure
Features (how to separate features)
Namespaces
When to use multiple project ...
15
votes
2answers
917 views
Can't start debugging after install VS11
After I installed VS11 Dev Preview, VS2010 cannot start debugging the Sharepoint 2010 server (developer install on Windows 7). I get a nice error dialog stating:
Unable to start debugging on the ...
13
votes
2answers
3k views
Multiple Sharepoint projects in one solution - how to package correctly?
I have multiple Sharepoint projects in a solution:
MySolution.WF
MySolution.Webparts
MySolution.UI
I also have some common code in a
MySolution.Common
project. All of the aboe projects ...
13
votes
5answers
1k views
Are there any tweaks, tips to make debugging SharePoint 2010 faster?
I am using Visual Studio 2010 Ultimate and SharePoint 2010. The debugging process itself is okay but the startup takes really long. Are there any options or hidden-hints to make this faster?
Edit:
...
10
votes
2answers
1k views
How to access my “Outgoing E-Mail Settings” from code?
Is it possible for me to pull the values that are in:
Central Admin -> System Settings -> Configure outgoing e-mail settings
from my code behind using the object model?
9
votes
1answer
898 views
“Incoming e-mail settings” hidden from custom document library
Very simple set-up:
Visual Studio --> Add New Item --> List Definition. Type: Document Library. Besides that - no changes. Deploy.
Result:
As you can see: No "configure incoming e-mail settings" ...
9
votes
1answer
203 views
Wizard Installer for a Webpart
I have a Webpart for a Sharepoint 2010, and I would like to create a "Wizard Installer" for this webpart, that a customer can install to his own Sharepoint Server.
What is the easiest way to do it?
...
8
votes
4answers
493 views
What do the terms Farm, Site, Web, WebApplication refer to in the SharePoint API?
I'm sorry for dumb question but I am very new to Sharepoint 2010 and something is not clear to me.
What do the terms Farm, Site, Web, and WebApplication mean?
I pretty much understand Farm and Site, ...
8
votes
2answers
2k views
Deployed Timer Job not taking new code when deployed
I've realized recently that, when re-deploying (either manually or through vs2010) my timer job feature package, the updated execute code is not being deployed. Strange yea. Essentially, I'll ...
7
votes
2answers
636 views
Event Reciever on specific list in sharepoint 2010
I am working on creating event reciever for a custom list in sharepoint 2010 using visual studio..how can this event reciever be targeted to a specific custom list ..in my case its customEmpList?
7
votes
6answers
4k views
Where to find PublicKeyToken?
I opened an empty sharepoint project in which I added a new application page. There I wrote some code. Now I need to enter that information under <SafeControls> tag in web.config file.
...
7
votes
1answer
913 views
Best practices for creating a shared code library for SharePoint projects
I have several projects for SharePoint 2010 (mostly they are separate solutions built each to separate wsp's) in active development. And I have a similar tasks in these projects (logging, ...
7
votes
1answer
456 views
When to use VS 2010 vs. SP Designer for development
When do we use Visual Studio 2010 for SharePoint 2010 web part development and when do we stick with Designer? Are there pros/cons? As a noob, it seems that for more robust, customized web parts, ...
6
votes
3answers
382 views
Ups and Downs of Content Type Creation Methods
There are several places online I've read to only create content types in feature XML. However, the reason for this seems to be to keep the content type as deployed in a feature.
As I understand it, ...
6
votes
4answers
2k views
Files in feature won't update when marked with GhostableInLibrary
Having an issue updating files with a feature. This is for custom branding. here is a sample of the elements.xml file. If I add a new file, it will provision fine, but any changes to existing files ...
6
votes
1answer
341 views
Moq'ing SharePoint for Unit tests
Everything i read about unit testing mentions TypeMock isolator. thats good when you can control what unit testing and mocking tools you are using in the project but I am unable to use TypeMock. ...
6
votes
3answers
578 views
SharePoint Web service requests take 30-60 secs initially
When trying to access SharePoint WSS 3.0 server using the web services API, the software service we are developing will hang anywhere between 30-60 seconds when making any call (pick anyone of them, ...
5
votes
3answers
801 views
Why is Microsoft.SharePoint.Search.dll copied in my project?
When working on a VS project that involves referencing Microsoft.SharePoint.dll, building the project causes Microsoft.SharePoint.Search.dll to be copied to my bin folder. Why is this? Okay, maybe ...
5
votes
3answers
2k views
Content Type Inheritance
In simplified form, I have the following situation.
A Parent content type
<ContentType ID="0x0100db5b9dac9c5f4d098820f922eebf3b39"
Name="Parent"
Group="Example Content ...
5
votes
2answers
912 views
Do I need to reset SPWeb.AllowUnsafeUpdates after use?
Do I need to reset the SPWeb.AllowUnsafeUpdates property after use?
Seems not, but all over the web there is code like:
bool allowUnsafeOrig = web.AllowUnsafeUpdates;
web.AllowUnsafeUpdates = true;
...
5
votes
4answers
986 views
Force a value into NewForm.aspx
I have a specific case where I want to hook up on the NewForm.aspx, hide a MultipleLookupField and set the value by myself.
I'm opening the NewForm.aspx with Javascript and using some query strings ...
5
votes
5answers
2k views
How to create a deployment package for a Sharepoint 2010 webpart in Visual Studio 2010
This might be a dumb question, but i really tried to google and didnt find any good answer.
I was developing some webparts for SharePoint 2007 in Visual Studio 2008, and when i would build my ...
5
votes
2answers
81 views
Why does SharePoint Workflow Project in VS 2008 get modified every time it's opened?
The same goes for the workflow source files -- every time I open the project or go to the source file, it's indicating (by the asterisk) that the file has been modified. Which means two things:
when ...
5
votes
1answer
512 views
Recommended Visual Studio solution design for new SharePoint 2010 intranet
I'm currently working on a large SharePoint 2010 published intranet development project. The initial months of planning have been completed and we're now gearing up to commence the actual dev/build.
...
5
votes
1answer
405 views
Building VS 2010 projects for SharePoint 2010 & 2007
I am curious if anybody else out there is trying to development a single SharePoint product that works with both SP2007 and SP2010, and what approach you have taken to structure your Visual Studio ...
5
votes
2answers
324 views
Intellisense in SharePoint User Controls
I have the following (simplified slightly) at the top of my application page in SharePoint:
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" ...
5
votes
4answers
7k views
Custom web part deployment produces 'Cannot import this webpart' error
I have built an empty SharePoint project in Visual Studio 2010 with some custom web parts in it. When I've tested these on my local development machine they can be added to a page without any trouble.
...
5
votes
3answers
806 views
SharePoint Web Serivces Access Denied; Only From VS 2010
After not getting much help on the last question, I decided to blow away the VM and re-create it as I already lost a week on this issue. And of course still issues, btu a little different.
I am ...
4
votes
3answers
1k views
Can you use Visual Studio 2008 to develop for SharePoint 2010?
Can I continue to use Visual Studio 2008 to develop for SharePoint 2010? Or do I need Visual Studio 2010?
I understand that VS2010 makes it easier to deploy and debug but other than that what are the ...
4
votes
4answers
1k views
What SharePoint 2013 Development can be done in Visual Studio 2010?
It looks like the tools for developing SharePoint 2013 customizations are mostly in Visual Studio 2012 and "Napa for Office 365."
If you've tried developing solutions for SharePoint 2013 in Visual ...
4
votes
2answers
3k views
How do I create a new document in a document library according to a template in a workflow ?
I have a document library with a DOCX template file. I want to create DOCX file in this library in a workflow but I did not succeed.
Before, I created a workflow in Sharepoint Designer to create a ...
4
votes
2answers
570 views
How to install a WSP that has dependant assemblies?
I have a solution in Visual Studio 2010 that is made up of 3 projects.
I have one project for my SharePoint 2010 custom timer job, one project (Project A) that is used by my custom timer job, and ...
4
votes
1answer
1k views
Where is Package menu item in Visual Studio 2012
I'm using visual studio 2012 for developing SharePoint 2010 solutions, back in vs2010 there was a menu item names "Package" so I can get the package without deploying it and I noticed it's disappeared ...
4
votes
4answers
5k views
How to fix “A SharePoint server is not installed on this computer”
To do SharePoint custom development, what is the recommended method? I've read this post, and it appears that if you want to use debugging in VS2010, you'd want to have SharePoint on the same machine ...
4
votes
1answer
3k views
How do I find the ID for associated content type when adding a page layout?
I'm following the creating a page layout in this example
http://blog.beckybertram.com/Lists/Posts/Post.aspx?ID=71
It adds a page layout using this xml,
<File ...
4
votes
2answers
1k views
How to read a column type SPUser, DateTime, Currency with EcmaScript?
I have a list in SharePoint 2010 with some columns. All are default types. So I have
"Single line of text"
"Multiple line of text"
"Date and Time"
"Choice"
"Number"
"Currency"
"Person or Group"
...
4
votes
1answer
867 views
Programmatically add menus to SPWeb.Navigation.QuickLaunch does not work
I'm trying to add some menus to the "Quick Launch" navigation and it does not work. I'm using the following code:
var ql = myWeb.Navigation.QuickLaunch;
SPNavigationNode m1 = new ...
4
votes
3answers
371 views
Use a supplemental .config file just for a web application
I'm trying to add a section into the web.config of a SharePoint 2010 application and I created a webconfig.myname.xml in the \14\CONFIG folder. I then ran the following command to apply the changes:
...
4
votes
2answers
328 views
How to “seed” default content into newly provisioned site definitions in SharePoint 2010?
We have a publishing site definition that we have created in Visual Studio 2010. It is working great and provisions the sites just fine. We have a need to have starter content inside the sites. All ...
4
votes
1answer
99 views
Is VS 2010 needed to build a SharePoint 2010 project in Powershell?
Can you build a SharePoint Project without Visual Studio 2010/2012 being installed on the machine you are trying build it on using PowerShell?
I have a PowerShell script the is working great. It ...
4
votes
1answer
637 views
Custom timer job - trying to access a custom User Profile - failing with “Could not load file or assembly” (of UserProfile)
I'd be grateful if anyone could point me towards the right direction for the following problem.
Given: Sharepoint 2010 project. FBA Authentication with custom user profile (class called UserProfile, ...
4
votes
1answer
359 views
Use Visual Studio 2010 To Create SandBoxed Site with Content
I have a site that was built with the UI: It has a lot of custom .aspx pages with webparts and there are custom site columns, content types, and even a document library with several support files.
My ...
4
votes
1answer
1k views
Why won't my site column deploy from an elements file?
See Can site columns be deployed in sandboxed solutions? for background on this.
I've tried to reproduce the sandboxed feature with a site column as built by Hilton Giesenow shown on How Do I: Create ...
3
votes
3answers
2k views
After retracting webpart solution webparts still showing up
I retract a webpart solution that was deployed via Visual Studio. Then when i edit a page for some reason the Custom category + the webparts are still being listed when i try to insert a webpart. ...
3
votes
4answers
466 views
Improving SharePoint 2010 performance in a VM
I have created a virtual machine with windows server 2008, Visual Studio 2010, and SharePoint 2010 for development and testing. The machine is configured in VMWare with 40gb hdd, 2gb ram, and 4 ...
3
votes
3answers
233 views
Possible to have an administration page for a custom type?
I've created a custom type and I would like to have a custom administration sight where a few global settings can be defined. I've done a bit of looking around but haven't found anything that shows ...
3
votes
2answers
1k views
Convert SharePoint 2007 features in VS2010 feature designer
Does anybody have experience moving SharePoint 2007 features from VS2008 to VS2010 using the new feature designer? I currently have a C# class library project that has a "12" folder with a bunch of ...
3
votes
2answers
3k views
Workflow action SendEmail does not use “From” field
I have a Visual Studio 2010 workflow for a SharePoint 2010 Server. It uses the default workflow action "SendEmail" to send an e-mail. Everything works out perfectly, but the sender of the e-mail is ...
3
votes
3answers
594 views
Update Feature automatically
I have developed an update for a SharePoint 2010 solution. This update defines some upgrades for some of the included features (the upgrade are managed via the new FeatureUpgraded receiver event).
I ...
