Use csv-files added to c# project as source for combolist -


i have combobox fill content csv file.

in project have app.config file refer file this:

<setting name="listofthings" serializeas="string"> <value>list.csv</value> </setting> 

i've added file solution, , set "copy output" option "copy allways", , i've tried setting "build action" content/compile, following error:

error 67 'project.properties.settings' not contain definition 'listofthings' , no extension method 'listofthings' accepting first argument of type 'project.properties.settings' found (are missing using directive or assembly reference?)

before added csv file project, referenced file full path "c:\temp\list.csv"(c:\temp\list.csv), worked.

any ideas? thanks!

i had add csv-file reference in settings.designer.cs file, works properly! suggestions :)

  [global::system.configuration.applicationscopedsettingattribute()]      [global::system.diagnostics.debuggernonusercodeattribute()]      [global::system.configuration.defaultsettingvalueattribute("list.csv")]      public string listofthings {          {              return ((string)(this["listofthings"]));          }      } 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -