문제

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?

도움이 되었습니까?

해결책

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>

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top