-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mod fails to compile for unresolved FNA during pdb generation #785
Comments
By CI do you mean continuous integration? if so, you'll need to show how you are setting that up, since it seems to me to be an issue with that. |
Pretty much it's just a simple call tModLoader/patches/tModLoader/Terraria.ModLoader.Core/ModCompile.cs Lines 506 to 509 in 8db1ce2
This problem doesn't appear after I set tModLoader/patches/tModLoader/Terraria.ModLoader.Core/ModCompile.cs Lines 498 to 499 in 8db1ce2
The CI part is here - Action |
Send me a test mod. I'll fix it
…On Tue., 4 Feb. 2020, 12:42 pm Stargazing Koishi, ***@***.***> wrote:
By CI do you mean continuous integration? if so, you'll need to show how
you are setting that up, since it seems to me to be an issue with that.
Pretty much it's just a simple call Process.Start(Path.Combine(GAME_PATH,
"tModLoaderServer.exe"), "-build XXX -unsafe") - I've reproduce it
locally using cmd.
Attaching with dnSpy locate the problem to the asm.Write - the game can
not find FNA.dll in either game folder or compile_temp folder (it's in
ModCompile folder).
https://github.com/tModLoader/tModLoader/blob/8db1ce22ea6918ebbcfb96a4dabf3c365d998072/patches/tModLoader/Terraria.ModLoader.Core/ModCompile.cs#L506-L509
This problem doesn't appear after I set includePDB = false (as line 498)
https://github.com/tModLoader/tModLoader/blob/8db1ce22ea6918ebbcfb96a4dabf3c365d998072/patches/tModLoader/Terraria.ModLoader.Core/ModCompile.cs#L498-L499
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#785?email_source=notifications&email_token=AAC6ZCN65TYX27R3X52NPHLRBDI2RA5CNFSM4KPNLO52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKWEO7Q#issuecomment-581715838>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAC6ZCONHONA6UPJJXXNW5LRBDI2RANCNFSM4KPNLO5Q>
.
|
tML_issue785.zip build.txt:
code:
|
Description
When I compile the mod in CI with
includePDB = true
, the game was unable to locate the FNA during writing PDB symbol.The source code of the mod does not locate in the Mod Source folder.
Similar to #672
Log File
Expected behavior
Compile should not fail.
Actual behavior
FNA was not found in all given search path, so
AssemblyResolutionException
was thrown.Additional Information
tModLoader/patches/tModLoader/Terraria.ModLoader.Core/ModCompile.cs
Lines 491 to 509 in 8db1ce2
Only the
compile_temp
and game executable path was added,ModCompile
was not.The text was updated successfully, but these errors were encountered: