不是框架V 4.5错误的有效.NET程序集 [英] not a valid .NET assembly for framework V 4.5 error
问题描述
我在Windows 7上使用.NT框架4.5在VS2012上创建了一个DLL。
在Property>下申请>目标框架:我选择框架4.5
我构建,当我尝试regasm和gasutil时,我得到:这不是一个有效的.NET框架
现在,当我在目标框架2.0下做同样的事情时一切都很好。
所以我不确定发生了什么。
我以为自从我的PC升级到4.5然后我可以在编译期间选择4.5框架。
有什么想法吗?
谢谢
它还为框架2.0以外的任何东西提供了相同的错误! !!
I create a DLL on VS2012 on windows 7 with .NT framework 4.5.
Under Property > application > target framework: I select "framework 4.5"
I build and when I try to regasm and gasutil, I get: "this is not a valid .NET framework"
NOW, when I do the exact same thing under target framework 2.0 everything is fine.
So I am not sure what is going on.
I thought since my PC was upgrade to 4.5 then I can select 4.5 framework during the compiling.
any thoughts?
Thanks
ALSO it gives the same error for anything more than framework 2.0!!!
推荐答案
对不起,我发现了这个问题。当我诅咒的时候,我应该在下面这样做:
C:\ Windows \ Microsoft.NET.NET \ Framework64 \v4.0.30319
Sorry, I found out the issue. when I regasm I should do it under:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319
这篇关于不是框架V 4.5错误的有效.NET程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!