Today I had to work on a solution that I hadn’t touch in a while. It was built with Visual Studio 2012 using the CRM Developer Toolkit. Since I made the decision not to use it, I needed to find a way to use the solution with Visual Studio 2015 without having to recreate one.
It is pretty simple.
If you have a “Package Project” that includes Web Resources, here are the steps you should take to get rid of it:
- Create a new project (I usually use a library, empty project).
- Drag the web resource from the CRM Package project to your newly created project
- Delete the CRM Package project from your solution
For the Plugin or Custom Workflow activities project types, it is also simple enough. If you open the solution in VS2013 or VS2015, you will see that the project is flagged as not compatible.
To fix this, a small operation is required. Find the location of the project on the computer and open the corresponding project file (.csproj) and open it with a text editor.
Once open, find the “ProjectTypeGuids” node under the Project –> PropertyGroup node and delete it.
Close and re-open the Solution in Visual Studio 2013 or 2015. In my case, it didn’t work right away. I was hit with an error when trying to open the project files “No exports were found that match the constraint: ContractName”:
To fix this, simply remove the ComponentModelCache folder content from the folder %AppData%\..\Local\Microsoft\VisualStudio\11.0\ComponentModelCache
Again, close the solution and re-open it, It should work like charm! Life is good.