MVC项目每次启动都需要更长的时间

本文关键字:时间 项目 启动 MVC | 更新日期: 2023-09-27 18:28:57

我正在做一个MVC项目,每次启动都会增加启动时间,即使我几乎没有更改任何内容。此外,我在调试控制台中得到了大量的行:

'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_32'mscorlib'v4.0_4.0.0.0__b77a5c561934e089'mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'assembly'GAC_MSIL'Microsoft.VisualStudio.HostingProcess.Utilities'11.0.0.0__b03f5f7f11d50a3a'Microsoft.VisualStudio.HostingProcess.Utilities.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Windows.Forms'v4.0_4.0.0.0__b77a5c561934e089'System.Windows.Forms.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Drawing'v4.0_4.0.0.0__b03f5f7f11d50a3a'System.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System'v4.0_4.0.0.0__b77a5c561934e089'System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'assembly'GAC_MSIL'Microsoft.VisualStudio.HostingProcess.Utilities.Sync'11.0.0.0__b03f5f7f11d50a3a'Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'assembly'GAC_MSIL'Microsoft.VisualStudio.Debugger.Runtime'11.0.0.0__b03f5f7f11d50a3a'Microsoft.VisualStudio.Debugger.Runtime.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'D:'Mickael'Maestria'ERP'Launcher'bin'Debug'Launcher.vshost.exe', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.ComponentModel.DataAnnotations'v4.0_4.0.0.0__31bf3856ad364e35'System.ComponentModel.DataAnnotations.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Core'v4.0_4.0.0.0__b77a5c561934e089'System.Core.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Xml.Linq'v4.0_4.0.0.0__b77a5c561934e089'System.Xml.Linq.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Data.DataSetExtensions'v4.0_4.0.0.0__b77a5c561934e089'System.Data.DataSetExtensions.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'Microsoft.CSharp'v4.0_4.0.0.0__b03f5f7f11d50a3a'Microsoft.CSharp.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_32'System.Data'v4.0_4.0.0.0__b77a5c561934e089'System.Data.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Deployment'v4.0_4.0.0.0__b03f5f7f11d50a3a'System.Deployment.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Xml'v4.0_4.0.0.0__b77a5c561934e089'System.Xml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread 'vshost.NotifyLoad' (0x1a7c) has exited with code 0 (0x0).
The thread '<No Name>' (0x1d64) has exited with code 0 (0x0).
The thread 'vshost.LoadReference' (0x1a5c) has exited with code 0 (0x0).
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'D:'Mickael'Maestria'ERP'Launcher'bin'Debug'Launcher.exe', Symbols loaded.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'D:'Mickael'Maestria'ERP'Launcher'bin'Debug'CServices.dll'
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'D:'Mickael'Maestria'ERP'Launcher'bin'Debug'CommonLogger.dll', Symbols loaded.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.ServiceModel'v4.0_4.0.0.0__b77a5c561934e089'System.ServiceModel.dll'
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'D:'Mickael'Maestria'ERP'Launcher'bin'Debug'ConfigurationManagerInterface.dll', Symbols loaded.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'D:'Mickael'Maestria'ERP'Launcher'bin'Debug'NLog.dll'
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'D:'Mickael'Maestria'ERP'Launcher'bin'Debug'System.IO.Abstractions.dll'
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Configuration'v4.0_4.0.0.0__b03f5f7f11d50a3a'System.Configuration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'D:'Mickael'Maestria'ERP'Launcher'bin'Debug'CCBus.dll', Symbols loaded.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Messaging'v4.0_4.0.0.0__b03f5f7f11d50a3a'System.Messaging.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'D:'Mickael'Maestria'ERP'ExtractTransformLoad'bin'Debug'ETL.dll', Symbols loaded.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'D:'Mickael'Maestria'ERP'Launcher'bin'Debug'ERPCore.dll', Symbols loaded.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'D:'Mickael'Maestria'ERP'Launcher'bin'Debug'Inventory.dll', Symbols loaded.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'D:'Mickael'Maestria'ERP'Launcher'bin'Debug'InventoryInterface.dll', Symbols loaded.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'D:'Mickael'Maestria'ERP'Launcher'bin'Debug'ERPInterface.dll', Symbols loaded.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'D:'Mickael'Maestria'ERP'Launcher'bin'Debug'AutoMapper.dll'
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'D:'Mickael'Maestria'ERP'Launcher'bin'Debug'EntityFramework.dll'
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'D:'Mickael'Maestria'ERP'Launcher'bin'Debug'AutoMapper.Net4.dll'
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Security'v4.0_4.0.0.0__b03f5f7f11d50a3a'System.Security.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'Anonymously Hosted DynamicMethods Assembly'
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'D:'Mickael'Maestria'ERP'Launcher'bin'Debug'EntityFramework.SqlServer.dll'
A first chance exception of type 'System.IO.DirectoryNotFoundException' occurred in mscorlib.dll
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'D:'Mickael'Maestria'ERP'Inventory'bin'Debug'Inventory.dll', Symbols loaded.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.ServiceModel.Internals'v4.0_4.0.0.0__31bf3856ad364e35'System.ServiceModel.Internals.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'SMDiagnostics'v4.0_4.0.0.0__b77a5c561934e089'SMDiagnostics.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_32'System.Transactions'v4.0_4.0.0.0__b77a5c561934e089'System.Transactions.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.ServiceModel.Web'v4.0_4.0.0.0__31bf3856ad364e35'System.ServiceModel.Web.dll'
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.IdentityModel'v4.0_4.0.0.0__b77a5c561934e089'System.IdentityModel.dll'
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.ServiceModel.Channels'v4.0_4.0.0.0__31bf3856ad364e35'System.ServiceModel.Channels.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'Microsoft.VisualStudio.Diagnostics.ServiceModelSink'v4.0_4.0.0.0__b03f5f7f11d50a3a'Microsoft.VisualStudio.Diagnostics.ServiceModelSink.dll'
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Web.Services'v4.0_4.0.0.0__b03f5f7f11d50a3a'System.Web.Services.dll'
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Runtime.Serialization'v4.0_4.0.0.0__b77a5c561934e089'System.Runtime.Serialization.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Web.Mvc'v4.0_4.0.0.0__31bf3856ad364e35'System.Web.Mvc.dll'
'Launcher.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Net.Http'v4.0_4.0.0.0__b03f5f7f11d50a3a'System.Net.Http.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
A first chance exception of type 'System.Xml.XmlException' occurred in System.Xml.dll
A first chance exception of type 'System.Xml.XmlException' occurred in System.Xml.dll
A first chance exception of type 'System.Xml.XmlException' occurred in System.Xml.dll
A first chance exception of type 'System.Xml.XmlException' occurred in System.Xml.dll
A first chance exception of type 'System.Xml.XmlException' occurred in System.Xml.dll
A first chance exception of type 'System.Xml.XmlException' occurred in System.Xml.dll
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_32'mscorlib'v4.0_4.0.0.0__b77a5c561934e089'mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Program Files (x86)'Common Files'Microsoft Shared'DevServer'11.0'WebDev.WebServer40.exe', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_32'WebDev.WebHost40'v4.0_11.0.0.0__b03f5f7f11d50a3a'WebDev.WebHost40.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Windows.Forms'v4.0_4.0.0.0__b77a5c561934e089'System.Windows.Forms.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Drawing'v4.0_4.0.0.0__b03f5f7f11d50a3a'System.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System'v4.0_4.0.0.0__b77a5c561934e089'System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_32'System.Web'v4.0_4.0.0.0__b03f5f7f11d50a3a'System.Web.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Core'v4.0_4.0.0.0__b77a5c561934e089'System.Core.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Configuration'v4.0_4.0.0.0__b03f5f7f11d50a3a'System.Configuration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Xml'v4.0_4.0.0.0__b77a5c561934e089'System.Xml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Runtime.Caching'v4.0_4.0.0.0__b03f5f7f11d50a3a'System.Runtime.Caching.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'Microsoft.Build.Utilities.v4.0'v4.0_4.0.0.0__b03f5f7f11d50a3a'Microsoft.Build.Utilities.v4.0.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'Microsoft.JScript'v4.0_10.0.0.0__b03f5f7f11d50a3a'Microsoft.JScript.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'WebMatrix.WebData'v4.0_2.0.0.0__31bf3856ad364e35'WebMatrix.WebData.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Web.Mvc'v4.0_4.0.0.0__31bf3856ad364e35'System.Web.Mvc.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'Microsoft.VisualStudio.Web.PageInspector.Loader'v4.0_1.0.0.0__b03f5f7f11d50a3a'Microsoft.VisualStudio.Web.PageInspector.Loader.dll'
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'assembly'dl3'ee943c2a'986e1056_41f4cf01'Microsoft.Web.Mvc.FixedDisplayModes.dll'
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'assembly'dl3'6ebbb4af'8815225c_41f4cf01'System.Web.Optimization.dll'
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'assembly'dl3'b0ad0af7'f7b20256_41f4cf01'System.Web.Http.WebHost.dll'
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Web.WebPages.Deployment'v4.0_1.0.0.0__31bf3856ad364e35'System.Web.WebPages.Deployment.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread '<No Name>' (0x1664) has exited with code 0 (0x0).
The thread '<No Name>' (0x1574) has exited with code 0 (0x0).
The thread '<No Name>' (0x88c) has exited with code 0 (0x0).
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Web.WebPages'v4.0_2.0.0.0__31bf3856ad364e35'System.Web.WebPages.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Web.WebPages.Razor'v4.0_2.0.0.0__31bf3856ad364e35'System.Web.WebPages.Razor.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Web.WebPages.Deployment'v4.0_2.0.0.0__31bf3856ad364e35'System.Web.WebPages.Deployment.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'assembly'dl3'4be6e154'7c62f85a_41f4cf01'Microsoft.Web.WebPages.OAuth.dll'
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'Microsoft.VisualStudio.Web.PageInspector.Runtime'v4.0_1.3.0.0__b03f5f7f11d50a3a'Microsoft.VisualStudio.Web.PageInspector.Runtime.dll'
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'Microsoft.Web.Infrastructure'v4.0_1.0.0.0__31bf3856ad364e35'Microsoft.Web.Infrastructure.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread '<No Name>' (0x18e4) has exited with code 0 (0x0).
The thread '<No Name>' (0x19a8) has exited with code 0 (0x0).
The thread '<No Name>' (0x1b44) has exited with code 0 (0x0).
The thread '<No Name>' (0xe70) has exited with code 0 (0x0).
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Web.Razor'v4.0_2.0.0.0__31bf3856ad364e35'System.Web.Razor.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'assembly'dl3'00b4944c'87417a5f_41f4cf01'DotNetOpenAuth.Core.dll'
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'WebMatrix.Data'v4.0_2.0.0.0__31bf3856ad364e35'WebMatrix.Data.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Web.ApplicationServices'v4.0_4.0.0.0__31bf3856ad364e35'System.Web.ApplicationServices.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'App_global.asax.-ntsmtsh.dll', Symbols loaded.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'assembly'dl3'9f5d48d2'26ff30f1_72f7cf01'WebUI.dll', Symbols loaded.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'assembly'dl3'8e53e7c1'16475f11_6bf7cf01'System.Web.Http.dll'
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Net.Http'v4.0_4.0.0.0__b03f5f7f11d50a3a'System.Net.Http.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'assembly'dl3'5ef2410c'c25c2f11_6bf7cf01'System.Net.Http.Formatting.dll'
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Runtime.Serialization'v4.0_4.0.0.0__b77a5c561934e089'System.Runtime.Serialization.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'assembly'dl3'4352827b'97985455_41f4cf01'Newtonsoft.Json.dll'
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'SMDiagnostics'v4.0_4.0.0.0__b77a5c561934e089'SMDiagnostics.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'assembly'dl3'348c9303'eb2c3b5a_41f4cf01'CommonLogger.dll', Symbols loaded.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'assembly'dl3'ef9df309'2a05325a_41f4cf01'NLog.dll'
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'assembly'dl3'9061ed08'ab1f385a_41f4cf01'System.IO.Abstractions.dll'
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.ServiceModel'v4.0_4.0.0.0__b77a5c561934e089'System.ServiceModel.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_32'System.Data'v4.0_4.0.0.0__b77a5c561934e089'System.Data.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'assembly'dl3'89248f7d'a3457e24_6bf7cf01'InventoryInterface.dll', Symbols loaded.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'assembly'dl3'b5ec1d90'36d97461_41f4cf01'AutoMapper.dll'
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'assembly'dl3'22bdf008'7d4a2511_6bf7cf01'Infrastructure.dll', Symbols loaded.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'assembly'dl3'9e154841'50ae6c58_41f4cf01'EntityFramework.dll'
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'assembly'dl3'8dc28408'96527361_41f4cf01'AutoMapper.Net4.dll'
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Security'v4.0_4.0.0.0__b03f5f7f11d50a3a'System.Security.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'Anonymously Hosted DynamicMethods Assembly'
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.ComponentModel.DataAnnotations'v4.0_4.0.0.0__31bf3856ad364e35'System.ComponentModel.DataAnnotations.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'assembly'dl3'71ee0074'6963a570_42f4cf01'ERPInterface.dll', Symbols loaded.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Web.Mobile'v4.0_4.0.0.0__b03f5f7f11d50a3a'System.Web.Mobile.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.ServiceModel.Activation'v4.0_4.0.0.0__31bf3856ad364e35'System.ServiceModel.Activation.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Web.Extensions'v4.0_4.0.0.0__31bf3856ad364e35'System.Web.Extensions.dll'
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Xml.Linq'v4.0_4.0.0.0__b77a5c561934e089'System.Xml.Linq.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Web.RegularExpressions'v4.0_4.0.0.0__b03f5f7f11d50a3a'System.Web.RegularExpressions.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.ServiceModel.Internals'v4.0_4.0.0.0__31bf3856ad364e35'System.ServiceModel.Internals.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'Microsoft.CSharp'v4.0_4.0.0.0__b03f5f7f11d50a3a'Microsoft.CSharp.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Dynamic'v4.0_4.0.0.0__b03f5f7f11d50a3a'System.Dynamic.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'App_Web_xli4na0n.dll', Symbols loaded.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'App_Web_shtzkhkb.dll', Symbols loaded.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'App_Web_fw2rtt2u.dll', Symbols loaded.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'assembly'dl3'f3cc286a'a2c10a24_6bf7cf01'ERPCore.dll', Symbols loaded.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'assembly'dl3'41096ae6'1a093ff1_72f7cf01'WebUI.resources.dll'
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.NET'Framework'v4.0.30319'Temporary ASP.NET Files'vs'55ee94c3'18e8126f'assembly'dl3'fb7fc6fd'0b39dc58_41f4cf01'WebGrease.dll'
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:'Windows'Microsoft.Net'assembly'GAC_MSIL'System.Xaml.Hosting'v4.0_4.0.0.0__31bf3856ad364e35'System.Xaml.Hosting.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

我尝试删除所有断点,就像类似帖子中建议的那样,但没有成功。

MVC项目每次启动都需要更长的时间

我不知道MVC是如何启动的,但我知道Fusion Loader是如何工作的,这通常是一件很快的事情。然而,当我从桌面应用程序工作到MVC工作时,我确实注意到,将项目加载到调试模式的等待时间比桌面应用程序长得离谱!只要说Fusion加载程序只是在做它通过程序集引用被告知要做的事情就足够了。

我发现,就速度越来越慢而言,确保前一个会话中的IIS实例真正一直向下是最好的方法。实际上,您可以比上一个IIS会话关闭的速度更快地编译和尝试新的调试会话。这几乎就像你可以在下降的路上抓住它,但它是如何复活的。IIS和VS并不完全同步。

请尝试此操作,右键单击"隐藏图标",然后首先关闭所有IIS实例(右键单击并停止),然后启动调试会话并结束,但这次请注意IIS关闭需要多长时间。这是启动另一个调试会话之前应该等待的大致时间。听起来很疯狂,但对我来说效果很好。请记住,对HTML的任何更改都不需要重新启动,只需保存更改并在浏览器中单击刷新即可。(这对我设计MVC页面的样式有很大帮助)。

我在开发CSHTML页面时学到的另一个技巧是,当你试图将它们设置为样式时,将它们重命名为HTML,因为VSIDE将显示样式(而不必运行页面)。

最后,尝试理解所有正在加载的模块可能是个好主意。在我看来,基于web的应用程序在使用JavaScript、Jquery库以及C#库时似乎充满了废话。但是,如何将它们搭配在一起,才能让一切变得苗条和吝啬呢?我认为答案是你必须研究每一个,才能真正知道它为什么会在那里。