Engines/FlatRedBallXNA/FlatRedBall/Content/ContentBuilder.cs
/// <summary>
/// Builds all the content files which have been added to the project,
/// dynamically creating .xnb files in the OutputDirectory.
/// Returns an error message if the build fails.
/// </summary>
Builds all the content files which have been added to the project,
dynamically creating .xnb files in the OutputDirectory.
Returns an error message if the build fails.
Builds all the content files which have been added to the project dynamically creating . xnb files in the OutputDirectory . Returns an error message if the build fails .
public string Build()
        {
            if (mHaveFilesBeenCreated == false)
            {
                CreateTempDirectory();
            }
            errorLogger.Errors.Clear();
            if (!msBuildProject.Build())
            {
                return string.Join("\n", errorLogger.Errors.ToArray());
            }
            return null;
        }
public string Build ( ) { if ( mHaveFilesBeenCreated == false ) { CreateTempDirectory ( ) ; } errorLogger . Errors . Clear ( ) ; if ( ! msBuildProject . Build ( ) ) { return string . Join ( " \n " , errorLogger . Errors . ToArray ( ) ) ; } return null ; }
Builds all the content files which have been added to the project,
dynamically creating .xnb files in the OutputDirectory.
Builds all the content files which have been added to the project dynamically creating . xnb files in the OutputDirectory .
// Clear any previous errors. // Build the project. //return "Error"; // If the build failed, return an error string.