Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have tried this
http://msdn.microsoft.com/en-us/library/microsoft.build.buildengine.engine(VS.80).aspx[^]


but it give error like
MSIL
Target ResolveComReferences:
    C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1418,9): error MSB4061: The "ResolveComReference" task could not be instantiated from the assembly "Microsoft.Build.Tasks.v3.5, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". That assembly does not allow partially trusted callers.
    C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1418,9): error MSB4060: The "ResolveComReference" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.
Done building target "ResolveComReferences" in project "Pavilian Cutting Rassian.csproj" -- FAILED.


I have tried lot but failed to find solution.

Any suggestions, links that leads to solution will be greatly appreciated

Thanks
Posted
Updated 10-Dec-10 19:56pm
v2

1 solution

If you are running it from within Visual Studio means , you go
to the bin dir and run the .exe directly.

If again you face the same problem means go into the projects Properties\Debug and uncheck "Enable the Visual Studio Hosting process", or just go into the security tab and uncheck "Enable ClickOnce Security Settings".

Hope this will solve your problem.
 
Share this answer
 
Comments
Khaniya 13-Dec-10 8:14am    
Thanks Kassor
now Error is gone
but still project is not Built
Project is built only if it is modify
So what to do for forcefully Built
Thanks Again

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900