.net - Can you split a visual studio project (c#) and reference it? -


not sure how explain here goes.

i have 2 projects reference sqlite. 1 windows , 1 windows phone.

now need create class library each platform, , reference correct sqlite project each. ideally create code in 1 place , reference in each project. problem code uses sqlite.

i not want have separate copy in each project each platform.

can want, or not possible?

i thought maybe able because if create windows application using cordova, somehow creates 3 projects, 1 windows, 1 phone , other has shared resources in.

here sort of thing of like

sqlite - windows sqlite - phone

library - windows (references sqlite windows) library - phone (references sqlite phone) library - shared (shared code both library projects can use)

cordova - windows (references library windows) cordova - phone (references library phone) cordova - shared (shared resources both cordova projects can use)

this because sqlite cannot run on both windows , phone, need separate project each

this old silverlight trick share 1 set of code between 2 projects or 2 different versions of clr.

create code in project 1. project 2, add files linking them project 1. type of add link process:

the trick include link project. here how

  1. in second project right click , select add existing item... or shift alt a.
  2. browse location of file(s) found in first project , select file(s).
  3. once file(s) have been selected, on add button select drop down arrow.
  4. select add link add common files(s) link project.

    enter image description here

that give access file as if file within project, file physically resides elsewhere.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -