Engines/FlatRedBallXNA/FlatRedBall/Content/ContentBuilder.cs
/// <summary>
/// Creates a temporary MSBuild content project in memory.
/// </summary>
Creates a temporary MSBuild content project in memory.
Creates a temporary MSBuild content project in memory .
void CreateBuildProject()
        {
            msBuildEngine = new Engine(RuntimeEnvironment.GetRuntimeDirectory());
            msBuildEngine.DefaultToolsVersion = "3.5";
            errorLogger = new ErrorLogger();
            msBuildEngine.RegisterLogger(errorLogger);
            msBuildProject = new Project(msBuildEngine);
            msBuildProject.SetProperty("XnaPlatform", "Windows");
            msBuildProject.SetProperty("XnaFrameworkVersion", "v3.0");
            msBuildProject.SetProperty("Configuration", "Release");
            foreach (string pipelineAssembly in pipelineAssemblies)
            {
                msBuildProject.AddNewItem("Reference", pipelineAssembly);
            }
            msBuildProject.AddNewImport("$(MSBuildExtensionsPath)\\Microsoft\\XNA " +
                                        "Game Studio\\v3.0\\Microsoft.Xna.GameStudio.ContentPipeline.targets", null);
        }
void CreateBuildProject ( ) { msBuildEngine = new Engine ( RuntimeEnvironment . GetRuntimeDirectory ( ) ) ; msBuildEngine . DefaultToolsVersion = " " ; errorLogger = new ErrorLogger ( ) ; msBuildEngine . RegisterLogger ( errorLogger ) ; msBuildProject = new Project ( msBuildEngine ) ; msBuildProject . SetProperty ( " " , " " ) ; msBuildProject . SetProperty ( " " , " " ) ; msBuildProject . SetProperty ( " " , " " ) ; foreach ( string pipelineAssembly in pipelineAssemblies ) { msBuildProject . AddNewItem ( " " , pipelineAssembly ) ; } msBuildProject . AddNewImport ( " \\ \\ " + " \\ \\ " , null ) ; }
Creates a temporary MSBuild content project in memory.
Creates a temporary MSBuild content project in memory .
// Create the build engine. // Hook up our custom error logger. // Create the build project. // Register any custom importers or processors. // Include the standard targets file that defines // how to build XNA Framework content.