问题
I recently installed the RC update 2 for Visual Studio 2013. When going through the template for a universal app I found a project *******.Shared
which had an extension .shproj
.
When going through some material online what I found was it is - a project template to share code and files, which I thought is so cool. But as I started working on it, I hit a roadblock. How do I add references to this project? Has anyone worked this out?
回答1:
There is no need to add references for the shared code. Just add necessary reference to your Windows Store or Windows Phone project. It works fine for both (shared and specific projects).
回答2:
For Visual Studio 2013 Updates 2 & 3 (and probably 4), install and use the Shared Project Reference Manager Visual Studio extension to allow shared code projects to be referenced from other projects in a solution.
It does have an odd dependency on having a Windows Phone developer licence, even if you do not have a Windows Phone project in your solution, but I assume that dependency will be dropped at some point.
来源:https://stackoverflow.com/questions/23524263/shared-project-with-rc-update-2-for-visual-studio-2013