Skip to content

Add Samples To Automated Build #26

Open
@tomspilman

Description

@tomspilman

Fix the build server to build the samples develop branch just like we do the main MonoGame project.

The first issue is how to make the existing projects build against a development build of MonoGame? Currently the samples all do this in their csprojs:

<Reference Include="MonoGame.Framework">
  <HintPath>$(MSBuildExtensionsPath)\..\MonoGame\v3.0\Assemblies\Windows\MonoGame.Framework.dll</HintPath>
</Reference>

Which means they assume that MonoGame is installed on the machine.

Should we make part of the samples build process install the latest version of MonoGame? Or should we alter the .csproj to use something more complex like:

<PropertyGroup>
  <MonoGameAssembliesPath Condition=" '$(MonoGameAssembliesPath)' == '' ">$(MSBuildExtensionsPath)\..\MonoGame\v3.0\Assemblies</Configuration>
</PropertyGroup>
<Reference Include="MonoGame.Framework">
   <HintPath>$(MonoGameAssembliesPath)\Windows\MonoGame.Framework.dll</HintPath>
</Reference>

This allows us to overload the location of the MonoGame assemblies from the build server by pre-defining the value of $MonoGameAssembliesPath.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions