我最近升级到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 SettingsmeLocal SettingsTemp). 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")];
和偶尔,据报道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" />
在您的项目文件。
相关推荐
最新文章