c# class library use files -


i'm building class library use .dat file, inside library made folder app_data , put .dat file inside it, how can have library use .dat file. how included @ dll when build?

i tried path.getfullpath, , in path, path debug folder, , in folder dont have .dat file expect included because .dat file in project.

i want use .dat file without hard coding path, , should still work when referenced.

you must right-click .dat file , set copy output directory = copy always. doing so, path debug folder correctly point file. no need hard code path.

enter image description here

if you're interested in embedding .dat file in dll (a bit more work), can go way:

can embed other files in dll?


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -