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
0 answers

What Method of Shared Code Files Does Visual Studio/ReSharper Perform Better With?

Setup VS Enterprise 15.7.6 ReSharper Ultimate 2018.1.3 I have to deploy .net Class Libraries without any expediencies on other dlls outside of the .net Framework and I'm trying to figure out Visual Studio / ReSharper performance implications…
Daryl
  • 18,592
  • 9
  • 78
  • 145
0
votes
1 answer

C# Integrating classes from Shared Projects with many projects

I'm splitting an old project up into it's component parts so that the individual components can be used by several other projects. There are around 4 stages that are split up into components and 3 master projects which will reference these…
Matt Scott
  • 252
  • 2
  • 15
0
votes
1 answer

Visual Studio 2017 cannot create or open .shproj (shared Project) files

I have recently upgraded to Visual Studio 2017 version 15.6.3. After doing so (and fixing a bunch of other issues), I can no longer open or create .shproj files. My existing projects say (load failed) next to each shared project file, and I have the…
Victor Chelaru
  • 4,491
  • 3
  • 35
  • 49
0
votes
1 answer

Xamarin Sharing A Base Android and iOS Project with multiple Android and iOS apps

I have a project set up so that I can have a different styled app for each of our clients and i'm trying to stream line our design. Currently it is set up so we have our PCL and then an Android and an iOS project for each client. This means that if…
LPQ
  • 325
  • 2
  • 16
0
votes
1 answer

Xamarin.Forms Shared Project Web Service

How can i add web service reference to shared or portable project to add it automatically on another projects (Android, IOS, Windows Phone) ?
0
votes
0 answers

CarouselView in Xamarin Shared Project

I'm using this third party component CarouselView The instructions are clear if using a PCL for the main project but I happened to start my solution with a shared project. My problem is that I can't get the assembly and namespace to load for the…
mac10688
  • 2,145
  • 2
  • 24
  • 37
0
votes
1 answer

Using the App.config file out of a shared project

How can I use the App.config file from a shared project in Visual Studio 2015 C# application? ConfigurationManager.AppSettings[pathKey]; This uses the App.config from the project you are in!
Bayern
  • 330
  • 3
  • 20
0
votes
1 answer

Image Control is not rendering in WinRT 8.1 Xamarin.Forms (Portable) project

Image Renderer in xamarin.forms not rendering in Xamarin.Forms (Portable) and it is working in Xamarin.Forms (Shared) for windows RT 8.1 phone. Why is that so? Is there another way of rendering IMAGE control in windows RT 8.1 phone. My code…
0
votes
1 answer

Can't add Resources/layout folder in shared Xamarin project

I'm working on shared project and needed to add Resources/layout folder but this leads me to error about this folder alredy existing. In my project Resources folder only have Drawable and values subfolders. In actual file system here is also some…
0
votes
0 answers

Can't build project which references shared project

I am using Visual Studio Community 2015. I have one executable c# project which references two different dll projects and these two dlls are referencing the same shared project. It worked this way. I mean I could build that executable project but…
0
votes
1 answer

Xamarin Forms Notification

I try to realize a shared project with Xamarin Forms for Android, ios and WinPhone. I want to use notifications and I followed this sample (https://github.com/edsnider/Xamarin.Plugins/tree/master/Notifier) and was able to create a local notification…
guenes
  • 35
  • 6
0
votes
1 answer

MvvmCross 4.x in shared project

I am totally new in developing with Xamarin and I try to use the MvvmCross library in a shared project for all platforms. It seems that I succesfully added the libraries in each project, but now I am confused how to start. I tried to follow the…
guenes
  • 35
  • 6
0
votes
1 answer

How to have nuget pack all the source files of my library and its referencing shared project?

I created a class library project and a shared project in visual studio 2015. The class library is referencing the shared project and all is well at this point. I want to use NuGet to pack this library project with its symbols but the packing only…
Stécy
  • 11,951
  • 16
  • 64
  • 89
0
votes
0 answers

Xamarin Forms Shared Play Mp3 file on Android

I have asked this question in Xamarins forum but nobody has answered, im hoping this forum can provide an answer for me. My problem is how to play an mp3 file from a shared project on android. I'm making a Xamarin Forms project and uses interfaces…
0
votes
1 answer

Assets from a shared project not rendered in design mode (XAML)

I have a Windows Phone 8 Silverlight project and a Shared Project with some Assets (fonts, images, etc). When I launch the emulator or deploy to the phone the content is correctly shown, but when I'm in design mode this content is not shown at all. …