Windows应用程序迁移 - Visual Studio 2008到2010 - “GenerateResource”任务意外失败 [英] Windows Application Migration - Visual Studio 2008 to 2010 - The "GenerateResource" task failed unexpectedly
问题描述
我有一个使用VS 2008构建的Windows窗体应用程序,我正在尝试迁移到VS 2010& .net 4.0。
我收到了这个讨厌的错误,发现它是由资源文件中嵌入的图像引起的。
< ;! - - [if gte mso 10]> < mce:style>
"GenerateResource""任务意外失败。
System.InvalidOperationException:AppDomain的安全状态由配置了NoSecurityChanges标志的AppDomainManager修改。
我在各种论坛中尝试了以下解决方案。
我添加了 <
NetFx40_LegacySecurityPolicy
enabled
=
"
true
"
/>
将
行到devenv.exe.config文件中的< runtime>组。我也尝试了
< GenerateResourceNeverLockTypeAssemblies> trugee< / GenerateResourceNeverLockTypeAssemblies>
解决并运行devenv / clean和devenv设置。
我仍然收到编译错误。
通过查看此主题可以找到此问题的深度:
http://www.go4answers.com/Example/error-msb4018-generateresource-task-25286.aspx
如果有人对这个问题有了更新,请帮忙......
谢谢!
嗨Sudheer,
我找到了一个重复的帖子帖子。由于这个帖子包含的信息多于该帖子的详细信息,我会删除该帖子并专注于这个帖子。请不要&tbsp; t
谢谢您的理解。
经过一些研究,我发现它是MS Connect上的一个已知热点问题。
你已经尝试过PG提供的解决方案,但没有运气。我会联系相关工程师检查问题的状态。
< p style ="margin:0in 0in 0pt">
此致,
Kira Qian
如果您对我们的支持有任何反馈,请联系
msdnmg @ microsoft .COM 跨度> 跨度>
I hav a windows forms application built using VS 2008 which I am trying to migrate to VS 2010 & .net 4.0.
I got this nasty bug and found that it is due to the embedded images in the resource file.
<!-- [if gte mso 10]> <mce:style>
The "GenerateResource" task failed unexpectedly. System.InvalidOperationException: The security state of an AppDomain was modified by an AppDomainManager configured with the NoSecurityChanges flag.
I tried the following solutions suggested in various forums.
I added the < NetFx40_LegacySecurityPolicy enabled = " true " /> line to the <runtime> group in the devenv.exe.config file. I also tried the <GenerateResourceNeverLockTypeAssemblies>trugee</GenerateResourceNeverLockTypeAssemblies> work around and also running devenv /clean and devenv setup.
I still get the compilation error.
The depth of this problem can be found by looking at this thread:
http://www.go4answers.com/Example/error-msb4018-generateresource-task-25286.aspx
If anybody has got an update on this issue, Please help...
Thanks!
Hi Sudheer,
I have found a duplicate thread post by you. Since this thread contains more detail information than that thread, I will delete that thread and focus on this one. Please don’t cross post next time. Thank you for your understanding.
After some researches, I found it is a known hot issue on MS Connect.
You have tried the solution provided by PG but without luck. I will contact related engineer to check the state of the issue.
Sincerely,
Kira Qian
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg@microsoft.com
这篇关于Windows应用程序迁移 - Visual Studio 2008到2010 - “GenerateResource”任务意外失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!