.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
- in second project right click , select
add
existing item...
or shift alt a. - browse location of file(s) found in first project , select file(s).
- once file(s) have been selected, on
add
button select drop down arrow. select
add link
add common files(s) link project.
that give access file as if file within project, file physically resides elsewhere.
Comments
Post a Comment