Questions tagged [code-sharing]

101 questions
0
votes
1 answer

WPF Custom control problem: 'Shape' does not have a public property named 'Background'

I'm trying to create a custom control that can be shared by both Silverlight and WPF. For the sake of this I don't use Triggers in my Custom control's templates which are not supported by Silverlight - instead I use Storyboard animations which seem…
rem
  • 15,545
  • 36
  • 102
  • 177
0
votes
2 answers

Xamarin Forms code sharing

I'm working on a xamarin forms (PCL) project (A basic customer care chat app which is meant to run on Android and iOS only) that has just two xaml pages, custom renderers and few dependencies. This project is meant to be implemented into another…
phourxx
  • 523
  • 1
  • 4
  • 15
0
votes
2 answers

Sharing files across applications

We have a common functionality we need to share among several applications. We already have a few internal libraries, into which we put common code with a well-defined interface. Sometimes, though, there are problems with some code (typically a…
Roman L
  • 2,896
  • 22
  • 37
0
votes
1 answer

Sharing C# code among WPF, UWP, Phone 81 and Compact Framework

For years we've shared our C# code among these platforms by creating projects for each platform inside a directory containing all the source code for that project. As we added new platforms, if a code file containing wouldn't compile on the new…
jchristof
  • 2,512
  • 5
  • 26
  • 42
0
votes
1 answer

Share common c# class between 2 projects but allow a project to make changes to it

Let's say i have a Project A that contains common classes that are going to be shared between Project B and Project C. Is it possible for Project C to implement it's own version of a class from Project A so other classes within Project A will use…
DarkSpikeX
  • 15
  • 3
0
votes
2 answers

Using Git Forks

it's a pretty new thing to me. We have admitted our customer to get access to our source code. Using bitbucket/Sourcetree i meant to use a Fork to grant him read Access to a given state/commit. I don't want to grant access to actual (still in…
dba
  • 712
  • 1
  • 11
  • 20
0
votes
4 answers

Can `internal` access modifier be used to split a class over multiple files?

The topic I'm currently in is code sharing. It is suggested that using the access modifier internal for sharing code between multiple files is possible. But is it? Or do I got it wrong? I can't post the link, because the source is not accessible for…
grabner
  • 1,199
  • 3
  • 12
  • 21
0
votes
3 answers

Sharing classes between projects while getting around stdafx.h dependencies

I have a Visual Studio 2010 solution with several very closely related projects. Would like to get away from copy-paste code sharing and share some common classes between the projects. We have tried adding a reference to the class from project A…
jacobsee
  • 1,286
  • 4
  • 16
  • 30
0
votes
1 answer

Shared library for asp.net core app and windows service

I have an ASP.NET Core web app and a Windows Service that both access the same database. I am using Entity Framework Core as an ORM. I would like to be able to create a library package that encapsulates all data access (ie. a Repository) and can be…
0
votes
2 answers

Want to share common code between two GAE maven projects imported into Eclipse

I have two GAE Java projects, A and B. I want to use some of the mature classes from A in B (and continue to use them in A too, of course). Both projects were created using maven and then imported into Eclipse (in my mind, this kinda makes maven…
markvgti
  • 3,487
  • 6
  • 32
  • 49
0
votes
2 answers

Sharing Async Methods between MVC Controllers

I'm a little late to the MVC game and frankly there is so much information out there, it's almost impossible to use the "right" keywords to even get close to an answer. I have a function that gets codes from the database and displays them in an…
Chris
  • 6,398
  • 8
  • 42
  • 58
0
votes
2 answers

The right method of sharing database variables (asp.net)

I have been sharing database variables using the following code: Namespace DataAccessVariables Public Class Vars Public Shared s As String Public Shared con As String = WebConfigurationManager.ConnectionStrings("Dev").ToString() …
Phil
  • 1,791
  • 9
  • 37
  • 59
0
votes
1 answer

Git. How to make sharing directories instead of duplicating?

I have 3 git repos with similar organization and some duplicate directories between them. They are subprojects of one big project. Proj1/ .git/ feature1_lib/ feature1_app/ feature1/ <- specific to Proj1 feature2_lib/ …
LVitya
  • 363
  • 1
  • 7
0
votes
2 answers

Can Worklight Shell and Inner Applications be used to share common code across applications?

My Worklight project contains two separate hybrid mobile applications. The applications have in common a good deal of HTML, CSS and JavaScript. I need a way to encapsulate the common code so that it can be shared by both applications. Can Worklight…
richardsun
  • 3,237
  • 1
  • 15
  • 22
0
votes
2 answers

Tool to create Repository for sharing android project on LAN

I am new to working on projects in a team. I need to Share an android project with my team placed at one local server machine with the other machines connected through LAN. We are using Eclipse for project development. How can i place project code…
isumit
  • 2,143
  • 4
  • 16
  • 27