Microsoft.Web.Infrastructure.dll的发行版本 [英] Release version of Microsoft.Web.Infrastructure.dll
问题描述
最近,我发现我们使用某些程序集的Debug版本发布了我们的应用程序.因此,我根据本文编写了一种工具来检测调试版本-http://ardalis.com/determine-whether-an-assembly-was-compiled-in-debug-mode. 修复了控件中所有的程序集之后,我发现我们有一个处于调试模式的Microsoft.Web.Infrastructure程序集.我通过在Codeplex-http://assemblyinformation.codeplex.com/
Recently I found that we were releasing our application with some Debug versions of our assemblies. So I wrote a tool to detect debug versions base off of this article - http://ardalis.com/determine-whether-an-assembly-was-compiled-in-debug-mode . After fixing all the assemblies that were in our control, I found that we had a Microsoft.Web.Infrastructure assembly that was also in debug mode. I verified this by using this tool from codeplex - http://assemblyinformation.codeplex.com/
要对其进行跟踪,我们有一个ASP.NET MVC 3 Web应用程序项目,该项目引用了C:\ Program Files(x86)\ Microsoft ASP.NET \ ASP.NET Web Pages \ v1.0 \ Assemblies中的程序集,可以通过带有Razor语法的ASP.NET网页安装(http://www.microsoft.com/en-us/download/details.aspx?id=15979 )
Tracking it down, we have a ASP.NET MVC 3 Web Application Project that references the assembly in C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\Assemblies, which gets installed by ASP.NET Web Pages with Razor Syntax ( http://www.microsoft.com/en-us/download/details.aspx?id=15979 )
在某个地方有该程序集的发行版本吗? 为什么ASP.NET Web Pages安装程序会发布调试版本? 调试版本会引起任何问题吗?
Is there a release version of this assembly out there somewhere? Why does the ASP.NET Web Pages installer release with a debug version? Will the debug version cause any problems?
通常我会担心Debug,因为它没有进行优化,但是使用Codeplex工具时,程序集似乎是"Debug". & 优化"
Typically I would be worried about the Debug because it's not optimized, but using the codeplex tool it appears that the assembly is "Debug" & "Optimization"
推荐答案
Xrimson,
Hi Xrimson,
欢迎来到MSDN论坛.
Welcome to the MSDN Forum.
在调试模式下,VS将生成符号文件(.pdb).以下是一位成员回答了调试和发布模式之间的区别: http://social.msdn.microsoft.com/forums/zh-CN/clr/thread/4de6861f-e723-4def-bcaf-aa717a3e1897/
When it is in debug mode, VS will generate the symbol file (.pdb). And here is a member answered the different between debug and release mode: http://social.msdn.microsoft.com/forums/en-US/clr/thread/4de6861f-e723-4def-bcaf-aa717a3e1897/
回到您的问题,默认情况下,优化是在调试模式下关闭的,但是您可以打开它:
Back to your question, by default, Optimization is off in debug mode, but you can open it: http://msdn.microsoft.com/en-us/library/606cbtzs.aspx They don't conflict with each other.
我希望这会清楚.
最好的问候
这篇关于Microsoft.Web.Infrastructure.dll的发行版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!