Microsoft Visual Studio 2010 Bug : SharePoint List Definition Project Invalid Schema.xml - by Naimish Pandya

Status : 

  By Design<br /><br />
		The product team believes this item works according to its intended design.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


1
0
Sign in
to vote
ID 692514 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 10/1/2011 3:03:18 AM
Access Restriction Public

Description

I wanted to simple create a custom list in SharePoint 2010, using Visual Studio 2010.

Stpes :

1. Open Visual Studio 2010

2. Got To File -> New -> Project

3. Select Visual C# (I selected C#, you may select VB.NET) -> SharePoint -> 2010

4. Select Project Type as List Definition

5. Give some name to your project and select OK.

6. Enter your SharePoint site URL to validate and deploy the solution as farm solution, click Next

7. Give some name to your List Definition

8. Select Custom List as type of the List Definition

9. Click on Finish

10. Visual Studio 2010 will list down few of the files (see in solution explorer).

11. Build The Project.

12. You will get below warnings:

Warning	1	The element 'View' in namespace 'http://schemas.microsoft.com/sharepoint/' has invalid child element 'ParameterBindings' in namespace 'http://schemas.microsoft.com/sharepoint/'. List of possible elements expected: 'ViewFooter, GroupByHeader, ViewEmpty, Xsl, PagedRecurrenceRowset, RowLimitExceeded, ViewData, ViewBody, PagedClientCallbackRowset, ViewStyle, ViewHeader, PagedRowset, Method, GroupByFooter' in namespace 'http://schemas.microsoft.com/sharepoint/'. c:\users\xxx\documents\visual studio 2010\Projects\ListDefinitionProject2\ListDefinitionProject2\ListDefinition1\Schema.xml 44	10	ListDefinitionProject2

Warning	2	The 'Default' attribute is not declared.	c:\users\xxx\documents\visual studio 2010\Projects\ListDefinitionProject2\ListDefinitionProject2\ListDefinition1\Schema.xml 54	18	ListDefinitionProject2

Warning	3	The element 'View' in namespace 'http://schemas.microsoft.com/sharepoint/' has invalid child element 'ParameterBindings' in namespace 'http://schemas.microsoft.com/sharepoint/'. List of possible elements expected: 'ViewFooter, ViewFields, GroupByHeader, Query, ViewEmpty, Xsl, PagedRecurrenceRowset, RowLimitExceeded, ViewData, ViewBody, PagedClientCallbackRowset, ViewStyle, ViewHeader, PagedRowset, Method, GroupByFooter' in namespace 'http://schemas.microsoft.com/sharepoint/'.	c:\users\xxx\documents\visual studio 2010\Projects\ListDefinitionProject2\ListDefinitionProject2\ListDefinition1\Schema.xml 56	10	ListDefinitionProject2

Warning	4	The element 'View' in namespace 'http://schemas.microsoft.com/sharepoint/' has invalid child element 'ParameterBindings' in namespace 'http://schemas.microsoft.com/sharepoint/'. List of possible elements expected: 'ViewFooter, ViewFields, GroupByHeader, ViewEmpty, Xsl, PagedRecurrenceRowset, RowLimitExceeded, ViewData, ViewBody, PagedClientCallbackRowset, RowLimit, ViewStyle, ViewHeader, PagedRowset, Method, GroupByFooter' in namespace 'http://schemas.microsoft.com/sharepoint/'.	c:\users\xxx\documents\visual studio 2010\Projects\ListDefinitionProject2\ListDefinitionProject2\ListDefinition1\Schema.xml 92	10	ListDefinitionProject2
Sign in to post a comment.
Posted by Microsoft on 10/9/2011 at 9:52 PM
Hi Maimish,

Thanks for reporting the issue. We looked into the issue you reported. It is because the schema definition file isn't updated in SharePoint Server, but VS relies on the file installed with the SharePoint Server to pass the XML file syntex and report warnings. Given this is a work item that the SharePoint team to update in their next release, we'll resolve this bug as By Design. If it's blocking you, please feel free to let me know.

Thanks,
Xiaoying Guo
Program Manager, Visual Studio Tooling Team
Posted by EricLeong [Feedback Moderator] on 10/3/2011 at 3:23 AM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. Your issue has been routed to the appropriate VS development team for review. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 10/1/2011 at 3:41 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)