Engines/FlatRedBallXNA/FlatRedBall/Content/ContentBuilder.cs
/// <summary>
/// Creates a temporary directory in which to build content.
/// </summary>
Creates a temporary directory in which to build content.
Creates a temporary directory in which to build content .
void CreateTempDirectory()
        {
              %temp%\WinFormsContentLoading.ContentBuilder
            mBaseDirectory = FileManager.RelativeDirectory;;
             Include our process ID, in case there is more than
             one copy of the program running at the same time:
              %temp%\WinFormsContentLoading.ContentBuilder\<ProcessId>
            int processId = Process.GetCurrentProcess().Id;
            mProcessDirectory = Path.Combine(FileManager.RelativeDirectory, processId.ToString());
             Include a salt value, in case the program
             creates more than one ContentBuilder instance:
              %temp%\WinFormsContentLoading.ContentBuilder\<ProcessId>\<Salt>
            directorySalt++;
            mBuildDirectory = Path.Combine(mProcessDirectory, directorySalt.ToString());
             Create our temporary directory.
            Directory.CreateDirectory(mBuildDirectory);
            PurgeStaleTempDirectories();
            string projectPath = Path.Combine(mBuildDirectory, "content.contentproj");
            msBuildProject.FullFileName = projectPath;
            string outputPath = Path.Combine(mBuildDirectory, "bin");
            msBuildProject.SetProperty("OutputPath", outputPath);
        }
void CreateTempDirectory ( ) { mBaseDirectory = FileManager . RelativeDirectory ; ; int processId = Process . GetCurrentProcess ( ) . Id ; mProcessDirectory = Path . Combine ( FileManager . RelativeDirectory , processId . ToString ( ) ) ; directorySalt ++ ; mBuildDirectory = Path . Combine ( mProcessDirectory , directorySalt . ToString ( ) ) ; Directory . CreateDirectory ( mBuildDirectory ) ; PurgeStaleTempDirectories ( ) ; string projectPath = Path . Combine ( mBuildDirectory , " " ) ; msBuildProject . FullFileName = projectPath ; string outputPath = Path . Combine ( mBuildDirectory , " " ) ; msBuildProject . SetProperty ( " " , outputPath ) ; }
Creates a temporary directory in which to build content.
Creates a temporary directory in which to build content .
// Start with a standard base name: // //  %temp%\WinFormsContentLoading.ContentBuilder // Include our process ID, in case there is more than // one copy of the program running at the same time: // //  %temp%\WinFormsContentLoading.ContentBuilder\<ProcessId> // Include a salt value, in case the program // creates more than one ContentBuilder instance: // //  %temp%\WinFormsContentLoading.ContentBuilder\<ProcessId>\<Salt> // Create our temporary directory.