c# - failed to publish: could not find required file 'setup.bin' -
this question has answer here:
- could not find required file 'setup.bin' 4 answers
i have sample console application testing mysql connectivity. code below.
using system; using system.collections.generic; using system.linq; using system.text; using mysql.data; using mysql.data.mysqlclient; namespace mysqlconnection { class program { static void main(string[] args) { string connstr = "server=localhost;user=root;database=world;port=3306;password=password;"; using (mysqlconnection conn = new mysqlconnection(connstr)) { conn.open(); string sql = "select count(*) country"; mysqlcommand cmd = new mysqlcommand(sql, conn); object result = cmd.executescalar(); if (result != null) { int r = convert.toint32(result); console.writeline("number of countries in world database is: " + r); } } console.readline(); } } }
the code runs fine. when try publish project error shown in image below.
i using vs2012 update 3 targeting .net 4. ideas?
thanks.
update:
using answer: could not find required file 'setup.bin' able publish application.
in case that
- hklm\software\microsoft\genericbootstrapper\11.0\path not exist.
- hklm\software\wow6432node\microsoft\genericbootstrapper\11.0\path exists , points
c:\program files (x86)\microsoft sdks\windows\v8.0a\bootstrapper\
from directory copied engine
directory application directory , able publish app. hopefully, not need done each time.
i suggest correct string connection userid property
, add @
var connstr = @"server=localhost;userid=root;database=world;port=3306;password=password;";
Comments
Post a Comment