在将C#项目打包成exe的时候,提示unable to update the dependencies of the project .The dependencies for the object 'LayeredSkin.dll' cannot be determined.
LayeredSkin.dll已经引用到项目中,VS调试时一切正常,打包就无法使用
![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/429129881146131.png "#left
是不是打包发布的时候还需要将路径修改
你项目中调用的LayeredSkin.dll应该时debug版本的包,你应该换成release版本的
你好,
请问这个是自己用C#写的安装包还是用的打包工具?这边的建议是将LayeredSkin.dll声明明确的引用,并一起打包到exe中,如果这种方法不行,并且你的安装包是自己用C#原生写出的话,建议解除依赖关系,然后将LayeredSkin.dll放到exe的Properties.resources中,然后在启动exe之后,调用之前释放到根目录下,进行调用。