{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/VSProjectSystem/issues/107","repository_url":"https://api.github.com/repos/Microsoft/VSProjectSystem","labels_url":"https://api.github.com/repos/Microsoft/VSProjectSystem/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/VSProjectSystem/issues/107/comments","events_url":"https://api.github.com/repos/Microsoft/VSProjectSystem/issues/107/events","html_url":"https://github.com/Microsoft/VSProjectSystem/issues/107","id":126297270,"number":107,"title":"Cannot get properties window for my file type working.. [Help]","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":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-01-12T22:51:42Z","updated_at":"2016-06-26T18:34:31Z","closed_at":"2016-06-26T18:34:31Z","body":"I would like for `ascx` files within my project system, to have a properties window, and one property in particular that is important is the ability to set the \"custom tool\" - as I have created a `single file generator` for ascx files. \r\n\r\nI followed the docs, and have included a rule for `ascx` files:\r\n\r\n```xml\r\n <PropertyPageSchema Include=\"\r\n                        $(MSBuildThisFileDirectory)Rules\\AscxFile.xaml;                        \r\n                        \">     \r\n      <Context>File;</Context>\r\n    </PropertyPageSchema>\r\n```\r\n\r\nIn my `AscxFile.xaml` rule,  I am specifying the properties that I want for ascx files:\r\n\r\n```xml\r\n\r\n<Rule\r\n\tName=\"AscxFile\"\r\n\tDisplayName=\"General\"\r\n\tPageTemplate=\"generic\"\r\n\tDescription=\"File Properties\"\r\n\txmlns=\"http://schemas.microsoft.com/build/2009/properties\">\r\n    <Rule.DataSource>\r\n        <DataSource Persistence=\"ProjectFile\" HasConfigurationCondition=\"false\" ItemType=\"Content\"/>\r\n    </Rule.DataSource>\r\n\r\n    <Rule.Categories>\r\n        <Category Name=\"Advanced\" DisplayName=\"Advanced\" />\r\n        <Category Name=\"Misc\" DisplayName=\"Misc\" />\r\n    </Rule.Categories>   \r\n   \r\n    <DynamicEnumProperty\r\n      Name=\"{}{ItemType}\"\r\n      DisplayName=\"Build Action\"\r\n      Category=\"Advanced\"\r\n      Description=\"How the file relates to the build and deployment processes.\"\r\n      EnumProvider=\"ItemTypes\" />\r\n\r\n    <EnumProperty\r\n      Name=\"CopyToOutputDirectory\"\r\n      DisplayName=\"Copy to Output Directory\"\r\n      Category=\"Advanced\"\r\n      Description=\"Specifies the source file will be copied to the output directory.\">\r\n        <EnumValue Name=\"Never\" DisplayName=\"Do not copy\" />\r\n        <EnumValue Name=\"Always\" DisplayName=\"Copy always\" />\r\n        <EnumValue Name=\"PreserveNewest\" DisplayName=\"Copy if newer\" />\r\n    </EnumProperty>\r\n\r\n    <StringProperty\r\n      Name=\"Generator\"\r\n      Category=\"Advanced\"\r\n      DisplayName=\"Custom Tool\"\r\n      Description=\"Specifies the tool that transforms a file at design time and places the output of that transformation into another file. For example, a dataset (.xsd) file comes with a default custom tool.\" />\r\n\r\n    <StringProperty\r\n    Name=\"Identity\"\r\n    Visible=\"false\"\r\n    ReadOnly=\"true\"\r\n    Category=\"Misc\"\r\n    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\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    <StringProperty\r\n    Name=\"FileNameAndExtension\"\r\n    DisplayName=\"File Name\"\r\n    ReadOnly=\"true\"\r\n    Category=\"Misc\"\r\n    Description=\"Name of the file or folder.\">\r\n        <StringProperty.DataSource>\r\n            <DataSource Persistence=\"Intrinsic\" ItemType=\"Content\" PersistedName=\"FileNameAndExtension\" />\r\n        </StringProperty.DataSource>\r\n    </StringProperty>\r\n\r\n\r\n    <BoolProperty Name=\"Visible\" Visible=\"False\" />\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    <StringProperty Name=\"SubType\" Visible=\"false\" />   \r\n\r\n</Rule>\r\n\r\n```\r\n\r\nHowever when I select the ascx file in solution explorer - its properties window is empty:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3176632/12278954/0e3aa248-b97c-11e5-8188-a7e35a9dc425.png)\r\n\r\nIf I right click on the file, and click properties to bring up the properties pages - I can see its added an additional \"general\" menu item, and then I can see the properties:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3176632/12279420/e8b2a266-b97e-11e5-9c80-55cb09fa2f01.png)\r\n\r\nI am failing to understand how I can add a \"custom tool\" property to the existing \"general properties\" for my ascx file, and how I can make these display on the property window.. :(\r\n\r\nWould appreciate any pointers with this.\r\n\r\nThanks.\r\n\r\n"}}
{"actor":{"display_login":"dazinator"}}