2

Visual Studio recently forgot my SQL Server CE SDK installs (they're still there and I tried doing a re-install).

I was just wondering is it possible to add a directory for visual studio to look in for references? Sort of like in C++ how you can have include directories.

meds
  • 21,699
  • 37
  • 163
  • 314
  • Per project? Or for the IDE itself? – Mike Atlas Jul 30 '12 at 00:20
  • Does [DevEnv.exe](http://msdn.microsoft.com/en-us/library/xee0c8y7.aspx) /ResetSettings make any difference in getting Visual Studio to pick up the SQL CE SDK? – Jeremy Thompson Jul 30 '12 at 00:25
  • @Mike Atlas I would like it to be the way it was before where the IDE knew where the SQL CE libraries were installed – meds Jul 30 '12 at 00:27
  • @JeremyThompson Sadly that doesn't help, it still won't see the libraries even though they are installed in C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v3.5\ – meds Jul 30 '12 at 00:28

1 Answers1

1

You can specify a directory for visual studio to look for references:

Add Reference Search Path Dialog Box

"Use this dialog box to specify an additional directory path that the project system will search to resolve references to DLLs, assemblies, or modules in your application."

Jeremy Thompson
  • 61,933
  • 36
  • 195
  • 321
  • I tried adding C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v3.5\Devices\ which contains the System.Data.SqlServerCe.dll assembly but when I go to add a reference System.Data.SqlserverCe does not show up in the '.net' tab... – meds Jul 30 '12 at 00:48
  • 1
    Interesting coincidence? [i-dont-have-sqlserverce-assembly](http://stackoverflow.com/questions/11714480/i-dont-have-sqlserverce-assembly) – Jeremy Thompson Jul 30 '12 at 02:52
  • sadly that didn't work for me, the SqlCe libraries aren't listed... It's really frustrating because they are installed and I can point at exactly where they are :-/ – meds Jul 31 '12 at 00:12