Merge pull request #8198 from Mailaender/net40-thirdparty-dll

Fixed SystemNotSupportedException caused by thirdparty mod DLLs on .NET > 4.0
This commit is contained in:
abcdefg30
2015-05-21 17:20:42 +02:00
2 changed files with 8 additions and 0 deletions

6
OpenRA.Game.exe.config Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<loadFromRemoteSources enabled="true" />
</runtime>
</configuration>

View File

@@ -68,6 +68,7 @@ Section "Game" GAME
SetOutPath "$INSTDIR"
File "${SRCDIR}\OpenRA.exe"
File "${SRCDIR}\OpenRA.Game.exe"
File "${SRCDIR}\OpenRA.Game.exe.config"
File "${SRCDIR}\OpenRA.Utility.exe"
File "${SRCDIR}\OpenRA.Renderer.Null.dll"
File "${SRCDIR}\OpenRA.Renderer.Sdl2.dll"
@@ -183,6 +184,7 @@ Function ${UN}Clean
RMDir /r $INSTDIR\lua
Delete $INSTDIR\OpenRA.exe
Delete $INSTDIR\OpenRA.Game.exe
Delete $INSTDIR\OpenRA.Game.exe.config
Delete $INSTDIR\OpenRA.Utility.exe
Delete $INSTDIR\OpenRA.Editor.exe
Delete $INSTDIR\OpenRA.Renderer.Null.dll