Foreign/RibbonLib_v2.6/RibbonGenerator/RibbonGenerator/Manager.cs
/// <summary>
/// Verifies that templte.bat file exists, if not, it will be created here.
/// </summary>
Verifies that templte.bat file exists, if not, it will be created here.
Verifies that templte . bat file exists if not it will be created here .
void VerifyTemplateBat()
        {
            if (File.Exists(Util.TemplateBatFilename))
            {
                this._output.WriteLine(string.Format("Verify Template.bat: File already exists '{0}'", Util.TemplateBatFilename));
                return;
            }
            using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("RibbonGenerator.Template.bat"))
            {
                StreamReader reader = new StreamReader(stream);
                var content = reader.ReadToEnd();
                content = content.Replace("{Windows7SDKToolsPath}", Util.DetectAppropariateWindows7SdkPath());
                File.WriteAllText(Util.TemplateBatFilename, content);
            }
            this._output.WriteLine(string.Format("Verify Template.bat: File is created '{0}'", Util.TemplateBatFilename));
        }
void VerifyTemplateBat ( ) { if ( File . Exists ( Util . TemplateBatFilename ) ) { this . _output . WriteLine ( string . Format ( " " , Util . TemplateBatFilename ) ) ; return ; } using ( var stream = Assembly . GetExecutingAssembly ( ) . GetManifestResourceStream ( " " ) ) { StreamReader reader = new StreamReader ( stream ) ; var content = reader . ReadToEnd ( ) ; content = content . Replace ( " " , Util . DetectAppropariateWindows7SdkPath ( ) ) ; File . WriteAllText ( Util . TemplateBatFilename , content ) ; } this . _output . WriteLine ( string . Format ( " " , Util . TemplateBatFilename ) ) ; }
Verifies that templte.bat file exists, if not, it will be created here.
Verifies that templte . bat file exists if not it will be created here .