Closed nesterenko-kv closed 7 years ago
@nestquik thank you for taking the time to do this. But as far as I can tell, the build errors on AppVeyor are in the XNA project, and are caused by XNA not being installed on the AppVeyor build image. Although Gemini also has a MonoGame module, adding the MonoGame DLLs to the XNA project wouldn't help in this case.
I think the correct fix is to somehow install XNA 4.0 on the AppVeyor build image, using this redistributable and these steps.
I can't say for sure, but after this changes AppVeyor correctly build the project as far as I can see: https://ci.appveyor.com/project/nestquik/gemini/build/1.0.7
P.S. It is necessary to observe...
Interesting - indeed it does build. But I notice a number of warnings like this, so I'm not sure that the resulting XNA module DLL is bound to the correct reference:
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1697,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.Xna.Framework.Graphics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\projects\gemini\src\Gemini.Demo.Xna\Gemini.Demo.Xna.csproj]
I'm pretty sure it started failing when XNA was removed from AppVeyor's default build image. Prior to that, XNA was installed on AppVeyor's default build image.
Okay, so we need to install XNA before build? I'll look for ways to do this.
Works like a charm. Link to build.
That's great, thank you! It will be so much easier to automatically deploy new NuGet versions safely once this is fixed.
One small request though - did you copy install-XNA.ps1 from somewhere? If so, please could you credit the source at the top of the file? Then I'll merge this.
One small request though - did you copy install-XNA.ps1 from somewhere?
Yep, from here.
Done, also I made some coloring for console log.
Thank you so much, this is great.
You're welcome! 😄
*deleted*