cake-build / cake-vs

Cake Extension for Visual Studio
https://marketplace.visualstudio.com/items?itemName=vs-publisher-1392591.CakeforVisualStudio
MIT License
67 stars 25 forks source link

Added Solution Item Template #96

Closed dlbroadfoot closed 5 years ago

dlbroadfoot commented 5 years ago

The existing item template only works when you go to add a new item to a C# project.

This PR adds support so you can right click on the Solution and add a new Cake script. It will then appear in the Solution Items folder in Visual Studio.

dlbroadfoot commented 5 years ago

I also fixed up the build issue by replacing MagicChunks with the built in XmlPoke functionality.

Picked up ProjectType general for solution items here: https://github.com/OsirisTerje/RunSettings/blob/master/AllTemplate/MyTemplate.vstemplate

dlbroadfoot commented 5 years ago

Not sure if this repo is still active. Is it possible to get a review please @gep13 @agc93

gep13 commented 5 years ago

@dlbroadfoot it is. Reviewing this PR is on my list of things to do, but there are quite a few things ahead of it in the list 😢

dlbroadfoot commented 5 years ago

No worries @gep13 - thanks for taking the time to review when you do get a chance.

agc93 commented 5 years ago

Thanks for your contribution @dlbroadfoot !

I've cherry-picked out your change and committed it (as 39bbe83bf828051f417a7779507cb4c2c20d70de) as I'd like to clean the build up properly. This should appear in a prerelease version shortly.

Thanks again for the awesome work!