Sharpmake icon indicating copy to clipboard operation
Sharpmake copied to clipboard

Fixed DebugSolution not building when using Android Targets

Open Sharlock93 opened this issue 11 months ago • 3 comments

Added Sharpmake.CommonPlatforms to the list of References for the DebugSolution and Project.

When using Android targets, specifically anything under Sharpmake.Android, the debug solution and project fail to run due to Sharpmake.Android not being recognized.

It produces the following error when you try to build/run the debug project.

1>S:\code\projects\temp\Sharpmake\samples\HelloAndroidAgde\HelloAndroidAgde.CommonTarget.sharpmake.cs(11,43,11,50):
error CS0234: The type or namespace name 'Android' does not exist in the namespace 'Sharpmake' (are you missing an assembly reference?)

Can try to replicate the error under the HelloAndroidAgde sample.

This change simply adds the Sharpmake.CommonPlatforms DLL as a reference which fixes the issue.

Sharlock93 avatar Jan 25 '25 02:01 Sharlock93

Hi, Your fix might be correct but do you have this in your sharpmake scripts?

[module: Reference("Sharpmake.CommonPlatforms.dll")]

If you don't and add it, does the debug solution works then? Your fix seems ok but I see that in our sharpmake scripts for our internal game engine we are including that reference.

Thanks

jspelletier avatar Jan 31 '25 14:01 jspelletier

Hi, Your fix might be correct but do you have this in your sharpmake scripts?

[module: Reference("Sharpmake.CommonPlatforms.dll")]

If you don't and add it, does the debug solution works then? Your fix seems ok but I see that in our sharpmake scripts for our internal game engine we are including that reference.

Thanks

This fix worked. Feel free to close the PR. :)

Sharlock93 avatar Jan 31 '25 14:01 Sharlock93

Hi, Your fix might be correct but do you have this in your sharpmake scripts? [module: Reference("Sharpmake.CommonPlatforms.dll")] If you don't and add it, does the debug solution works then? Your fix seems ok but I see that in our sharpmake scripts for our internal game engine we are including that reference. Thanks

This fix worked. Feel free to close the PR. :)

I will try to do some tests to see if I am able to reproduce this.

jspelletier avatar Jan 31 '25 15:01 jspelletier