开发者

For a Visual Studio ASP.NET solution, Rebuild (or Clean, then Build) doesn't seem to fix issues with binary mismatch for debugging

I from this answer what the differences are between Build, ReBuild and Clean solution, but I'm not clear about whether it only updates the binaries in the project dir(s) or also makes sure the ones in the IIS webroot, caches, etc. are replaced.

Sometimes, I'll add a breakpoint and attach to the IIS process to debug and it will warn me that the loaded binary doesn't match the solution, even though I rebuilt. I have to hit a page wit开发者_开发知识库h my browser to fix it (that causes ASP.NET to rebuild the binary). Why isn't the binary in IIS getting replaced when I build in VS?


Try this...

<system.web>
      <hostingEnvironment shadowCopyBinAssemblies="false"/>
</system.web>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜