public override bool Execute() { if (File.Exists(this.FileName)) { AssemblyVersionResolver resolver = new AssemblyVersionResolver() { UseFileVersion = this.UseFileVersion, UseInfoVersion = this.UseInfoVersion }; this.Version = resolver.GetVersion(this.FileName); } return true; }