Questions tagged [shared-project]

A Visual Studio 'Shared Project' allows code and assets to be shared amongst other projects.

Shared Project is a new project type that first appears in Visual Studio 2013 Update 2. The code (and assets) in a shared project are included in other projects at compile time.

This may be used as an alternative to Portable Class Libraries, such as when sharing code amongst projects which in their entirety are not cross-compatible.

For example, a solution which has multiple projects that build separate executables for alternative platforms (such as Android and iOS). The Shared Project may hold common code and assets that work on both platforms.

95 questions
0
votes
2 answers

VS2015 error when using Shared Project project template - Unable to cast ProjectNode to IVsAggeregatableProject

I've added some shared projects to my solution. But every time I right-click to add a folder or item I'm getting the error "Unable to cast object of type 'Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.ProjectNode' to type…
Ismail Hassani
  • 442
  • 5
  • 14
0
votes
1 answer

Add a shared project reference via Automation EnvDTE

I need to add a Shared Project reference to a project. I tryed some methods from ProjectItems interface, but it didn't work. I did it because the shared project reference is listed in the Project.ProjectItems enumerable with a name "<…
Thiago Romam
  • 439
  • 4
  • 14
0
votes
1 answer

Can a Visual Studio "Shared Project" be used to share resources across multiple web projects?

Visual Studio 2013 Update 2 introduced the concept of a Shared Project for use with "Universal Apps", i.e. Windows + Windows Phone, though the mechanism is also used by Xamarin to share code for iOS and Android apps. It can also be used…
Josh Gallagher
  • 5,211
  • 2
  • 33
  • 60
-1
votes
1 answer

how to Add Shared Project to WPF Project in VS2019

I've created an WPF Project. Since the project has become big enough for me to maintain I wish to break its code into several Shared Projects. So can I add/create Shared Project for C# & WPF? I'm asking this since I cannot find any template in New…
Amit Saraf
  • 101
  • 1
  • 3
  • 15
-1
votes
1 answer

Xamarin Shared Project on Rider?

Does JetBrains Rider support Xamarin Shared Projects? I know that Rider supports Xamarin iOS and Android applications, but I want to know if I can use code sharing here the same as what Visual Studio can do. I searched JetBrains website and couldn't…
1 2 3 4 5 6
7