我有一个IIS站点,里面有5MVC的webApps,共享相同的报表程序集。
在不使用GAC的情况下,有没有办法让我的5个webApps都使用一个共享/公共的bin文件夹来存放这些报表程序集,而不是让我在每个web应用程序的bin中都有5个程序集的副本?
通过nuget使用程序集,并将webApps发布到我的部署管道中的一个文件夹。
发布于 2020-06-17 03:02:36
https://docs.microsoft.com/en-us/dotnet/framework/deployment/how-the-runtime-locates-assemblies告诉我在我的web.config中使用“探测路径”。我已经在此路径上添加了一个webApp的存储箱,并删除了构建管道中的重复程序集。
请参阅:https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/runtime/probing-element
例如:
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin;bin2\subbin;bin3"/>
</assemblyBinding>
</runtime>
</configuration> https://stackoverflow.com/questions/62404866
复制相似问题