A new Sitecore extension is available for Visual Studio: the Sitecore Project Wizard.
To be honest, it's not a new extension. It's an updated version of the extension I introduced in my January post, Easier Visual Studio Project Creation for Sitecore. But I made some changes that prevent me from simply updating the old extension. As a result, I removed the old extension and will now direct people to the new one.
Just like with the old extension, the purpose of this extension is to make it easier for Sitecore developers to create projects in Visual Studio. But hopefully the changes will make for a more flexible and reliable foundation for future enhancement.
You can get the extension from the Visual Studio Gallery or directly from Visual Studio using Tools > Extensions and Updates... (search for Sitecore).
Read on for information on what's new.
When I originally created the extension I wanted to avoid referencing any Sitecore Rocks assemblies. I didn't have a good reason for wanting to avoid this. And this goal led me down the path of using the CodeDOM API I really should have reconsidered why I was doing this.
And since I was getting reports that suggested that my code didn't work as well as my tests indicated, I decided to remove the dynamic code generation logic and just reference Sitecore.Rocks.dll. This allowed me to simply the code base a bit.
The original extension included a project template with a number of Sitecore assemblies pre-referenced. These were the assemblies that I most often reference. If it's good enough for me, I figured, it's good enough for you.
And I still believe that, but I found that I needed more flexibility than the hard-coded references were allowing. So I introduced an options page that allows you to specify the assemblies you want to be referenced.
You access the options from Tools > Options > Sitecore Projects > References.
Please note: you must manually select the assemblies. I did not include any default assemblies.
The extension still only includes a single project template, but the project template is now named "ASP.NET Web Application", which is a more accurate reflection of the project template.
So when I try and use this project template in Visual Studio 2013 I'm getting an error that it can't load Sitecore.Strategy.VisualStudio.Wizards any idea why this happens?
The problem was that the manifest file was referencing version 1.0.0 of the assembly but version 1.0.1 was included in the vsix file. This problem was fixed in version 1.0.2 of the extension, which is available on Visual Studio Gallery.
This looks like a great time-saver and I would love to use this project template but it appears to be functional only for VS2013. Any chance you could expand the installation/assembly references in it to include VS2012?
Hi David, I posted the source code on GitHub. You should be able to make a VS2012 compatible version for yourself: github.com/.../sitecore-project-wizard
Any plans for MVC support?
Hi Adam, Is this helpful for creating MVC project as well?
after installing this, it corrupts Sitecore Rocks. It states the web service is not the expected version. Sitecore Rocks service 0.0.0 found. Expects 1.50
Hi , i had a doubt in initial stage that, how to integrate Sitecore with visual studio.
Can u explain the above question with picturizing
Hi I have problems with the enterprise version of Visual Studio 2015. Is there a compatible package?