在Visual Studio 2010中为什么是.NETFramework,版本= v4.0.AssemblyAttributes.cpp文件中创建的,我可以禁用此? [英] In Visual Studio 2010 why is the .NETFramework,Version=v4.0.AssemblyAttributes.cpp file created, and can I disable this?

查看:1836
本文介绍了在Visual Studio 2010中为什么是.NETFramework,版本= v4.0.AssemblyAttributes.cpp文件中创建的,我可以禁用此?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近升级到Visual Studio 2010。现在,当我建的项目,我收到了行,上面写着:

I've recently upgraded to Visual Studio 2010. Now when I build projects I get a line that reads:

1>  .NETFramework,Version=v4.0.AssemblyAttributes.cpp

我了解到,这是新生成引擎,msbuild.exe的结果,但这个文件实际上是自动创建并放置在我的本地临时目录(C:\ Documents和Settings \我\本地设置\温度)。没有人知道为什么会创建这个文件,我是否可以禁用它的创造?

I've learned that this is the result of the new build engine, msbuild.exe, but this file is actually auto-created and placed in my local temp directory (c:\Documents and Settings\me\Local Settings\Temp). Does anyone know why this file is created, and whether I can disable its creation?

顺便说一句,这似乎并没有有任何东西在它有用,我的脑海里。请看下图:

BTW, it doesn't seem to have anything useful in it, to my mind. See below:

#using <mscorlib.dll>
[assembly: System::Runtime::Versioning::TargetFrameworkAttribute(L".NETFramework,Version=v4.0", FrameworkDisplayName=L".NET Framework 4")];

和偶尔,据报道<一href="http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/15d65667-ac47-4234-9285-32a2cb397e32">http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/15d65667-ac47-4234-9285-32a2cb397e32,它会导致问题。因此,在这个文件,我怎么能避免它自动创建的任何信息将是非常美联社preciated。谢谢!

And occasionally, as reported http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/15d65667-ac47-4234-9285-32a2cb397e32, it causes problems. So any information on this file, and how I can avoid its auto-creation would be much appreciated. Thank you!

推荐答案

这是适用于所有语言(C#,VB和F#有类似的东西太多)。

This is common to all languages (C#, VB, and F# have something similar too).

您可以禁用它的方法之一是正是如此覆盖GenerateTargetFrameworkMonikerAttribute目标:

One way you can disable it is to override the GenerateTargetFrameworkMonikerAttribute target thusly:

<!-- somewhere after the Import of Microsoft.somelanguage.targets -->
<Target Name="GenerateTargetFrameworkMonikerAttribute" />

在您的项目文件。

这篇关于在Visual Studio 2010中为什么是.NETFramework,版本= v4.0.AssemblyAttributes.cpp文件中创建的,我可以禁用此?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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