c# - VS2010 - PresentationFramework assembly. Why? -


========= update (read copx) ==========

I have left the original exception for all others alone, on all other files, after rebuilding, the error remains on the same file. Here is a little source code. I can not see the need for new assembly:

  using the system; Namespace Project.x Lens Prospect {public class shared expansionsPort: exception {get public string error message {{return base.Messsage.ToString ())}} public shared expansionspart () {} public shared expansionspart (string error message): base ( Error message) {} public shareexpresspart (string error message, exception innerEx): base (error message, inner x) {}}}   

============ ============================

Alo,

I'm really newbie in C # and VS 2010: - \

I have a "pure" Vinform application or at least I think so.

But suddenly (with past changes in the source code) I have an error when constructing the helpful DLL:

Error 7 type 'system. Windows.Interop.HwndHost' Not defined in an assembly, which is not referenced. You must add the reference to the assembly ' Presentation Framework , Version = 3.0.0.0, Culture = Neutral, Public Token = 31bf3856ad364e35'. D: \ MyprojectPath \ SharedExceptions.cs AuxLibraryProject

I do not want to add the project PresentationFramework.dll and even when I tried to add it several other Legislations are required: - (

I want to know that WHERE is guilty for the need for this assembly. I would be happy to blame a few lines on my source code, but I can not get it.

Shared exceptions change one of .cc files, but when I I delete all the changes manually (manually), the error persists.

This same assembly fixes on Windows XP Visual Studio 2010 system, but not on Windows Vista.

thanks

I've found it:

This row was the culprit at the top of the namespace on two assemblies:

  [Assembly: CLSCompliant (true)]   

Remove both assemblies And all makes it fine now.

Greetings.

Comments