{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/VSProjectSystem/issues/101","labels_url":"https://api.github.com/repos/Microsoft/VSProjectSystem/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/VSProjectSystem/issues/101/comments","events_url":"https://api.github.com/repos/Microsoft/VSProjectSystem/issues/101/events","html_url":"https://github.com/Microsoft/VSProjectSystem/issues/101","id":124239565,"number":101,"title":"Duplicated Source Project item \"Properties\\AssemblyInfo.cs\"","user":{"login":"dazinator","id":3176632,"avatar_url":"https://avatars.githubusercontent.com/u/3176632?v=3","gravatar_id":"","url":"https://api.github.com/users/dazinator","html_url":"https://github.com/dazinator","followers_url":"https://api.github.com/users/dazinator/followers","following_url":"https://api.github.com/users/dazinator/following{/other_user}","gists_url":"https://api.github.com/users/dazinator/gists{/gist_id}","starred_url":"https://api.github.com/users/dazinator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dazinator/subscriptions","organizations_url":"https://api.github.com/users/dazinator/orgs","repos_url":"https://api.github.com/users/dazinator/repos","events_url":"https://api.github.com/users/dazinator/events{/privacy}","received_events_url":"https://api.github.com/users/dazinator/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-29T17:07:35Z","updated_at":"2015-12-29T17:07:35Z","closed_at":null,"body":"When I include my rules for my custom content items, and then run VS experimental instance and try and create a new project, VS errors with: \r\n\r\n![image](https://cloud.githubusercontent.com/assets/3176632/12038116/34062f18-ae4d-11e5-943b-a0d9f2a01e99.png)\r\n\r\nHere are the error log details:\r\n\r\n[VsProjectFault_761f4020-e39b-4718-87af-e3f7b995eb90.failure.txt](https://github.com/Microsoft/VSProjectSystem/files/74143/VsProjectFault_761f4020-e39b-4718-87af-e3f7b995eb90.failure.txt)\r\n\r\nTo cause this error, I added this to my `CustomProject.targets` file:\r\n\r\n```xml\r\n\r\n  <!--<PropertyPageSchema Include=\"\r\n                        $(MSBuildThisFileDirectory)Rules\\DnnItems\\ModuleView.xaml;\r\n                        $(MSBuildThisFileDirectory)Rules\\DnnItems\\ModuleViewCodeBehind.xaml;\r\n                        \">\r\n      <Context>File;BrowseObject</Context>\r\n    </PropertyPageSchema>-->\r\n\r\n```\r\n\r\nIn the ProjectType` project, here are the 2 rules I created:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3176632/12038203/0daa2972-ae4e-11e5-9a16-a951306476bc.png)\r\n\r\nModuleView.xaml:\r\n\r\n```xml\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<!--\r\n    TODO: Reference the rule from the targets file using the PropertyPageSchema tag\r\n    \r\n    Example: Including the following in the targets file will add a new property page in the project properties dialog.\r\n    <PropertyPageSchema Include=\"$(MSBuildThisFileDirectory)Rules\\ModuleView.xaml;\">\r\n      <Context>Project</Context>\r\n    </PropertyPageSchema>\r\n    \r\n    For more information, please refer to the following blog post:\r\n    http://blogs.msdn.com/b/vsproject/archive/2009/06/18/platform-extensibility-part-2.aspx\r\n-->\r\n<Rule\r\n\tName=\"UserControl\"\r\n\tDisplayName=\"Module View\"\r\n\tPageTemplate=\"tool\"\r\n\tDescription=\"ModuleView build items\"\r\n\txmlns=\"http://schemas.microsoft.com/build/2009/properties\">\r\n    <Rule.DataSource>\r\n        <DataSource Persistence=\"ProjectFile\" HasConfigurationCondition=\"True\" ItemType=\"Content\"/>\r\n    </Rule.DataSource>\r\n\r\n    <Rule.Categories>\r\n        <Category Name=\"Misc\" DisplayName=\"Misc\" />\r\n    </Rule.Categories>   \r\n\r\n    <StringProperty Name=\"Identity\" DisplayName=\"File Name\" ReadOnly=\"true\" Category=\"Misc\" Description=\"The item specified in the Include attribute.\">\r\n        <StringProperty.DataSource>\r\n            <DataSource Persistence=\"Intrinsic\" ItemType=\"Content\" PersistedName=\"Identity\" />\r\n        </StringProperty.DataSource>\r\n    </StringProperty>\r\n\r\n    <StringProperty Name=\"FullPath\" DisplayName=\"Full Path\" ReadOnly=\"true\" Category=\"Misc\" Description=\"Location of the file.\">\r\n        <StringProperty.DataSource>\r\n            <DataSource Persistence=\"Intrinsic\" ItemType=\"Content\" PersistedName=\"FullPath\" />\r\n        </StringProperty.DataSource>\r\n    </StringProperty>\r\n\r\n    <BoolProperty Name=\"Visible\" Visible=\"False\" />\r\n    <StringProperty Name=\"DependentUpon\" Visible=\"false\">\r\n        <StringProperty.Metadata>\r\n            <NameValuePair Name=\"DoNotCopyAcrossProjects\" Value=\"true\" />\r\n        </StringProperty.Metadata>\r\n    </StringProperty>\r\n\r\n    <StringProperty Name=\"Link\" Visible=\"false\">\r\n        <StringProperty.Metadata>\r\n            <NameValuePair Name=\"DoNotCopyAcrossProjects\" Value=\"true\" />\r\n        </StringProperty.Metadata>\r\n    </StringProperty>   \r\n\r\n</Rule>\r\n\r\n```\r\n\r\nand \r\n\r\nModuleViewCodeBehind.xaml\r\n\r\n```xml\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<!--\r\n    TODO: Reference the rule from the targets file using the PropertyPageSchema tag\r\n    \r\n    Example: Including the following in the targets file will add a new property page in the project properties dialog.\r\n    <PropertyPageSchema Include=\"$(MSBuildThisFileDirectory)Rules\\ModuleView.xaml;\">\r\n      <Context>Project</Context>\r\n    </PropertyPageSchema>\r\n    \r\n    For more information, please refer to the following blog post:\r\n    http://blogs.msdn.com/b/vsproject/archive/2009/06/18/platform-extensibility-part-2.aspx\r\n-->\r\n<Rule\r\n\tName=\"UserControlCodeBehind\"\r\n\tDisplayName=\"Module View Code Behind\"\r\n\tPageTemplate=\"tool\"\r\n\tDescription=\"ModuleView build items\"\r\n\txmlns=\"http://schemas.microsoft.com/build/2009/properties\">\r\n    <Rule.DataSource>\r\n        <DataSource Persistence=\"ProjectFile\" HasConfigurationCondition=\"True\" ItemType=\"Compile\"/>\r\n    </Rule.DataSource>\r\n\r\n    <Rule.Categories>\r\n        <Category Name=\"Misc\" DisplayName=\"Misc\" />\r\n    </Rule.Categories>\r\n\r\n    <StringProperty Name=\"SubType\" DisplayName=\"SubType\" Visible=\"False\" Default=\"ASPXCodeBehind\">\r\n        <StringProperty.DataSource>\r\n            <DataSource Persistence=\"Intrinsic\" ItemType=\"Compile\" PersistedName=\"SubType\" HasConfigurationCondition=\"false\"  />\r\n        </StringProperty.DataSource>\r\n    </StringProperty>\r\n\r\n    <StringProperty Name=\"Identity\" DisplayName=\"File Name\" ReadOnly=\"true\" Category=\"Misc\" Description=\"The item specified in the Include attribute.\">\r\n        <StringProperty.DataSource>\r\n            <DataSource Persistence=\"Intrinsic\" ItemType=\"Compile\" PersistedName=\"Identity\" />\r\n        </StringProperty.DataSource>\r\n    </StringProperty>\r\n\r\n    <StringProperty Name=\"FullPath\" DisplayName=\"Full Path\" ReadOnly=\"true\" Category=\"Misc\" Description=\"Location of the file.\">\r\n        <StringProperty.DataSource>\r\n            <DataSource Persistence=\"Intrinsic\" ItemType=\"Compile\" PersistedName=\"FullPath\" />\r\n        </StringProperty.DataSource>\r\n    </StringProperty>\r\n\r\n    <BoolProperty Name=\"Visible\" Visible=\"False\" />\r\n    <StringProperty Name=\"DependentUpon\" Visible=\"false\">\r\n        <StringProperty.Metadata>\r\n            <NameValuePair Name=\"DoNotCopyAcrossProjects\" Value=\"true\" />\r\n        </StringProperty.Metadata>\r\n    </StringProperty>\r\n\r\n    <StringProperty Name=\"Link\" Visible=\"false\">\r\n        <StringProperty.Metadata>\r\n            <NameValuePair Name=\"DoNotCopyAcrossProjects\" Value=\"true\" />\r\n        </StringProperty.Metadata>\r\n    </StringProperty>   \r\n\r\n</Rule>\r\n\r\n```\r\n\r\nAnd here is my `ProjectItemsSchema.xaml`\r\n\r\n```xml\r\n\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<!--Copyright, Microsoft Corporation, All rights reserved.-->\r\n<ProjectSchemaDefinitions\r\n    xmlns=\"http://schemas.microsoft.com/build/2009/properties\">\r\n\r\n    <ContentType\r\n        Name=\"Text\"\r\n        DisplayName=\"Text file\"\r\n        ItemType=\"Content\">\r\n    </ContentType>\r\n\r\n    <ContentType\r\n        Name=\"XML\"\r\n        DisplayName=\"Xml file\"\r\n        ItemType=\"Content\">\r\n    </ContentType>\r\n\r\n    <ContentType\r\n        Name=\"HTML\"\r\n        DisplayName=\"Html file\"\r\n        ItemType=\"Content\">\r\n    </ContentType>\r\n\r\n    <ContentType\r\n        Name=\"CSS\"\r\n        DisplayName=\"Cascading style sheet\"\r\n        ItemType=\"Content\">\r\n    </ContentType>\r\n\r\n    <ContentType\r\n        Name=\"CSharpFile\"\r\n        DisplayName=\"C# file\"\r\n        ItemType=\"Compile\">\r\n    </ContentType>\r\n\r\n    <ContentType\r\n        Name=\"UserControl\"\r\n        DisplayName=\"User Control\"\r\n        ItemType=\"Content\">\r\n        <NameValuePair Name=\"DependentFileExtensions\" Value=\".cs;.designer.cs\" />           \r\n    </ContentType>\r\n\r\n    <ContentType\r\n        Name=\"UserControlCodeBehind\"\r\n        DisplayName=\"Code Behind\"\r\n        ItemType=\"Compile\">\r\n        <!--<NameValuePair Name=\"DefaultMetadata_SubType\" Value=\"ASPXCodeBehind\" />-->       \r\n    </ContentType>   \r\n\r\n    <ItemType Name=\"Compile\" DisplayName=\"C# compiler\"/>\r\n    <ItemType Name=\"EmbeddedResource\" DisplayName=\"Embedded Resource\"/>\r\n    <ItemType Name=\"None\" DisplayName=\"Does not participate in build\"/>\r\n    <ItemType Name=\"Content\" DisplayName=\"Content\" />\r\n\r\n    <FileExtension Name=\".asax\" ContentType=\"Asax\"/>\r\n    <FileExtension Name=\".asmx\" ContentType=\"HTML\"/>\r\n    <FileExtension Name=\".ascx\" ContentType=\"UserControl\" />\r\n    <FileExtension Name=\".ascx.cs\" ContentType=\"UserControlCodeBehind\" />\r\n    <FileExtension Name=\".asp\" ContentType=\"AspPage\"/>\r\n    <FileExtension Name=\".txt\" ContentType=\"Text\"/>\r\n    <FileExtension Name=\".resx\" ContentType=\"RESX\"/>\r\n    <FileExtension Name=\".html\" ContentType=\"HTML\"/>\r\n    <FileExtension Name=\".htm\" ContentType=\"HTML\"/>\r\n    <FileExtension Name=\".css\" ContentType=\"CSS\"/>\r\n    <FileExtension Name=\".bmp\" ContentType=\"BMP\"/>\r\n    <FileExtension Name=\".ico\" ContentType=\"ICO\"/>\r\n    <FileExtension Name=\".cur\" ContentType=\"CUR\"/>\r\n    <FileExtension Name=\".vbS\" ContentType=\"Script\"/>\r\n    <FileExtension Name=\".jS\" ContentType=\"Script\"/>\r\n    <FileExtension Name=\".xml\" ContentType=\"XML\"/>\r\n    <FileExtension Name=\".cs\" ContentType=\"CSharpFile\"/>\r\n    <FileExtension Name=\".mht\" ContentType=\"MHT\"/>\r\n    <FileExtension Name=\".manifest\" ContentType=\"Manifest\"/>\r\n    <FileExtension Name=\".rdlc\" ContentType=\"RDLC\"/>\r\n    <FileExtension Name=\".cd\" ContentType=\"ClassDiagram\"/>\r\n    <FileExtension Name=\".licenses\" ContentType=\"Licenses\"/>\r\n</ProjectSchemaDefinitions>\r\n\r\n```\r\n\r\nThis is my attempt at defining an `ascx` file, which has a nested `.cs` file and a nested `.designer.cs` file - more details of that found here: #99\r\n\r\nIs this a bug or have I done something silly?"}}