从我的项目生成可执行文件 [英] Build Executable from My Project

查看:79
本文介绍了从我的项目生成可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试过了
http://msdn.microsoft.com/en-us /library/microsoft.build.buildengine.engine(VS.80).aspx [

I have tried this
http://msdn.microsoft.com/en-us/library/microsoft.build.buildengine.engine(VS.80).aspx[^]


but it give error like

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

推荐答案

如果您是从Visual Studio中运行它的,那么您就可以
到bin目录并直接运行.exe.

如果再次遇到相同的问题,则意味着进入项目Properties \ Debug,然后取消选中启用Visual Studio托管过程",或者只是进入安全性选项卡,然后取消选中"Enable ClickOnce Security Settings".

希望这能解决您的问题.
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.


这篇关于从我的项目生成可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆