Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
With the new update to VS 2013, would there be a way to have intellisense when editing a package.manifest file?
I believe you need this https://gist.github.com/warrenbuckley/10599383
Jup, sure looks like it. Kudos to Warren.
But how can I tell VS that a package.manifest file is actually a json file?
Found it, in VS just search for file extensions
Awesome, going to setup that up!
Thanks
Hi Jeavon,
This may be a slightly stupid question, but how do you plug that gist into Visual Studio so that the Intellisense actually works?
Cheers,
Jason
Hi Jason,
You add a $schema at the top of the file. e.g.
{ "$schema" : "http://schemastore.org/schemas/json/package.manifest.json", "propertyEditors": [
Also please note the update to the schema url in the above snippet.
Jeavon
This isn't adding Intellisense for me.
Did the elements change colour or is all the content all black in VS?
I tried it also.I get coloring of the elements, but no intellisense.And i get a green line under each of the first chars, telling me 'Missing a membername before the colon (':') in the "(name) : (value)" object member'
And this part:
javascript: [
'~/App_Plugins/TextboxCounter/TextboxCounter.controller.js'
]
I get an 'unexpected character sequence in array element value' from the link to the controller.js file.My manifest works fine.
Hello all Thanks Jeavon for plugging my work on this.
I got Mads Kristensen to pick up my starting point & finish it off, so I recommend you set this URL for the schema: http://json.schemastore.org/package.manifest
Thanks, Warren
@soren just change this line
javascript: [ '~/App_Plugins/TextboxCounter/TextboxCounter.controller.js' ]
to this
"javascript": [ "~/App_Plugins/TextboxCounter/TextboxCounter.controller.js" ]
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Visual Studio 2013 Update 2 package.manifest intellisense
With the new update to VS 2013, would there be a way to have intellisense when editing a package.manifest file?
I believe you need this https://gist.github.com/warrenbuckley/10599383
Jup, sure looks like it. Kudos to Warren.
But how can I tell VS that a package.manifest file is actually a json file?
Found it, in VS just search for file extensions
Awesome, going to setup that up!
Thanks
Hi Jeavon,
This may be a slightly stupid question, but how do you plug that gist into Visual Studio so that the Intellisense actually works?
Cheers,
Jason
Hi Jason,
You add a $schema at the top of the file. e.g.
Also please note the update to the schema url in the above snippet.
Jeavon
This isn't adding Intellisense for me.
Did the elements change colour or is all the content all black in VS?
I tried it also.
I get coloring of the elements, but no intellisense.
And i get a green line under each of the first chars, telling me 'Missing a membername before the colon (':') in the "(name) : (value)" object member'
And this part:
javascript: [
'~/App_Plugins/TextboxCounter/TextboxCounter.controller.js'
]
I get an 'unexpected character sequence in array element value' from the link to the controller.js file.
My manifest works fine.
Hello all
Thanks Jeavon for plugging my work on this.
I got Mads Kristensen to pick up my starting point & finish it off, so I recommend you set this URL for the schema: http://json.schemastore.org/package.manifest
Thanks,
Warren
@soren just change this line
to this
is working on a reply...