Question

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?

Was it helpful?

Solution

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>

OTHER TIPS

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.

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top