VS2010 调试构建有效,但发布无效

发布于 2024-09-29 09:36:44 字数 123 浏览 9 评论 0原文

我有一个应用程序,最近添加了两个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

面犯桃花 2024-10-06 09:36:44

因此,要解决此问题,我必须在 C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools 中添加一个配置文件,内容如下:

<?xml version ="1.0"?>
<configuration>
    <runtime>        
        <loadFromRemoteSources enabled="true" />
    </runtime>
</configuration>

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:

<?xml version ="1.0"?>
<configuration>
    <runtime>        
        <loadFromRemoteSources enabled="true" />
    </runtime>
</configuration>
逆夏时光 2024-10-06 09:36:44

配置文件是 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.

ι不睡觉的鱼゛ 2024-10-06 09:36:44

各个项目之间的引用是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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文