VS2010 调试构建有效,但发布无效
我有一个应用程序,最近添加了两个 C# 类。它始终内置于调试和发布中。两个配置之间没有什么区别。现在,当我构建版本时,它说无法访问依赖项之一。这仅适用于发布版本。这种依赖性没有任何改变,并且始终有效。
有什么想法吗?
I have an app that I've recently added two C# classes to. It always built in both debug and release. The differences between the two configs are nothing. Now when I build the release, it says that one of the dependencies cannot be accessed. This is only for the release build. Nothing changed to that dependency and it always worked.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
因此,要解决此问题,我必须在 C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools 中添加一个配置文件,内容如下:
So to resolve this issue, I had to add a config file at C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools that read:
配置文件是 sgen.exe.config。我必须创建该文件,并且在添加文件后我能够构建版本。
The config file is sgen.exe.config. I had to create the file and I was able to build the release after the file was added.
各个项目之间的引用是project,还是二进制引用?如果它们是二进制引用,您的输出文件夹是否指向不同构建目标和平台的正确位置?您可能还想确保您的构建顺序是正确的。
Are the references between the various projects project, or binary references? If they are binary references, are your output folders pointing to the right locations for the different build targets and platforms? You may also want to ensure that your build order is correct.