Visual Studio loses link when trying to build

I started using Thrift about a week ago. I got the latest source from SVN and built the C # library (Thrift.dll). I used the library for a prototype TCP client / server with the data types that my team will use. This worked without problems, I just followed the code example in the SVN repository.

Yesterday I wanted to run the same test, but instead of HTTP. I searched the Internet for some and found out that since I received the code last week, until yesterday the patch "THRIFT-322" https://issues.apache.org/jira/browse/THRIFT-322

Applies to the trunk. So I updated my source from SVN and saw a new THttpHandler class. I rebuilt Thrift.dll to use the THttpHandler class, but now when I refer to the new dll, Visual Studio 2010 gives me an error at compile time: "The type or namespace" Thrift "could not be found (you are missing a directive or link to assembly?) ". When I replace the link with the old Thrift.dll, I do not get this error.

I can’t understand what I'm doing wrong, I just recompiled Thrift.dll from an SVN source and I can no longer link to Thrift.dll. When I first add the link, it looks like it will work fine. Visual Studio gives me the correct intellisense etc. As soon as I try to build it, as if there is no longer a link to Thrift.dll. Any ideas?

I also posted this to the Thrift Users mailing list, I just thought maybe this was more general and someone here could help.

Thanks, -Sean

+4
source share
3 answers

Since you mentioned the use of VS 2010 ... I sometimes saw this error / behavior when compiling a .NET 4.0 project, and my target structure for the project is set to ".NET Client 4.0 Client Profile" instead of ".NET Framework 4.0". So you can check it out and see if it helps.

+17
source

I had a similar problem that I had to switch from ".NET Client 4.0 Client Profile" to ".NET Framework 4.0" and it worked because the referenced DLL was compiled using ".NET Framework 4.0"

+2
source

One suggestion I have a check for an update file in the Eg extension Thrift.dll.refresh or something similar. This file is usually added when adding a link. Try deleting this file, replace the DLL, and try creating and restarting it again.

0
source

All Articles