vijirams / csharp-sqlite

Automatically exported from code.google.com/p/csharp-sqlite
Other
0 stars 0 forks source link

Missing reference for System.Management in Community.Data.SQLite.sln #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I just checked out the source using mercurial today.

When I went to compile the Community.Data.SQLite.dll, I got an error saying
that it couldn't find the assembly System.Management. (I disremember the
exact error message)

When I looked at the list of references in Visual Studio's Solution
Explorer, I discovered that, sure enough, System.Management was not listed
as being referenced. After I added it, it compiles just fine.

I use the full version of Visual Studio 2008

Original issue reported on code.google.com by mels...@gmail.com on 2 Oct 2009 at 7:22

GoogleCodeExporter commented 9 years ago
just add a reference to "System.Management"

kr, zara

Original comment by zarawe...@gmail.com on 17 Dec 2009 at 12:52

GoogleCodeExporter commented 9 years ago
Zara,

Indeed. As I said, that's what I did, and it works. 

However, since I had to modify the project to get a clean compile, that 
qualifies as
a bug in my book. (a minor bug, but a bug, nonetheless) And since I don't have 
the
ability to check-in changes to the source tree, I filed a bug report detailing 
the
problem I found and how I fixed it so that someone else can make the change.

Original comment by mels...@gmail.com on 17 Dec 2009 at 2:37

GoogleCodeExporter commented 9 years ago
Where did you add the reference?  In a using statement or to the project itself?

Original comment by noah.hart@gmail.com on 17 Dec 2009 at 2:47

GoogleCodeExporter commented 9 years ago
Noah,

To the project itself. The using statement was there in the .cs file, but
System.Management was missing from the list of references using the Solution 
Explorer. 
After I added it to the list of references in the Solution Explorer, it 
compiled fine.

I don't remember if Visual Studio 2008 had to convert the solution and project 
files
from an earlier version of Visual Studio or not, since this was now two months 
ago.
If so, it's possible that the reference got dropped during the conversion 
process.

Original comment by mels...@gmail.com on 17 Dec 2009 at 2:54

GoogleCodeExporter commented 9 years ago
New version pushed with missing reference

    <Reference Include="System.Management" />

Original comment by noah.hart@gmail.com on 21 Dec 2009 at 7:48