Jason N. Gaylord
Jason N. Gaylord

Reputation: 8324

VS2010 Debug build works, but Release does not

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?

Upvotes: 1

Views: 4627

Answers (3)

Scott
Scott

Reputation: 21

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.

Upvotes: 1

Jason N. Gaylord
Jason N. Gaylord

Reputation: 8324

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>

Upvotes: 1

Hugo
Hugo

Reputation: 1822

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.

Upvotes: 0

Related Questions