开发者

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

开发者 https://www.devze.com 2022-12-21 16:29 出处:网络
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 i

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

精彩评论

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