Visual Studio C# Express 2010에서 내 클래스 라이브러리에 문제가 있습니다. 프로젝트가 .NET 4.0 (클라이언트가 아님)의 대상 프레임 워크로 구성되었습니다. 윤곽).C# .NET DLL이 System.Web 충돌로 인해 빌드되지 않음
내 클래스 라이브러리에서 System.Web에 대한 참조를 추가하여 oAuth 라이브러리에서 작동하도록 URL 인코딩을 가져 왔습니다.
는 DLL과 관련된 테스트 응용 프로그램을 구축 할 때, 나는 다음과 같은 오류 얻을 :
Error 1 The type or namespace name 'TwitterAPI' could not be found (are you missing a using directive or an assembly reference?) C:\Users\sammarks\Documents\Programming\Twitter.NET\Tester\Program.cs 5 7 Tester
가 그리고, 나는 다음과 경고 메시지를 얻을 :
Warning 2 The referenced assembly "C:\Users\sammarks\Documents\Programming\Twitter.NET\TwitterAPI\bin\Release\TwitterAPI.dll" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. Tester
을 내가 왜 모르겠어요를 하지만이게 내가 여기 온 이유야. 클래스 라이브러리를 3.5로 retargeting 시도했지만 그게 아무것도 더 엉망으로 만들었습니다.
또한 System.Web을 참조에 다시 추가하려했으나 도움이되지 않았습니다.
제안 사항?
Nevermind는 Client 대신 .NET Framework 4 자체를 의미한다는 것을 깨닫지 못했습니다. – sammarks
http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/7301dec4-4b96-444d-88bb-630125d080e4 – JohnB
아하! 내 테스터 프로그램이 클라이언트 프로필을 대상으로했습니다. 모두 일하고있어. 감사! – sammarks