How to prevent a .NET application from loading/referencing an assembly from the GAC?

前端 未结 4 1162
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-03 09:35

Can I configure a .NET application in a way (settings in Visual Studio) that it references a \"local\" assembly (not in GAC) instead of an assembly within the GAC, although

4条回答
  •  无人及你
    2020-12-03 10:17

    To successfully deploy your .NET Framework application, you must understand how the common language runtime locates and binds to the assemblies that make up your application. By default, the runtime attempts to bind with the exact version of an assembly that the application was built with. This default behavior can be overridden by configuration file settings.

    You can view binding information in the log file using the Assembly Binding Log Viewer (Fuslogvw.exe), which is included in the Windows Software Development Kit (SDK).

    s

提交回复
热议问题