c# - SQLite. Fix sqlite-net-wp8 project dependencies -
why sqlite not available on nuget? why part of visual studio have go updates @ tools->extensions , updates? started coding windows 8 , windows phone 8 in past few months , insight this.
to me, using sqlite on windows 8 project creates vs-level dependency.
let's develop client library using version of sqlite referenced visual studio ide (example: 3.7.x) , distribute library developer uses sqlite 3.8.x referenced his/her visual studio ide, client library still work?
what happened me last week this:
i developed client library windows phone 8 using sqlite , had use 3rd party wrapper written peter huene called sqlite-net-wp8.
it available at: https://github.com/peterhuene/sqlite-net-wp8/
when @ sqlite.vcxproj file (https://github.com/peterhuene/sqlite-net-wp8/blob/master/sqlite.vcxproj) of project, has references given version of sqlite. looks every time update sqlite on visual studio, have update .vcxproj file too.
something like:
<importgroup label="propertysheets" condition="'$(configuration)|$(platform)'=='debug|win32'"> <import project="$(msbuildprogramfiles32)\microsoft sdks\windows phone\v8.0\extensionsdks\sqlite.wp80\**3.8.0.2**\designtime\commonconfiguration\neutral\sqlite.wp80.props" /> </importgroup>
let's develop client library using 3.8.0.2 , give apps developer uses same approach talk sqlite (using sqlite-net-wp8) windows phone 8 apps , he/she uses different version of sqlite (say 3.7.x or newer version 3.9.x), client library still work? believe his/her sqlite-net-wp8 may referring different version of sqlite client library, breaking code.
when updated sqlite 3.7.x 3.8.x, forced me update sqlite.vcxproj go find 3.7 , replace 3.8 not user experience.
i think ideally should backward compatible working 3.7.x also. didn't.
if sqlite , sqlite-net-wp8 available on nuget, can inform developer wants use client library version of sqlite , sqlite-net-wp8 use.
any idea of overcoming problem , have better developer experience dealing issue?
i believe reason sqlite not available on nuget is native package dll used need dependent on target assembly platform nuget don't seem support yet
regarding updating version of sqlite project, don't need manually update vcxproj, use "add reference" remove , readd reference sqlite (it show in add reference window under windows ->extension after have install extension)
Comments
Post a Comment