Unable to update auto-refresh reference 'microsoft.codedom.providers.dotnetcompilerplatform.dll'.
Unable to update auto-refresh reference 'microsoft.codedom.providers.dotnetcompilerplatform.dll'.
Cannot find assembly 'D:\JENKINS_HOME\LISA 6.0 CMS\Solution\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.8\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll'.
Warning: Unable to update auto-refresh reference
Hi all,
I finally tracked down the final answer for my problem and will post here for any who experience the same issues.
Solution Explorer > Right Click the website project node > Property Pages > References
This lists the references the build process keeps track of. Some of them will have 'Auto Update' for the version field. This appears to be directed by a file in the Bin folder attached to the .dll in question. The file has an extension of '.refresh'. Inside that file there is a path that the build process tries to refresh during a build.
The path in that file should point to a folder in the current website project. In my case I did some odd copy or moves of website files, and then I deleted the old project folder. But my .refresh files were still pointing to the deleted project folder, and not pointing to my current project folder. Actually, had I not deleted the old project folder I would have never realized my .refresh folders were not addressing my current project folder.
When I updated the applicable .refresh files by changing just the project folder name (inside a fairly long string), the 'Unable to update auto-refresh reference' warnings ended and now my build process is checking the proper folder during builds. You'll know which .refresh files to update by noting the error report and which referenced files are listed there.
Best Regards,
Alan
解决方法:
需要检查指定目录下,是否有后缀名为refresh的文件。如果有的话,删除。
或者在Jenkins复制文件之前,先清空目录
作者:Chuck Lu GitHub |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
2016-04-18 通过代码或者配置文件 对log4net进行配置