vs clean或rebuild时自动删除dll的解决方法
来源:互联网 发布:淘宝贷款突然不能用了 编辑:程序博客网 时间:2024/05/29 09:00
The bin folder is just the binary output from a build, so when you clean your solution, all the assemblies in the bin folder get deleted. You should reference the assemblies from some other location. One suggestion is to create a Shared Resources folder within your project, copy your assemblies to that folder, then reference them from that folder. This way they won't get deleted from bin on a clean/rebuild and Visual Studio will copy them there as needed.
1. Right-click on the References folder in your project and choose Add Reference...
2. Use the browse functionality to locate the assemblies you want to reference (don't worry about manually copying them to/from your bin folder)
3. After the reference is added, right-click on the reference in your references list and choose Properties
4. Make sure the Copy Local property is set to True
1. Right-click on the References folder in your project and choose Add Reference...
2. Use the browse functionality to locate the assemblies you want to reference (don't worry about manually copying them to/from your bin folder)
3. After the reference is added, right-click on the reference in your references list and choose Properties
4. Make sure the Copy Local property is set to True
This will ensure that assembly is copied to your bin folder on every build.
确保不要在bin下面保存需要持久化的dll或其他文件,有可能(但并非一定)会被删除。
引用dll后,右键该dll,确保Copy Local property 设置为true。
外记:突然就崩了,郁闷死了......
阅读全文
0 0
- vs clean或rebuild时自动删除dll的解决方法
- Android Studio Clean和Rebuild的区别
- VS调试时找不到dll或exe的方法
- AndroidStudio中make Project、clean Project、Rebuild Project的区别
- android:通过clean和rebuild可以解决的错误
- make Project、clean Project、Rebuild Project的区别
- VS2008 Clean+Build Rebuild 区别
- 找不到php_mbstring.dll或php_exif.dll的解决方法与mb_系列函数的用法 libmcrypt.dll时出错的处理
- 找不到php_mbstring.dll或php_exif.dll的解决方法与mb_系列函数的用法 libmcrypt.dll时出错的处理
- vs 2005 express 版本 关于debug 调试时显示 无法找到msvcr80d.dll的错误 解决方法
- Win7 安装 VS 2015 运行C++时提示ucrtbased.dll丢失 的解决方法
- VS生成DLL没有生成LIB文件的解决方法
- VS生成DLL没有生成LIB文件的解决方法
- 如何让VS编译时自动引用Debug|Release版本的dll
- VS调试时断点无法进入或命中的原因及解决方法(PDB引发的)
- VS调试时断点无法进入或命中的原因及解决方法(PDB引发的)
- android studio 更新 Gradle错误解决方法(按键灰色,rebuild和clean都没有问题,被这个问题困扰了一天)
- 【studio】整理了下studio中make Project、clean Project、Rebuild Project的区别
- 分页
- HDU 4310 Hero
- 浅谈ADB的认识(一)
- 习题16
- Android 点9图的绘制
- vs clean或rebuild时自动删除dll的解决方法
- 南阳OJ-题目198:数数
- HTTP协议请求中返回的各个状态码对应的状态信息
- Django点滴(2)xadmin+django-import-export导入导出的实现
- 卷积神经网络学习(一)——基本卷积神经网络搭建
- JS开发中的一些小技巧和方法
- Handler源码分析,Handler,Looper,Message,MessageQueue
- PLSQL Developer连接远程数据库
- WebView加载淘宝,天猫链接失败